@Deprecated public class RepresentationInfo extends DocumentedInfo
Constructor and Description |
---|
RepresentationInfo()
Deprecated.
Constructor.
|
RepresentationInfo(DocumentationInfo documentation)
Deprecated.
Constructor with a single documentation element.
|
RepresentationInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.
Constructor with a list of documentation elements.
|
RepresentationInfo(MediaType mediaType)
Deprecated.
Constructor with a media type.
|
RepresentationInfo(java.lang.String documentation)
Deprecated.
Constructor with a single documentation element.
|
RepresentationInfo(Variant variant)
Deprecated.
Constructor with a variant.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIdentifier()
Deprecated.
Returns the identifier for that element.
|
MediaType |
getMediaType()
Deprecated.
Returns the media type of that element.
|
java.util.List<ParameterInfo> |
getParameters()
Deprecated.
Returns the list of parameters.
|
java.util.List<Reference> |
getProfiles()
Deprecated.
Returns the list of locations of one or more meta data profiles.
|
java.lang.String |
getReference()
Deprecated.
Returns the reference to an representation identifier.
|
java.lang.String |
getXmlElement()
Deprecated.
Returns the qualified name of the root element for this XML-based
representation.
|
void |
setIdentifier(java.lang.String identifier)
Deprecated.
Sets the identifier for that element.
|
void |
setMediaType(MediaType mediaType)
Deprecated.
Sets the media type of that element.
|
void |
setParameters(java.util.List<ParameterInfo> parameters)
Deprecated.
Sets the list of parameters.
|
void |
setProfiles(java.util.List<Reference> profiles)
Deprecated.
Sets the list of locations of one or more meta data profiles.
|
void |
setReference(java.lang.String reference)
Deprecated.
Sets the reference to an representation identifier.
|
void |
setXmlElement(java.lang.String xmlElement)
Deprecated.
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)
Deprecated.
Completes the given map of namespaces with the namespaces used in the
documentation elements.
|
void |
writeElement(XmlWriter writer)
Deprecated.
Writes the current object as an XML element using the given SAX writer.
|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
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.public java.lang.String getIdentifier()
public MediaType getMediaType()
public java.util.List<ParameterInfo> getParameters()
public java.util.List<Reference> getProfiles()
public java.lang.String getReference()
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 setReference(java.lang.String reference)
reference
- The reference to an representation identifier.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
Copyright © 2005-2024 Restlet.