|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.wadl.DocumentedInfo
org.restlet.ext.wadl.RepresentationInfo
public class RepresentationInfo
Describres a variant representation for a target resource.
Constructor Summary | |
---|---|
RepresentationInfo()
Constructor. |
|
RepresentationInfo(DocumentationInfo documentation)
Constructor with a single documentation element. |
|
RepresentationInfo(java.util.List<DocumentationInfo> documentations)
Constructor with a list of documentation elements. |
|
RepresentationInfo(MediaType mediaType)
Constructor with a media type. |
|
RepresentationInfo(java.lang.String documentation)
Constructor with a single documentation element. |
|
RepresentationInfo(Variant variant)
Constructor with a variant. |
Method Summary | |
---|---|
java.lang.String |
getIdentifier()
Returns the identifier for that element. |
MediaType |
getMediaType()
Returns the media type of that element. |
java.util.List<ParameterInfo> |
getParameters()
Returns the list of parameters. |
java.util.List<Reference> |
getProfiles()
Returns the list of locations of one or more meta data profiles. |
java.util.List<Status> |
getStatuses()
Returns the list of statuses associated with this response representation. |
java.lang.String |
getXmlElement()
Returns the qualified name of the root element for this XML-based representation. |
void |
setIdentifier(java.lang.String identifier)
Sets the identifier for that element. |
void |
setMediaType(MediaType mediaType)
Sets the media type of that element. |
void |
setParameters(java.util.List<ParameterInfo> parameters)
Sets the list of parameters. |
void |
setProfiles(java.util.List<Reference> profiles)
Sets the list of locations of one or more meta data profiles. |
void |
setStatuses(java.util.List<Status> statuses)
Sets the list of statuses associated with this response representation. |
void |
setXmlElement(java.lang.String xmlElement)
Sets the qualified name of the root element for this XML-based representation. |
void |
updateNamespaces(java.util.Map<java.lang.String,java.lang.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. |
Methods inherited from class org.restlet.ext.wadl.DocumentedInfo |
---|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepresentationInfo()
public RepresentationInfo(DocumentationInfo documentation)
documentation
- A single documentation element.public RepresentationInfo(java.util.List<DocumentationInfo> documentations)
documentations
- The list of documentation elements.public RepresentationInfo(MediaType mediaType)
mediaType
- The media type of the representation.public RepresentationInfo(java.lang.String documentation)
documentation
- A single documentation element.public RepresentationInfo(Variant variant)
variant
- The variant to describe.Method Detail |
---|
public java.lang.String getIdentifier()
public MediaType getMediaType()
public java.util.List<ParameterInfo> getParameters()
public java.util.List<Reference> getProfiles()
public java.util.List<Status> getStatuses()
public java.lang.String getXmlElement()
public void setIdentifier(java.lang.String identifier)
identifier
- The identifier for that element.public void setMediaType(MediaType mediaType)
mediaType
- The media type of that element.public void setParameters(java.util.List<ParameterInfo> parameters)
parameters
- The list of parameters.public void setProfiles(java.util.List<Reference> profiles)
profiles
- The list of locations of one or more meta data profiles.public void setStatuses(java.util.List<Status> statuses)
statuses
- The list of statuses associated with this response
representation.public void setXmlElement(java.lang.String xmlElement)
xmlElement
- The qualified name of the root element for this XML-based
representation.public void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
DocumentedInfo
updateNamespaces
in class DocumentedInfo
namespaces
- The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |