Package com.saxonica.ee.stream.om
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
A streamed document or element node.
-
Field Summary
Fields inherited from class com.saxonica.ee.stream.om.FleetingNode
root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether this is the same node as another node.booleanAsk whether the node has any children.inthashCode()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()abstract voidNotify the event to a ReceivervoidsetHasChildren(boolean has) Say whether the node has any children.Methods inherited from class com.saxonica.ee.stream.om.FleetingNode
atomize, compareOrder, generateId, getAllNamespaces, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDepth, getDisplayName, getFingerprint, getInScopeNamespaces, getLocalPart, getNamePool, getNamespaceUri, getNodeKind, getNodeName, getNodeNumber, getParent, getPrefix, getRoot, getSchemaType, getSystemId, getTreeInfo, getUnicodeStringValue, hasFingerprint, head, isStreamed, iterateAxis, saveLocation, setNodeKind, setNodeName, setParent, setStringValue, setSystemId, setTypeAnnotationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, effectiveBooleanValue, materializeMethods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.NodeInfo
asActiveSource, attributes, children, children, copy, deliver, getAttributeValue, getColumnNumber, getGenre, getLineNumber, getPublicId, getURI, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, toShortStringMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Constructor Details
-
FleetingParentNode
public FleetingParentNode()
-
-
Method Details
-
hasChildNodes
public boolean hasChildNodes()Ask whether the node has any children.- Specified by:
hasChildNodesin interfaceNodeInfo- Overrides:
hasChildNodesin classFleetingNode- Returns:
- True if the node has one or more children
-
setHasChildren
public void setHasChildren(boolean has) Say whether the node has any children.- Parameters:
has- true if the node has children
-
notify
Notify the event to a Receiver- Parameters:
out- the receiver to be notified- Throws:
XPathException
-
equals
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:
equalsin interfaceNodeInfo- Overrides:
equalsin classFleetingNode- 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
public int hashCode()Description copied from interface:NodeInfoThe 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:
hashCodein interfaceNodeInfo- Overrides:
hashCodein classFleetingNode
-