Class Documentation


  • @Immutable
    public class Documentation
    extends Object
    Client catalog documentation element
    Since:
    1/9/2015
    • Constructor Detail

      • Documentation

        public Documentation​(String href,
                             URI uri,
                             String title,
                             String type,
                             String inlineContent)
        Constructor.
        Parameters:
        href - : href of documentation, may be null.
        uri - : absolute URL, or null
        title - : Xlink title, may be null.
        type - : user-defined InvDocumentation type
        inlineContent - : optional inline contents.
    • Method Detail

      • getType

        public String getType()
      • hasXlink

        public boolean hasXlink()
      • getURI

        public URI getURI()
        if its a XLink, get the absolute URI
        Returns:
        the XLink URI, else null
      • getXlinkTitle

        public String getXlinkTitle()
        if its a XLink, get the title, to display the link to the user.
        Returns:
        the XLink title, else null
      • getXlinkHref

        public String getXlinkHref()
        if its a XLink, get the href, to display the link to the user.
        Returns:
        the XLink href, or null
      • getInlineContent

        public String getInlineContent()
      • readXlinkContent

        public String readXlinkContent()
                                throws IOException
        Get inline content as a string, else null if there is none
        Returns:
        inline content as a string, else null
        Throws:
        IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object