public class RebasedNode extends AbstractVirtualNode implements WrappingFunction
docWrapper, node, parent
IS_DTD_TYPE, IS_NILLED
Modifier | Constructor and Description |
---|---|
protected |
RebasedNode() |
protected |
RebasedNode(NodeInfo node,
RebasedNode parent)
This constructor is protected: nodes should be created using the makeWrapper
factory method
|
Modifier and Type | Method and Description |
---|---|
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in document order.
|
boolean |
equals(java.lang.Object other)
Determine whether this is the same node as another node.
|
java.lang.String |
getBaseURI()
Get the Base URI for the node, that is, the URI used for resolving a relative URI contained
in the node.
|
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node
|
java.lang.String |
getSystemId()
Get the System ID for the node.
|
AxisIterator |
iterateAxis(byte axisNumber)
Return an iteration over the nodes reached by the given axis from this node
|
static RebasedNode |
makeWrapper(NodeInfo node,
RebasedDocument docWrapper,
RebasedNode parent)
Factory method to wrap a node with a wrapper that implements the Saxon
NodeInfo interface.
|
RebasedNode |
makeWrapper(NodeInfo node,
VirtualNode parent)
Factory method to wrap a node with a VirtualNode
|
atomize, generateId, getAttributeValue, getColumnNumber, getDeclaredNamespaces, getDisplayName, getFingerprint, getLineNumber, getLocalPart, getNodeKind, getPrefix, getRealNode, getRoot, getSchemaType, getStringValue, getStringValueCS, getTreeInfo, getUnderlyingNode, getURI, hasChildNodes, hasFingerprint, hashCode, isId, isIdref, isNilled, iterateAxis, saveLocation, setSystemId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy, getConfiguration, getGenre, getPublicId, isSameNodeInfo, isStreamed, toShortString
getLength, head, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, effectiveBooleanValue, materialize
makeRepeatable
protected RebasedNode()
protected RebasedNode(NodeInfo node, RebasedNode parent)
node
- The node to be wrappedparent
- The RebasedNode that wraps the parent of this nodepublic static RebasedNode makeWrapper(NodeInfo node, RebasedDocument docWrapper, RebasedNode parent)
node
- The underlying nodedocWrapper
- The wrapper for the document node (must be supplied)parent
- The wrapper for the parent of the node (null if unknown)public RebasedNode makeWrapper(NodeInfo node, VirtualNode parent)
makeWrapper
in interface WrappingFunction
node
- The underlying nodeparent
- The wrapper for the parent of the node (null if unknown)public java.lang.String getBaseURI()
getBaseURI
in interface NodeInfo
getBaseURI
in class AbstractVirtualNode
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Source
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface Location
getSystemId
in interface NodeInfo
getSystemId
in interface org.xml.sax.Locator
getSystemId
in class AbstractVirtualNode
public boolean equals(java.lang.Object other)
Note: a.isSameNode(b) if and only if generateId(a)==generateId(b)
equals
in interface NodeInfo
equals
in class AbstractVirtualNode
other
- the node to be compared with this nodepublic int compareOrder(NodeInfo other)
compareOrder
in interface NodeInfo
compareOrder
in class AbstractVirtualNode
other
- The other node, whose position is to be compared with this nodepublic NodeInfo getParent()
public AxisIterator iterateAxis(byte axisNumber)
iterateAxis
in interface NodeInfo
axisNumber
- the axis to be usedAxisInfo
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.