Class FleetingParentNode

java.lang.Object
com.saxonica.ee.stream.om.FleetingNode
com.saxonica.ee.stream.om.FleetingParentNode
All Implemented Interfaces:
Source, SourceLocator, ActiveSource, GroundedValue, Item, NodeInfo, Sequence, Location, Locator
Direct Known Subclasses:
FleetingDocumentNode, FleetingElementNode

public abstract class FleetingParentNode extends FleetingNode
A streamed document or element node.
  • Constructor Details Link icon

    • FleetingParentNode Link icon

      public FleetingParentNode()
  • Method Details Link icon

    • hasChildNodes Link icon

      public boolean hasChildNodes()
      Ask whether the node has any children.
      Specified by:
      hasChildNodes in interface NodeInfo
      Overrides:
      hasChildNodes in class FleetingNode
      Returns:
      True if the node has one or more children
    • setHasChildren Link icon

      public void setHasChildren(boolean has)
      Say whether the node has any children.
      Parameters:
      has - true if the node has children
    • notify Link icon

      public abstract void notify(Receiver out) throws XPathException
      Notify the event to a Receiver
      Parameters:
      out - the receiver to be notified
      Throws:
      XPathException
    • equals Link icon

      public boolean equals(Object other)
      Determine whether this is the same node as another node.

      Note that two different NodeInfo instances can represent the same conceptual node. Therefore the "==" operator should not be used to test node identity. The equals() method should give the same result as isSameNodeInfo(), but since this rule was introduced late it might not apply to all implementations.

      Note: a.isSameNodeInfo(b) if and only if generateId(a)==generateId(b).

      This method has the same semantics as isSameNode() in DOM Level 3, but works on Saxon NodeInfo objects rather than DOM Node objects.

      Specified by:
      equals in interface NodeInfo
      Overrides:
      equals in class FleetingNode
      Parameters:
      other - the node to be compared with this node
      Returns:
      true if this NodeInfo object and the supplied NodeInfo object represent the same node in the tree.
    • hashCode Link icon

      public int hashCode()
      Description copied from interface: NodeInfo
      The hashCode() method obeys the contract for hashCode(): that is, if two objects are equal (represent the same node) then they must have the same hashCode()
      Specified by:
      hashCode in interface NodeInfo
      Overrides:
      hashCode in class FleetingNode