public class SpaceStrippedNode extends AbstractVirtualNode implements WrappingFunction
docWrapper, node, parentALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Modifier | Constructor and Description |
|---|---|
protected |
SpaceStrippedNode() |
protected |
SpaceStrippedNode(NodeInfo node,
SpaceStrippedNode parent)
This constructor is protected: nodes should be created using the makeWrapper
factory method
|
| Modifier and Type | Method and Description |
|---|---|
AtomicSequence |
atomize()
Get the typed value.
|
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in document order.
|
int |
comparePosition(NodeInfo other)
Determine the relative position of this node and another node, in document order,
distinguishing whether the first node is a preceding, following, descendant, ancestor,
or the same node as the second.
|
void |
copy(Receiver out,
int copyOptions,
int locationId)
Copy this node to a given outputter (deep copy)
|
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node
|
CharSequence |
getStringValueCS()
Get the value of the item as a CharSequence.
|
boolean |
isSameNodeInfo(NodeInfo other)
Determine whether this is the same node as another node.
|
AxisIterator |
iterateAxis(byte axisNumber)
Return an iteration over the nodes reached by the given axis from this node
|
protected static SpaceStrippedNode |
makeWrapper(NodeInfo node,
SpaceStrippedDocument docWrapper,
SpaceStrippedNode parent)
Factory method to wrap a node with a wrapper that implements the Saxon
NodeInfo interface.
|
VirtualNode |
makeWrapper(NodeInfo node,
VirtualNode parent)
Factory method to wrap a node within the same document as this node with a VirtualNode
|
equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeKind, getPrefix, getRealNode, getRoot, getSchemaType, getStringValue, getSystemId, getTypeAnnotation, getUnderlyingNode, getURI, hasChildNodes, hashCode, head, isId, isIdref, isNilled, iterate, iterateAxis, setSystemIdprotected SpaceStrippedNode()
protected SpaceStrippedNode(NodeInfo node, SpaceStrippedNode parent)
node - The node to be wrappedparent - The StrippedNode that wraps the parent of this nodeprotected static SpaceStrippedNode makeWrapper(NodeInfo node, SpaceStrippedDocument docWrapper, SpaceStrippedNode 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 VirtualNode makeWrapper(NodeInfo node, VirtualNode parent)
makeWrapper in interface WrappingFunctionnode - The underlying nodeparent - The wrapper for the parent of the node (null if unknown)public AtomicSequence atomize() throws XPathException
atomize in interface NodeInfoatomize in class AbstractVirtualNodeXPathException - if the node has no typed value, for example if
it is an element node with element-only contentpublic boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo in interface NodeInfoisSameNodeInfo in class AbstractVirtualNodeother - the node to be compared with this nodepublic int compareOrder(NodeInfo other)
compareOrder in interface NodeInfocompareOrder in class AbstractVirtualNodeother - The other node, whose position is to be compared with this nodepublic int comparePosition(NodeInfo other)
comparePosition in interface NodeInfocomparePosition in class AbstractVirtualNodeother - The other node, whose position is to be compared with this
nodeAxisInfo.PRECEDING if this node is on the preceding axis of the other node;
AxisInfo.FOLLOWING if it is on the following axis; AxisInfo.ANCESTOR if the first node is an
ancestor of the second; AxisInfo.DESCENDANT if the first is a descendant of the second;
AxisInfo.SELF if they are the same node.UnsupportedOperationException - if either node is an attribute or namespacepublic CharSequence getStringValueCS()
getStringValueCS in interface ItemgetStringValueCS in class AbstractVirtualNodeItem.getStringValue()public NodeInfo getParent()
public AxisIterator iterateAxis(byte axisNumber)
iterateAxis in interface NodeInfoaxisNumber - the axis to be usedAxisInfopublic void copy(Receiver out, int copyOptions, int locationId) throws XPathException
copy in interface NodeInfoout - the Receiver to which the node should be copied. It is the caller's
responsibility to ensure that this Receiver is open before the method is called
(or that it is self-opening), and that it is closed after use.copyOptions - a selection of the options defined in CopyOptionslocationId - If non-zero, identifies the location of the instruction
that requested this copy. If zero, indicates that the location informationXPathException - if any downstream error occursCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.