Class MetaTag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Node, Tag

    public class MetaTag
    extends TagNode
    A Meta Tag
    See Also:
    Serialized Form
    • Constructor Detail

      • MetaTag

        public MetaTag()
        Create a new meta tag.
    • Method Detail

      • getIds

        public java.lang.String[] getIds()
        Return the set of names handled by this tag.
        Specified by:
        getIds in interface Tag
        Overrides:
        getIds in class TagNode
        Returns:
        The names to be matched that create tags of this type.
      • getHttpEquiv

        public java.lang.String getHttpEquiv()
        Get the HTTP-EQUIV attribute, if any.
        Returns:
        The value of the HTTP-EQUIV attribute, or null if the attribute doesn't exist.
      • getMetaContent

        public java.lang.String getMetaContent()
        Get the CONTENT attribute, if any.
        Returns:
        The value of the CONTENT attribute, or null if the attribute doesn't exist.
      • getMetaTagName

        public java.lang.String getMetaTagName()
        Get the NAME attribute, if any.
        Returns:
        The value of the NAME attribute, or null if the attribute doesn't exist.
      • setHttpEquiv

        public void setHttpEquiv​(java.lang.String httpEquiv)
        Set the HTTP-EQUIV attribute.
        Parameters:
        httpEquiv - The new value of the HTTP-EQUIV attribute.
      • setMetaTagContents

        public void setMetaTagContents​(java.lang.String metaTagContents)
        Set the CONTENT attribute.
        Parameters:
        metaTagContents - The new value of the CONTENT attribute.
      • setMetaTagName

        public void setMetaTagName​(java.lang.String metaTagName)
        Set the NAME attribute.
        Parameters:
        metaTagName - The new value of the NAME attribute.