public class VirtualUntypedCopy extends VirtualCopy
Modifier and Type | Class and Description |
---|---|
protected class |
VirtualUntypedCopy.VirtualUntypedCopier |
VirtualCopy.VirtualCopier
documentNumber, original, parent, root, systemId
ALL_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, 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 SchemaType getSchemaType()
Types derived from a DTD are not reflected in the result of this method.
getSchemaType
in interface NodeInfo
getSchemaType
in class VirtualCopy
public AtomicSequence atomize() throws XPathException
atomize
in interface NodeInfo
atomize
in class VirtualCopy
XPathException
- 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
VirtualCopy
copy
in interface NodeInfo
copy
in class VirtualCopy
out
- the Receiver to which the node should be copiedcopyOptions
- a selection of the options defined in CopyOptions
locationId
- Identifies the location of the instructionXPathException
- if any downstream error occursprotected 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 treeCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.