This package defines the implementation of the so-called "linked tree" structure. This
structure can be used to represent both the source document and the stylesheet.
It is no longer the default structure for source documents, but is always used for
stylesheets and for schema documents, because it allows each element to be represented
by a subclass of
Element with application-specific functionality.
The classes represent the various kinds of node on the tree. Most of them are not visible outside the package, with the notable exception of ElementImpl, which can be subclassed to contain properties for a particular kind of element. This capability is exploited especially in the stylesheet tree.
As well as classes representing nodes, there are classes representing
iterators over the various XPath axes, for example
TreeBuilder performs the work of constructing a tree, from a
sequence of SAX-like
The package also contains some helper classes such as
LineNumberMap that are used also by the TinyTree implementation.
Interface Summary Interface Description NodeFactoryInterface NodeFactory.
Class Summary Class Description AttributeImplA node in the "linked" tree representing an attribute. AttributeMapWithIdentityAn implementation of AttributeMap suitable for representing attributes on a mutable tree. CommentImplCommentImpl is an implementation of a Comment node DocumentImplA node in the XML parse tree representing the Document itself (or equivalently, the root node of the Document). ElementImplElementImpl implements an element node in the Linked tree model. LineNumberMapLine numbers are not held in nodes in the tree, because they are not usually needed. LinkedBuilderMonitorMonitor construction of a document tree. LinkedTreeBuilderThe LinkedTreeBuilder class is responsible for taking a stream of Receiver events and constructing a Document tree using the linked tree implementation. NodeImplA node in the "linked" tree representing any kind of node except a namespace node. ParentNodeImplParentNodeImpl is an implementation of a non-leaf node (specifically, an Element node or a Document node) ProcInstImplProcInstImpl is an implementation of ProcInstInfo used by the Propagator to construct its trees. SystemIdMapSystem IDs are not held in nodes in the tree, because they are usually the same for a whole document. TextImplA node in the XML parse tree representing character content.