Class HtmlTitle

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Element, org.w3c.dom.Node

    public class HtmlTitle
    extends HtmlElement
    Wrapper for the HTML element "title".
    See Also:
    Serialized Form
    • Field Detail

      • TAG_NAME

        public static final java.lang.String TAG_NAME
        The HTML tag represented by this element.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HtmlTitle

        HtmlTitle​(java.lang.String qualifiedName,
                  SgmlPage page,
                  java.util.Map<java.lang.String,​DomAttr> attributes)
        Creates an instance of HtmlTitle.
        Parameters:
        qualifiedName - the qualified name of the element type to instantiate
        page - the HtmlPage that contains this element
        attributes - the initial attributes
    • Method Detail

      • setNodeValue

        public void setNodeValue​(java.lang.String message)
        Allows the text value for the title element be replaced.
        Specified by:
        setNodeValue in interface org.w3c.dom.Node
        Overrides:
        setNodeValue in class DomElement
      • isEmptyXmlTagExpanded

        protected boolean isEmptyXmlTagExpanded()
        Indicates if a node without children should be written in expanded form as XML (i.e. with closing tag rather than with "/>")
        Overrides:
        isEmptyXmlTagExpanded in class DomElement
        Returns:
        false by default