Package net.sf.saxon.om
Class DocumentInfo
java.lang.Object
net.sf.saxon.tree.wrapper.AbstractVirtualNode
net.sf.saxon.om.DocumentInfo
- All Implemented Interfaces:
Iterable<NodeInfo>,Source,SourceLocator,Location,GroundedValue<NodeInfo>,Item<NodeInfo>,NodeInfo,Sequence<NodeInfo>,VirtualNode,Locator
The class DocumentInfo is retained in Saxon 9.7 to preserve a level of backwards compatibility
for applications that use the method
Configuration.buildDocument(Source)
method to construct a tree. In earlier releases it was an interface implemented by all document
nodes; from 9.7 it is a wrapper object around the NodeInfo object that represents the actual
document node-
Field Summary
Fields inherited from class net.sf.saxon.tree.wrapper.AbstractVirtualNode
docWrapper, node, parentFields inherited from interface net.sf.saxon.om.NodeInfo
IS_DTD_TYPE, IS_NILLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopy this node to a given Receiver.Get the NodeInfo object representing the parent of this nodeiterateAxis(byte axisNumber) Return an iteration over all the nodes reached by the given axis from this nodeMethods inherited from class net.sf.saxon.tree.wrapper.AbstractVirtualNode
atomize, compareOrder, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDisplayName, getFingerprint, getLineNumber, getLocalPart, getNodeKind, getPrefix, getRealNode, getRoot, getSchemaType, getStringValue, getStringValueCS, getSystemId, getTreeInfo, getUnderlyingNode, getURI, hasChildNodes, hasFingerprint, hashCode, isId, isIdref, isNilled, iterateAxis, saveLocation, setSystemIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, effectiveBooleanValue, materializeMethods inherited from interface net.sf.saxon.om.Item
getLength, head, itemAt, iterate, iterator, reduce, subsequenceMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.sf.saxon.om.NodeInfo
getConfiguration, getGenre, getPublicId, isSameNodeInfo, isStreamed, toShortStringMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Constructor Details
-
DocumentInfo
-
-
Method Details
-
copy
Description copied from interface:NodeInfoCopy this node to a given Receiver.This method is primarily for internal use. It should not be considered a stable part of the Saxon API.
The default implementation invokes
Navigator.copy(this, out, copyOptions, locationId);which is always adequate.- Parameters:
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 inCopyOptionslocationId- If non-null, identifies the location of the instruction that requested this copy. If zero, indicates that the location information is not available- Throws:
XPathException- if any downstream error occurs
-
getParent
Description copied from interface:NodeInfoGet the NodeInfo object representing the parent of this node- Returns:
- the parent of this node; null if this node has no parent
-
iterateAxis
Description copied from interface:NodeInfoReturn an iteration over all the nodes reached by the given axis from this node- Parameters:
axisNumber- an integer identifying the axis; one of the constants defined in classAxisInfo- Returns:
- an AxisIterator that delivers the nodes reached by the axis in
turn. The nodes are returned in axis order (document order for a forwards
axis, reverse document order for a reverse axis). The default implementation
returns
iterateAxis(axisNumber, AnyNodeTest.getInstance(). - See Also:
-