public class VirtualUntypedCopy extends VirtualCopy
VirtualCopy.VirtualCopieroriginal, parent, root, systemId, treeALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Modifier | Constructor and Description |
|---|---|
protected |
VirtualUntypedCopy(NodeInfo base,
NodeInfo root)
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,
Location locationId)
Copy this node to a given outputter
|
SchemaType |
getSchemaType()
Get the type annotation of this node, if any.
|
boolean |
isNilled()
Determine whether the node has the is-nilled property
|
static VirtualCopy |
makeVirtualUntypedTree(NodeInfo original,
NodeInfo root)
Public factory method: create a new untyped virtual tree as a copy of a node
|
protected VirtualCopy |
wrap(NodeInfo node)
Method to create the virtual copy of a node encountered when navigating.
|
compareOrder, comparePosition, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getLineNumber, getLocalPart, getNodeKind, getOriginalNode, getParent, getPrefix, getPublicId, getRoot, getStringValue, getStringValueCS, getSystemId, getTreeInfo, getURI, hasChildNodes, hasFingerprint, hashCode, head, isId, isIdref, isIncludedInCopy, isSameNodeInfo, isStreamed, iterate, iterateAxis, iterateAxis, makeCopier, makeVirtualCopy, saveLocation, setDropNamespaces, setSystemIdpublic static VirtualCopy makeVirtualUntypedTree(NodeInfo original, NodeInfo root)
original - the node (in the original tree) to be copiedroot - the node in the original tree corresponding to the root node of the virtual copypublic 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
atomize in interface Itematomize 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, Location 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 wrap(NodeInfo node)
wrap in class VirtualCopynode - the node to be wrappedpublic boolean isNilled()
isNilled in interface NodeInfoisNilled in class VirtualCopyCopyright (c) 2004-2017 Saxonica Limited. All rights reserved.