Class TinyParentNodeImpl

All Implemented Interfaces:
NodeInfo, DOMLocator, Source, SourceLocator, 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 Details

    • TinyParentNodeImpl

      TinyParentNodeImpl()
  • Method Details

    • hasChildNodes

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

      public 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 TransformerException
      Copy the string-value of this node to a given outputter
      Specified by:
      copyStringValue in interface NodeInfo
      Overrides:
      copyStringValue in class AbstractNode
      Throws:
      TransformerException