net.sf.saxon.om
public abstract class TreeModel extends Object implements Serializable
This class serves two purposes: it acts as a factory for obtaining a Builder which can be used to build trees using this tree model; and it provides static constants that can be used to identify the built-in tree models.
Field Summary | |
---|---|
static TreeModel | LINKED_TREE
The LinkedTree. |
static TreeModel | TINY_TREE
The TinyTree implementation. |
static TreeModel | TINY_TREE_CONDENSED
The CondensedTinyTree implementation. |
Method Summary | |
---|---|
int | getSymbolicValue()
Get the integer constant used to identify this tree model in some legacy interfaces |
static TreeModel | getTreeModel(int symbolicValue)
Get the tree model corresponding to a given integer constant |
boolean | isMutable()
Ask whether this tree model supports updating (that is, whether the nodes
in the constructed tree will implement MutableNodeInfo, which is necessary
if they are to support XQuery Update. |
abstract Builder | makeBuilder()
Make a Builder to construct an instance of this tree model from a stream of events |
Returns: an integer constant used to identify the model, for example TINY_TREE
Parameters: symbolicValue one of the constants TINY_TREE, TINY_TREE_CONDENSED, or LINKED_TREE
Returns: the corresponding TreeModel
Returns: true if the tree model implementation supports updating, that is, if its nodes support the MutableNodeInfo interface.
Returns: a newly created Builder