public class ResponseInfo extends DocumentedInfo
Constructor and Description |
---|
ResponseInfo()
Constructor.
|
ResponseInfo(DocumentationInfo documentation)
Constructor with a single documentation element.
|
ResponseInfo(List<DocumentationInfo> documentations)
Constructor with a list of documentation elements.
|
ResponseInfo(String documentation)
Constructor with a single documentation element.
|
Modifier and Type | Method and Description |
---|---|
List<ParameterInfo> |
getParameters()
Returns the list of parameters.
|
List<RepresentationInfo> |
getRepresentations()
Returns the list of representations
|
List<Status> |
getStatuses()
Returns the list of statuses associated with this response
representation.
|
void |
setParameters(List<ParameterInfo> parameters)
Sets the list of parameters.
|
void |
setRepresentations(List<RepresentationInfo> representations)
Sets the list of representations
|
void |
setStatuses(List<Status> statuses)
Sets the list of statuses associated with this response representation.
|
void |
updateNamespaces(Map<String,String> namespaces)
Completes the given map of namespaces with the namespaces used in the
documentation elements.
|
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer.
|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
public ResponseInfo()
public ResponseInfo(DocumentationInfo documentation)
documentation
- A single documentation element.public ResponseInfo(List<DocumentationInfo> documentations)
documentations
- The list of documentation elements.public ResponseInfo(String documentation)
documentation
- A single documentation element.public List<ParameterInfo> getParameters()
public List<RepresentationInfo> getRepresentations()
public List<Status> getStatuses()
public void setParameters(List<ParameterInfo> parameters)
parameters
- The list of parameters.public void setRepresentations(List<RepresentationInfo> representations)
representations
- The list of representationspublic void setStatuses(List<Status> statuses)
statuses
- The list of statuses associated with this response
representation.public void updateNamespaces(Map<String,String> namespaces)
DocumentedInfo
updateNamespaces
in class DocumentedInfo
namespaces
- The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws SAXException
writer
- The SAX writer.SAXException
Copyright © 2005–2013. All rights reserved.