public class VirtualUntypedCopy extends VirtualCopy
| Modifier and Type | Class and Description |
|---|---|
protected class |
VirtualUntypedCopy.VirtualUntypedCopier |
VirtualCopy.VirtualCopierdocumentNumber, original, parent, root, systemIdALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACESEMPTY_VALUE_ARRAY| Modifier | Constructor and Description |
|---|---|
protected |
VirtualUntypedCopy(NodeInfo base)
Protected constructor: create a virtual copy of a node
|
| Modifier and Type | Method and Description |
|---|---|
Value |
atomize()
Get the typed value.
|
void |
copy(Receiver out,
int copyOptions,
int locationId)
Copy this node to a given outputter
|
int |
getTypeAnnotation()
Get the type annotation of this node, if any.
|
SequenceIterator |
getTypedValue()
Get the typed value of the item
|
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, 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, isId, isIdref, isNilled, isSameNodeInfo, 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 Value atomize() throws XPathException
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 VirtualCopyXPathExceptionpublic SequenceIterator getTypedValue() throws XPathException
getTypedValue in interface ItemgetTypedValue in class VirtualCopyXPathException - where no typed value is available, e.g. for
an element with complex 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 instructionXPathExceptionprotected 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 tree