javax.xml.transform.Source, PullEvent, Item, NodeInfo, ValueRepresentationpublic class VirtualUntypedCopy extends VirtualCopy
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
VirtualUntypedCopy.VirtualUntypedCopier |
VirtualCopy.VirtualCopierALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACESEMPTY_VALUE_ARRAYdocumentNumber, original, parent, root, systemId| Modifier | Constructor | Description |
|---|---|---|
protected |
VirtualUntypedCopy(NodeInfo base) |
Protected constructor: create a virtual copy of a node
|
| Modifier and Type | Method | 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
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompareOrder, 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 whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException
VirtualCopycopy in interface NodeInfocopy in class VirtualCopyout - 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 availableXPathExceptionprotected 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