Package org.restlet.ext.wadl
Class LinkInfo
- java.lang.Object
-
- org.restlet.ext.wadl.DocumentedInfo
-
- org.restlet.ext.wadl.LinkInfo
-
@Deprecated public class LinkInfo extends DocumentedInfo
Deprecated.Will be removed in next major release.Allows description of links between representations and resources.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringrelationshipDeprecated.Identifies the relationship of the resource identified by the link to the resource whose representation the link is embedded in.private ReferenceresourceTypeDeprecated.Defines the capabilities of the resource that the link identifies.private java.lang.StringreverseRelationshipDeprecated.Identifies the relationship of the resource whose representation the link is embedded in to the resource identified by the link.
-
Constructor Summary
Constructors Constructor Description LinkInfo()Deprecated.Constructor.LinkInfo(java.lang.String documentation)Deprecated.Constructor with a single documentation element.LinkInfo(java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.LinkInfo(DocumentationInfo documentation)Deprecated.Constructor with a single documentation element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetRelationship()Deprecated.Returns the relationship attribute value.ReferencegetResourceType()Deprecated.Returns the reference to the resource type of the linked resource.java.lang.StringgetReverseRelationship()Deprecated.Returns the reverse relationship attribute value.voidsetRelationship(java.lang.String relationship)Deprecated.Sets the relationship attribute value.voidsetResourceType(Reference resourceType)Deprecated.Sets the reference to the resource type of the linked resource.voidsetReverseRelationship(java.lang.String reverseRelationship)Deprecated.Sets the reverse relationship attribute value.voidupdateNamespaces(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.voidwriteElement(XmlWriter writer)Deprecated.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
-
-
-
-
Field Detail
-
relationship
private java.lang.String relationship
Deprecated.Identifies the relationship of the resource identified by the link to the resource whose representation the link is embedded in.
-
resourceType
private Reference resourceType
Deprecated.Defines the capabilities of the resource that the link identifies.
-
reverseRelationship
private java.lang.String reverseRelationship
Deprecated.Identifies the relationship of the resource whose representation the link is embedded in to the resource identified by the link.
-
-
Constructor Detail
-
LinkInfo
public LinkInfo()
Deprecated.Constructor.
-
LinkInfo
public LinkInfo(DocumentationInfo documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
LinkInfo
public LinkInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.Constructor with a list of documentation elements.- Parameters:
documentations- The list of documentation elements.
-
LinkInfo
public LinkInfo(java.lang.String documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
-
Method Detail
-
getRelationship
public java.lang.String getRelationship()
Deprecated.Returns the relationship attribute value.- Returns:
- The relationship attribute value.
-
getResourceType
public Reference getResourceType()
Deprecated.Returns the reference to the resource type of the linked resource.- Returns:
- The reference to the resource type of the linked resource.
-
getReverseRelationship
public java.lang.String getReverseRelationship()
Deprecated.Returns the reverse relationship attribute value.- Returns:
- The reverse relationship attribute value.
-
setRelationship
public void setRelationship(java.lang.String relationship)
Deprecated.Sets the relationship attribute value.- Parameters:
relationship- The relationship attribute value.
-
setResourceType
public void setResourceType(Reference resourceType)
Deprecated.Sets the reference to the resource type of the linked resource.- Parameters:
resourceType- The reference to the resource type of the linked resource.
-
setReverseRelationship
public void setReverseRelationship(java.lang.String reverseRelationship)
Deprecated.Sets the reverse relationship attribute value.- Parameters:
reverseRelationship- The reverse relationship attribute value.
-
updateNamespaces
public void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Deprecated.Description copied from class:DocumentedInfoCompletes the given map of namespaces with the namespaces used in the documentation elements. The key is the URI of the namespace and the value, the prefix.- Specified by:
updateNamespacesin classDocumentedInfo- Parameters:
namespaces- The given map of namespaces to complete.
-
writeElement
public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
Deprecated.Writes the current object as an XML element using the given SAX writer.- Parameters:
writer- The SAX writer.- Throws:
org.xml.sax.SAXException
-
-