Class Rel

  • All Implemented Interfaces:
    TagBase, AAttributable, AreaAttributable, java.io.Serializable, java.lang.Cloneable


    public class Rel
    extends AbstractAttribute
    implements AAttributable, AreaAttributable
    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:
    Serialized Form
    • Field Detail

      • ALTERNATE

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

        public static final java.lang.String AUTHOR
        Links to the author of the document
        See Also:
        Constant Field Values
      • BOOKMARK

        public static final java.lang.String BOOKMARK
        Permanent URL used for bookmarking
        See Also:
        Constant Field Values
      • HELP

        public static final java.lang.String HELP
        Links to a help document
        See Also:
        Constant Field Values
      • LICENSE

        public static final java.lang.String LICENSE
        Links to copyright information for the document
        See Also:
        Constant Field Values
      • NEXT

        public static final java.lang.String NEXT
        The next document in a selection
        See Also:
        Constant Field Values
      • NOFOLLOW

        public static final java.lang.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:
        Constant Field Values
      • NOREFERRER

        public static final java.lang.String NOREFERRER
        Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink
        See Also:
        Constant Field Values
      • PREFETCH

        public static final java.lang.String PREFETCH
        Specifies that the target document should be cached
        See Also:
        Constant Field Values
      • PREV

        public static final java.lang.String PREV
        The previous document in a selection
        See Also:
        Constant Field Values
      • SEARCH

        public static final java.lang.String SEARCH
        Links to a search tool for the document
        See Also:
        Constant Field Values
      • TAG

        public static final java.lang.String TAG
        A tag (keyword) for the current document
        See Also:
        Constant Field Values
    • Constructor Detail

      • Rel

        public Rel​(java.lang.String value)
        Parameters:
        value - the value for the attribute
        Since:
        1.0.0
    • Method Detail

      • setValue

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

        public java.lang.String getValue​()
        gets the value of this attribute
        Returns:
        the value of the attribute
        Since:
        1.0.0
      • init

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