public class VirtualUntypedCopy extends VirtualCopy
Modifier and Type | Class and Description |
---|---|
protected class |
VirtualUntypedCopy.VirtualUntypedCopier |
VirtualCopy.VirtualCopier
documentNumber, original, parent, root, systemId
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
EMPTY_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 whichNamespaces,
boolean copyAnnotations,
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, wrap
protected 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 NodeInfo
getTypeAnnotation
in class VirtualCopy
Type
public 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 NodeInfo
atomize
in class VirtualCopy
XPathException
public SequenceIterator getTypedValue() throws XPathException
getTypedValue
in interface Item
getTypedValue
in class VirtualCopy
XPathException
- where no typed value is available, e.g. for
an element with complex contentpublic void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException
VirtualCopy
copy
in interface NodeInfo
copy
in class VirtualCopy
out
- the Receiver to which the node should be copiedwhichNamespaces
- in the case of an element, controls
which namespace nodes should be copied. Values are NO_NAMESPACES,
LOCAL_NAMESPACES, ALL_NAMESPACEScopyAnnotations
- indicates whether the type annotations
of element and attribute nodes should be copiedlocationId
- Identifies the location of the instruction
that requested this copy. Pass zero if no other information is availableXPathException
protected VirtualCopy.VirtualCopier makeCopier(AxisIterator axis, VirtualCopy newParent, NodeInfo root)
makeCopier
in class VirtualCopy
axis
- 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