Class TinyParentNodeImpl

  • All Implemented Interfaces:
    NodeInfo, javax.xml.transform.dom.DOMLocator, javax.xml.transform.Source, javax.xml.transform.SourceLocator, org.w3c.dom.Node
    Direct Known Subclasses:
    TinyDocumentImpl, TinyElementImpl

    abstract class TinyParentNodeImpl
    extends TinyNodeImpl
    TinyParentNodeImpl is an implementation of a non-leaf node (specifically, an Element node or a Document node)
    Author:
    Michael H. Kay
    • Constructor Detail

      • TinyParentNodeImpl

        TinyParentNodeImpl()
    • Method Detail

      • hasChildNodes

        public boolean hasChildNodes()
        Determine if the node has children.
        Specified by:
        hasChildNodes in interface org.w3c.dom.Node
        Specified by:
        hasChildNodes in interface NodeInfo
        Overrides:
        hasChildNodes in class TinyNodeImpl
        Returns:
        true if this node has any attributes, false otherwise.
      • getStringValue

        public java.lang.String getStringValue()
        Return the string-value of the node, that is, the concatenation of the character content of all descendent elements and text nodes.
        Returns:
        the accumulated character content of the element, including descendant elements.
      • copyStringValue

        public void copyStringValue​(Outputter out)
                             throws javax.xml.transform.TransformerException
        Copy the string-value of this node to a given outputter
        Specified by:
        copyStringValue in interface NodeInfo
        Overrides:
        copyStringValue in class AbstractNode
        Throws:
        javax.xml.transform.TransformerException