public class VirtualUntypedCopy extends VirtualCopy
| Modifier and Type | Class and Description |
|---|---|
protected class |
VirtualUntypedCopy.VirtualUntypedCopier |
VirtualCopy.VirtualCopierdocumentNumber, original, parent, root, systemIdALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Modifier | Constructor and Description |
|---|---|
protected |
VirtualUntypedCopy(NodeInfo base)
Protected constructor: create a virtual copy of a node
|
| Modifier and Type | Method and Description |
|---|---|
AtomicSequence |
atomize()
Get the typed value.
|
void |
copy(Receiver out,
int copyOptions,
int locationId)
Copy this node to a given outputter
|
SchemaType |
getSchemaType()
Get the type annotation of this node, if any.
|
int |
getTypeAnnotation()
Get the type annotation of this node, if any.
|
protected VirtualCopy.VirtualCopier |
makeCopier(AxisIterator axis,
VirtualCopy newParent,
NodeInfo root)
Create an iterator that makes and returns virtual copies of nodes on the original tree
|
static VirtualCopy |
makeVirtualUntypedCopy(NodeInfo original,
NodeInfo root)
Public factory method: create an untyped virtual copy of a node
|
compareOrder, comparePosition, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeKind, getParent, getPrefix, getPublicId, getRoot, getStringValue, getStringValueCS, getSystemId, getURI, hasChildNodes, hashCode, head, isId, isIdref, isNilled, isSameNodeInfo, iterate, iterateAxis, iterateAxis, makeVirtualCopy, setDocumentNumber, setSystemId, wrapprotected VirtualUntypedCopy(NodeInfo base)
base - the node to be copiedpublic static VirtualCopy makeVirtualUntypedCopy(NodeInfo original, NodeInfo root)
original - the node to be copiedroot - the root of the treepublic int getTypeAnnotation()
getTypeAnnotation in interface NodeInfogetTypeAnnotation in class VirtualCopyTypepublic SchemaType getSchemaType()
Types derived from a DTD are not reflected in the result of this method.
getSchemaType in interface NodeInfogetSchemaType in class VirtualCopypublic AtomicSequence atomize() throws XPathException
net.sf.saxon.om.Item#getTypedValue(). However, this method is often more convenient and may be
more efficient, especially in the common case where the value is expected to be a singleton.atomize 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 void copy(Receiver out, int copyOptions, int locationId) throws XPathException
VirtualCopycopy 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 occursprotected VirtualCopy.VirtualCopier makeCopier(AxisIterator axis, VirtualCopy newParent, NodeInfo root)
makeCopier in class VirtualCopyaxis - the axis to be navigatednewParent - the parent of the nodes in the new virtual tree (may be null)root - the root of the virtual treeCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.