Package net.sf.saxon.tree.util
package net.sf.saxon.tree.util
This package defines a number of utility and helper classes for implementing tree models.
The Navigator
class provides many utility methods, for example to implement various
axes in terms
of other axes, and to support numbering.
The Orphan
class is a general-purpose implementation of a node with no parent, no
attributes, and no children.
-
ClassDescriptionAttributeCollectionImpl is an implementation of the SAX2 interface Attributes.Interface that accepts a string in the form of a sequence of CharSequences, which are conceptually concatenated (though in some implementations, the final string may never be materialized in memory)This class (which has one instance per Configuration) is used to allocate unique document numbers.A simple implementation of a class similar to StringBuffer.This class is a NamespaceResolver that modifies an underyling NamespaceResolver by changing the mapping of the null prefix to be a specified namespace, rather than the one used by the underlying namespace resolver.The Navigator class provides helper classes for navigating a tree, irrespective of its implementationGeneral-purpose implementation of the ancestor and ancestor-or-self axesAxisFilter is an iterator that applies a NodeTest filter to the nodes returned by an underlying AxisIterator.General-purpose implementation of the descendant and descendant-or-self axes, in terms of the child axis.EmptyTextFilter is an iterator that applies removes any zero-length text nodes returned by an underlying AxisIterator.General purpose implementation of the following axis, in terms of the ancestor, child, and following-sibling axesHelper method to iterate over the preceding axis, or Saxon's internal preceding-or-ancestor axis, by making use of the ancestor, descendant, and preceding-sibling axes.A node (implementing the NodeInfo interface) representing an attribute, text node, comment, processing instruction, or namespace that has no parent (and of course no children).ProcInstParser is used to parse pseudo-attributes within Processing Instructions.The SteppingNavigator is a utility class containing methods to assist with navigating a tree whose nodes implement the
SteppingNode
interfaceSteppingNavigator.DescendantAxisIterator<N extends SteppingNode<N>>An iterator over the descendant or descendant-or-self axisSteppingNode<N extends SteppingNode>This interface can be implemented by an implementation of NodeInfo to take advantage of a generic implementation of the descendant axis found in classSteppingNavigator