public class SnapshotNode extends VirtualCopy implements NodeInfo
VirtualCopy.VirtualCopier| Modifier and Type | Field and Description |
|---|---|
protected NodeInfo |
pivot |
original, parent, root, systemId, treeALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Modifier | Constructor and Description |
|---|---|
protected |
SnapshotNode(NodeInfo base,
NodeInfo pivot)
Protected constructor: create a virtual copy of a node
|
| Modifier and Type | Method and Description |
|---|---|
AtomicSequence |
atomize()
Get the typed value of this node
|
void |
copy(Receiver out,
int copyOptions,
Location locationId)
Copy this node to a given outputter
|
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node
|
String |
getPublicId()
Return the public identifier for the current document event.
|
NodeInfo |
getRoot()
Get the root node of the tree containing this node
|
CharSequence |
getStringValueCS()
Get the value of the item as a CharSequence.
|
boolean |
isId()
Determine whether this node has the is-id property
|
boolean |
isIdref()
Determine whether this node has the is-idref property
|
protected boolean |
isIncludedInCopy(NodeInfo sourceNode)
Ask whether a node in the source tree is within the scope of this virtual copy
|
boolean |
isNilled()
Determine whether the node has the is-nilled property
|
AxisIterator |
iterateAxis(byte axisNumber,
NodeTest nodeTest)
Return an iteration over all the nodes reached by the given axis from this node
that match a given NodeTest
|
static SnapshotNode |
makeSnapshot(NodeInfo original)
Public factory method: apply the snapshot function to a node
|
protected SnapshotNode |
wrap(NodeInfo node)
Wrap a node in a VirtualCopy.
|
compareOrder, comparePosition, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getLineNumber, getLocalPart, getNodeKind, getOriginalNode, getPrefix, getSchemaType, getStringValue, getSystemId, getTreeInfo, getURI, hasChildNodes, hashCode, head, isSameNodeInfo, iterate, iterateAxis, makeCopier, makeVirtualCopy, saveLocation, setSystemIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompareOrder, comparePosition, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getLineNumber, getLocalPart, getNodeKind, getPrefix, getSchemaType, getStringValue, getSystemId, getTreeInfo, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxissetSystemIdsaveLocationprotected NodeInfo pivot
protected SnapshotNode(NodeInfo base, NodeInfo pivot)
base - the node in the source tree to which the new node should correspondpivot - the pivot node is the node supplied as argument to the snapshot() function; the snapshot
includes all ancestors of this node, and all descendants of this node (plus their attributes
and namespaces)public static SnapshotNode makeSnapshot(NodeInfo original)
original - the node to be copiedprotected SnapshotNode wrap(NodeInfo node)
wrap in class VirtualCopynode - the node to be wrappedpublic CharSequence getStringValueCS()
getStringValueCS in interface ItemgetStringValueCS in class VirtualCopyItem.getStringValue()public NodeInfo getParent()
getParent in interface NodeInfogetParent in class VirtualCopypublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class VirtualCopypublic void copy(Receiver out, int copyOptions, Location locationId) throws XPathException
copy in interface NodeInfocopy in class VirtualCopyout - the Receiver to which the node should be copiedcopyOptions - a selection of the options defined in CopyOptionslocationId - Identifies the location of the instructionXPathException - if any downstream error occurspublic AtomicSequence atomize() throws XPathException
atomize in interface Itematomize in interface NodeInfoatomize in class VirtualCopyXPathException - if the node has no typed value, for example if
it is an element node with element-only contentpublic boolean isId()
isId in interface NodeInfoisId in class VirtualCopypublic boolean isIdref()
isIdref in interface NodeInfoisIdref in class VirtualCopypublic boolean isNilled()
isNilled in interface NodeInfoisNilled in class VirtualCopypublic String getPublicId()
The return value is the public identifier of the document entity or of the external parsed entity in which the markup that triggered the event appears.
getPublicId in interface SourceLocatorgetPublicId in interface LocationgetPublicId in interface NodeInfogetPublicId in interface LocatorgetPublicId in class VirtualCopyVirtualCopy.getSystemId()public AxisIterator iterateAxis(byte axisNumber, NodeTest nodeTest)
iterateAxis in interface NodeInfoiterateAxis in class VirtualCopyaxisNumber - an integer identifying the axis; one of the constants
defined in class net.sf.saxon.om.AxisnodeTest - A pattern to be matched by the returned nodes; nodes
that do not match this pattern are not included in the resultUnsupportedOperationException - if the namespace axis is
requested and this axis is not supported for this implementation.AxisInfoprotected boolean isIncludedInCopy(NodeInfo sourceNode)
VirtualCopyisIncludedInCopy in class VirtualCopysourceNode - the node being testedCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.