|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.om.VirtualCopy
net.sf.saxon.om.VirtualUntypedCopy
public class VirtualUntypedCopy
This class represents a virtual copy of a node with type annotations stripped
| Field Summary |
|---|
| Fields inherited from interface net.sf.saxon.om.NodeInfo |
|---|
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
| Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
|---|
EMPTY_VALUE_ARRAY |
| Method Summary | |
|---|---|
Value |
atomize()
Get the typed value. |
void |
copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
Copy this node to a given outputter |
int |
getTypeAnnotation()
Get the type annotation of this node, if any. |
SequenceIterator |
getTypedValue()
Get the typed value of the item |
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.om.VirtualCopy |
|---|
compareOrder, equals, generateId, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeKind, getParent, getPrefix, getRoot, getStringValue, getStringValueCS, getSystemId, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxis, iterateAxis, makeVirtualCopy, setDocumentNumber, setSystemId |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method 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 NodeInfogetTypeAnnotation in class VirtualCopyType
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 NodeInfoatomize in class VirtualCopyXPathException
public SequenceIterator getTypedValue()
throws XPathException
getTypedValue in interface ItemgetTypedValue in class VirtualCopyXPathException - where no typed value is available, e.g. for
an element with complex content
public void copy(Receiver out,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
throws XPathException
VirtualCopy
copy in interface NodeInfocopy in class VirtualCopyout - the Receiver to which the node should be copiedwhichNamespaces - in the case of an element, controls
which namespace nodes should be copied. Values are NO_NAMESPACES,
LOCAL_NAMESPACES, ALL_NAMESPACEScopyAnnotations - indicates whether the type annotations
of element and attribute nodes should be copiedlocationId - Identifies the location of the instruction
that requested this copy. Pass zero if no other information is available
XPathException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||