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:
javax.xml.transform.Source
,javax.xml.transform.SourceLocator
,ActiveSource
,GroundedValue
,Item
,NodeInfo
,Sequence
,Location
,org.xml.sax.Locator
- Direct Known Subclasses:
FleetingDocumentNode
,FleetingElementNode
public abstract class FleetingParentNode extends FleetingNode
A streamed document or element node.
-
-
Field Summary
-
Fields inherited from class com.saxonica.ee.stream.om.FleetingNode
root
-
-
Constructor Summary
Constructors Constructor Description FleetingParentNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
Determine whether this is the same node as another node.boolean
hasChildNodes()
Ask whether the node has any children.int
hashCode()
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 void
notify(Receiver out)
Notify the event to a Receivervoid
setHasChildren(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, setTypeAnnotation
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, effectiveBooleanValue, materialize
-
Methods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, itemAt, iterate, reduce, subsequence
-
Methods 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, toShortString
-
Methods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
-
-
-
Method Detail
-
hasChildNodes
public boolean hasChildNodes()
Ask whether the node has any children.- Specified by:
hasChildNodes
in interfaceNodeInfo
- Overrides:
hasChildNodes
in 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
public abstract void notify(Receiver out) throws XPathException
Notify the event to a Receiver- Parameters:
out
- the receiver to be notified- Throws:
XPathException
-
equals
public boolean equals(java.lang.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 interfaceNodeInfo
- Overrides:
equals
in 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: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 interfaceNodeInfo
- Overrides:
hashCode
in classFleetingNode
-
-