Class Link


  • public final class Link
    extends java.lang.Object
    A Link represents a navigational transition.
    • Constructor Summary

      Constructors 
      Constructor Description
      Link​(java.lang.String[] rel, java.lang.String href)
      Constructs a new Link.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getHref()
      Returns the href attribute.
      java.lang.String[] getRel()
      Returns the rel attribute.
      java.lang.String getTitle()
      Returns the title attribute.
      java.lang.String getType()
      Returns the type attribute.
      int hashCode()  
      void setHref​(java.lang.String href)
      Sets the href attribute.
      void setRel​(java.lang.String[] rel)
      Sets the rel attribute.
      void setTitle​(java.lang.String title)
      Sets the title attribute.
      void setType​(java.lang.String type)
      Sets the type attribute.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Link

        public Link​(java.lang.String[] rel,
                    java.lang.String href)
             throws java.lang.IllegalArgumentException
        Constructs a new Link.
        Parameters:
        rel -
        href -
        Throws:
        java.lang.IllegalArgumentException - if either rel or href are null or empty.
    • Method Detail

      • getRel

        public java.lang.String[] getRel()
        Returns the rel attribute.
        Returns:
      • setRel

        public void setRel​(java.lang.String[] rel)
        Sets the rel attribute.
        Parameters:
        rel -
      • getHref

        public java.lang.String getHref()
        Returns the href attribute.
        Returns:
      • setHref

        public void setHref​(java.lang.String href)
        Sets the href attribute.
        Parameters:
        href -
      • getTitle

        public java.lang.String getTitle()
        Returns the title attribute.
        Returns:
      • setTitle

        public void setTitle​(java.lang.String title)
        Sets the title attribute.
        Parameters:
        title -
      • getType

        public java.lang.String getType()
        Returns the type attribute.
        Returns:
      • setType

        public void setType​(java.lang.String type)
        Sets the type attribute.
        Parameters:
        type -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object