|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.tree.wrapper.AbstractVirtualNode net.sf.saxon.tree.wrapper.TypeStrippedNode
public class TypeStrippedNode
A TypeStrippedNode is a view of a node, in a virtual tree that has type annotations stripped from it.
Field Summary |
---|
Fields inherited from class net.sf.saxon.tree.wrapper.AbstractVirtualNode |
---|
docWrapper, node, parent |
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 |
TypeStrippedNode()
|
protected |
TypeStrippedNode(NodeInfo node,
TypeStrippedNode parent)
This constructor is protected: nodes should be created using the makeWrapper factory method |
Method Summary | |
---|---|
Value |
atomize()
Get the typed value. |
int |
compareOrder(NodeInfo other)
Determine the relative position of this node and another node, in document order. |
void |
copy(Receiver out,
int copyOptions,
int locationId)
Copy this node to a given outputter (deep copy) |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node |
SchemaType |
getSchemaType()
Get the type annotation |
int |
getTypeAnnotation()
Get the type annotation |
boolean |
isSameNodeInfo(NodeInfo other)
Determine whether this is the same node as another node. |
AxisIterator |
iterateAxis(byte axisNumber)
Return an iteration over the nodes reached by the given axis from this node |
static TypeStrippedNode |
makeWrapper(NodeInfo node,
TypeStrippedDocument docWrapper,
TypeStrippedNode parent)
Factory method to wrap a node with a wrapper that implements the Saxon NodeInfo interface. |
VirtualNode |
makeWrapper(NodeInfo node,
VirtualNode parent)
Factory method to wrap a node with a VirtualNode |
Methods inherited from class net.sf.saxon.tree.wrapper.AbstractVirtualNode |
---|
equals, generateId, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getFingerprint, getLineNumber, getLocalPart, getNameCode, getNamePool, getNodeKind, getPrefix, getRealNode, getRoot, getStringValue, getStringValueCS, getSystemId, getTypedValue, getUnderlyingNode, getURI, hasChildNodes, hashCode, isId, isIdref, isNilled, iterateAxis, setSystemId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TypeStrippedNode()
protected TypeStrippedNode(NodeInfo node, TypeStrippedNode parent)
node
- The node to be wrappedparent
- The StrippedNode that wraps the parent of this nodeMethod Detail |
---|
public static TypeStrippedNode makeWrapper(NodeInfo node, TypeStrippedDocument docWrapper, TypeStrippedNode parent)
node
- The underlying nodedocWrapper
- The wrapper for the document node (must be supplied)parent
- The wrapper for the parent of the node (null if unknown)
public VirtualNode makeWrapper(NodeInfo node, VirtualNode parent)
makeWrapper
in interface WrappingFunction
node
- The underlying nodeparent
- The wrapper for the parent of the node (null if unknown)
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 AbstractVirtualNode
XPathException
- if the node has no typed value, for example if
it is an element node with element-only contentpublic int getTypeAnnotation()
getTypeAnnotation
in interface NodeInfo
getTypeAnnotation
in class AbstractVirtualNode
public SchemaType getSchemaType()
getSchemaType
in interface NodeInfo
getSchemaType
in class AbstractVirtualNode
public boolean isSameNodeInfo(NodeInfo other)
isSameNodeInfo
in interface NodeInfo
isSameNodeInfo
in class AbstractVirtualNode
other
- the node to be compared with this node
public int compareOrder(NodeInfo other)
compareOrder
in interface NodeInfo
compareOrder
in class AbstractVirtualNode
other
- The other node, whose position is to be compared with this node
public NodeInfo getParent()
getParent
in interface NodeInfo
public AxisIterator iterateAxis(byte axisNumber)
iterateAxis
in interface NodeInfo
axisNumber
- the axis to be used
Axis
public DocumentInfo getDocumentRoot()
getDocumentRoot
in interface NodeInfo
getDocumentRoot
in class AbstractVirtualNode
public void copy(Receiver out, int copyOptions, int locationId) throws XPathException
copy
in interface NodeInfo
out
- the Receiver to which the node should be copied. It is the caller's
responsibility to ensure that this Receiver is open before the method is called
(or that it is self-opening), and that it is closed after use.copyOptions
- a selection of the options defined in CopyOptions
locationId
- If non-zero, identifies the location of the instruction
that requested this copy. If zero, indicates that the location information
XPathException
- if any downstream error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |