All Implemented Interfaces:
TagBase, AAttributable, AreaAttributable, LinkAttributable, Serializable, Cloneable

For anchors containing the href attribute, this attribute specifies the relationship of the target object to the link object. The value is a space-separated list of link types values. The values and their semantics will be registered by some authority that might have meaning to the document author. The default relationship, if no other is given, is void. Use this attribute only if the href attribute is present. rel attribute for the element.
Since:
1.0.0
See Also:
  • Field Details

    • ALTERNATE

      public static final String ALTERNATE
      Links to an alternate version of the document (i.e. print page, translated or mirror)
      See Also:
    • AUTHOR

      public static final String AUTHOR
      Links to the author of the document
      See Also:
    • BOOKMARK

      public static final String BOOKMARK
      Permanent URL used for bookmarking
      See Also:
    • HELP

      public static final String HELP
      Links to a help document
      See Also:
    • LICENSE

      public static final String LICENSE
      Links to copyright information for the document
      See Also:
    • NEXT

      public static final String NEXT
      The next document in a selection
      See Also:
    • NOFOLLOW

      public static final String NOFOLLOW
      Links to an unendorsed document, like a paid link. ("nofollow" is used by Google, to specify that the Google search spider should not follow that link)
      See Also:
    • NOREFERRER

      public static final String NOREFERRER
      Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink
      See Also:
    • NOOPENER

      public static final String NOOPENER
      Specifies that the browsing context created by its related url must not have an opener browsing context.
      See Also:
    • PREFETCH

      public static final String PREFETCH
      Specifies that the target document should be cached
      See Also:
    • PREV

      public static final String PREV
      The previous document in a selection
      See Also:
    • TAG

      public static final String TAG
      A tag (keyword) for the current document
      See Also:
    • STYLESHEET

      public static final String STYLESHEET
      Specifies that the related tag is for style sheet.
      See Also:
    • PRELOAD

      public static final String PRELOAD
      preloads the resource from href attribute as the attribute value given in as attribute
      See Also:
    • PRECONNECT

      public static final String PRECONNECT
      preemptively connects to the target resource's origin.
      See Also:
    • PINGBACK

      public static final String PINGBACK
      gives pingback server address which handles the pingback to the current document.
      See Also:
    • ICON

      public static final String ICON
      icon url to be used in href attribute
      See Also:
    • DNS_PREFETCH

      public static final String DNS_PREFETCH
      Represents the browser should preemptively perform DNS resolution for the target resource's origin.
      See Also:
    • EXTERNAL

      public static final String EXTERNAL
      Represents that the referenced document is from an external site
      See Also:
  • Constructor Details

    • Rel

      public Rel(String value)
      Parameters:
      value - the value for the attribute. If there are multiple values it can be separated by space.
      Since:
      1.0.0
    • Rel

      public Rel(String... values)
      Parameters:
      values - the values for the attribute. If there are multiple values it can be separated by space.
      Since:
      1.0.0
  • Method Details

    • setValue

      public void setValue(String value)
      sets the value for this attribute
      Parameters:
      value - the value for the attribute.
      Since:
      1.0.0
    • getValue

      public String getValue()
      gets the value of this attribute
      Returns:
      the value of the attribute
      Since:
      1.0.0
    • getValueSet

      public Set<String> getValueSet()
      Returns:
      a new copy of set of values
      Since:
      2.1.15
    • removeValue

      public void removeValue(String value)
      removes the value
      Parameters:
      value -
      Since:
      2.1.15
    • removeValues

      public void removeValues(Collection<String> values)
      removes the values
      Parameters:
      values -
      Since:
      2.1.15
    • addValues

      public void addValues(Collection<String> values)
      adds the values to the last
      Parameters:
      values -
      Since:
      2.1.15
    • addValue

      public void addValue(String value)
      adds the value to the last
      Parameters:
      value -
      Since:
      2.1.15
    • init

      protected void init()
      invokes only once per object
      Since:
      1.0.0
    • setValue

      public void setValue(boolean updateClient, String value)