net.sf.saxon.om
public class VirtualUntypedCopy extends VirtualCopy
Nested Class Summary | |
---|---|
protected class | VirtualUntypedCopy.VirtualUntypedCopier |
Constructor Summary | |
---|---|
protected | VirtualUntypedCopy(NodeInfo base)
Protected constructor: create a virtual copy of a node
|
Method Summary | |
---|---|
Value | atomize()
Get the typed value. |
void | copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) |
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 |
Parameters: base the node to be copied
Returns: the typed value. If requireSingleton is set to true, the result will always be an AtomicValue. In other cases it may be a Value representing a sequence whose items are atomic values.
Since: 8.5
Returns: the type annotation of the node.
See Also: Type
Returns: the typed value of the item. In general this will be a sequence
Throws: net.sf.saxon.trans.XPathException where no typed value is available, e.g. for an element with complex content
Parameters: axis the axis to be navigated newParent the parent of the nodes in the new virtual tree (may be null) root the root of the virtual tree
Parameters: original the node to be copied root the root of the tree
Returns: the virtual copy.