public class VirtualUntypedCopy extends VirtualCopy
VirtualCopy.VirtualCopier
original, parent, root, systemId, tree
ALL_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, getLineNumber, getLocalPart, getNodeKind, getOriginalNode, getParent, getPrefix, getPublicId, getRoot, getStringValue, getStringValueCS, getSystemId, getTreeInfo, getURI, hasChildNodes, hashCode, head, isId, isIdref, isIncludedInCopy, isSameNodeInfo, iterate, iterateAxis, iterateAxis, makeCopier, makeVirtualCopy, saveLocation, setSystemId
public 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 NodeInfo
getSchemaType
in class VirtualCopy
public AtomicSequence atomize() throws XPathException
atomize
in interface Item
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, Location 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 wrap(NodeInfo node)
wrap
in class VirtualCopy
node
- the node to be wrappedpublic boolean isNilled()
isNilled
in interface NodeInfo
isNilled
in class VirtualCopy
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.