Class TinyParentNodeImpl

java.lang.Object
net.sf.saxon.tree.tiny.TinyNodeImpl
net.sf.saxon.tree.tiny.TinyParentNodeImpl
All Implemented Interfaces:
Source, SourceLocator, ActiveSource, GroundedValue, Item, NodeInfo, Sequence, Location, Locator
Direct Known Subclasses:
TinyDocumentImpl, TinyElementImpl

public abstract class TinyParentNodeImpl extends TinyNodeImpl
TinyParentNodeImpl is an implementation of a non-leaf node (specifically, an Element node or a Document node)
  • Constructor Details

    • TinyParentNodeImpl

      public TinyParentNodeImpl(TinyTree tree, int nodeNr)
  • Method Details

    • hasChildNodes

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

      public UnicodeString getUnicodeStringValue()
      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.
    • getStringValue

      public static UnicodeString getStringValue(TinyTree tree, int nodeNr)
      Get the string value of a node. This static method allows the string value of a node to be obtained without instantiating the node as a Java object. The method also returns a CharSequence rather than a string, which means it can sometimes avoid copying the data.
      Parameters:
      tree - The containing document
      nodeNr - identifies the node whose string value is required. This must be a document or element node. The caller is trusted to ensure this.
      Returns:
      the string value of the node, as a CharSequence