Class 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.String relationship
      Deprecated.
      Identifies the relationship of the resource identified by the link to the resource whose representation the link is embedded in.
      private Reference resourceType
      Deprecated.
      Defines the capabilities of the resource that the link identifies.
      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 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.
    • 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: DocumentedInfo
        Completes 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:
        updateNamespaces in class DocumentedInfo
        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