|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.tree.wrapper.VirtualCopy net.sf.saxon.tree.wrapper.VirtualUntypedCopy
public class VirtualUntypedCopy
This class represents a virtual copy of a node with type annotations stripped
Nested Class Summary | |
---|---|
protected class |
VirtualUntypedCopy.VirtualUntypedCopier
|
Nested classes/interfaces inherited from class net.sf.saxon.tree.wrapper.VirtualCopy |
---|
VirtualCopy.VirtualCopier |
Field Summary |
---|
Fields inherited from class net.sf.saxon.tree.wrapper.VirtualCopy |
---|
documentNumber, original, parent, root, systemId |
Fields inherited from interface net.sf.saxon.om.NodeInfo |
---|
ALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
---|
EMPTY_VALUE_ARRAY |
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 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. |
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 |
Methods inherited from class net.sf.saxon.tree.wrapper.VirtualCopy |
---|
compareOrder, equals, generateId, getAttributeValue, 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, wrap |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected VirtualUntypedCopy(NodeInfo base)
base
- the node to be copiedMethod Detail |
---|
public static VirtualCopy makeVirtualUntypedCopy(NodeInfo original, NodeInfo root)
original
- the node to be copiedroot
- the root of the tree
public 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 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 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 SequenceIterator getTypedValue() throws XPathException
getTypedValue
in interface Item<NodeInfo>
getTypedValue
in class VirtualCopy
XPathException
- where no typed value is available, e.g. for
an element with complex 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 instruction
XPathException
- 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 tree
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |