Class HtmlTemplate

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

    public class HtmlTemplate
    extends HtmlElement
    Wrapper for the HTML element "template".
    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
    • Method Detail

      • getContent

        public DomDocumentFragment getContent()
        Returns:
        the associated document fragment
      • isEmptyXmlTagExpanded

        protected boolean isEmptyXmlTagExpanded()
        Description copied from class: DomElement
        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
      • printChildrenAsXml

        protected void printChildrenAsXml​(java.lang.String indent,
                                          java.io.PrintWriter printWriter)
        Description copied from class: DomNode
        Recursively writes the XML data for the node tree starting at node.
        Overrides:
        printChildrenAsXml in class DomNode
        Parameters:
        indent - white space to indent child nodes
        printWriter - writer where child nodes are written