Class Links

    • Constructor Detail

      • Links

        public Links()
        Create new Links.
      • Links

        public Links​(Map<String,​Link> linkMap)
        Create new Links.
        Parameters:
        linkMap - Map link data
    • Method Detail

      • getLink

        public Link getLink​(String linkName)
        Convenience method for returning named link.
        Parameters:
        linkName - name of the link to return
        Returns:
        the link object, or null if the named link does not exist
      • getPrevious

        public Link getPrevious()
        Convenience method for returning the prev link.
        Returns:
        the link, or null if the named link does not exist
      • getFirst

        public Link getFirst()
        Convenience method for returning the first link.
        Returns:
        the link, or null if the named link does not exist
      • getNext

        public Link getNext()
        Convenience method for returning the next link.
        Returns:
        the link, or null if the named link does not exist
      • getLast

        public Link getLast()
        Convenience method for returning the last link.
        Returns:
        the link, or null if the named link does not exist
      • getSelf

        public Link getSelf()
        Convenience method for returning the self link.
        Returns:
        the link, or null if the named link does not exist
      • getRelated

        public Link getRelated()
        Convenience method for returning the related link.
        Returns:
        the link, or null if the named link does not exist
      • getLinks

        public Map<String,​Link> getLinks()
        Gets all registered links.
        Returns:
        Map link data
      • addLink

        public void addLink​(String linkName,
                            Link link)
        Adds a named link.
        Parameters:
        linkName - name of the link to add
        link - the link to add