|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.om.TreeModel
public abstract class TreeModel
A TreeModel represents an implementation of the Saxon NodeInfo interface, which itself is essentially an implementation of the XDM model defined in W3C specifications (except that Saxon's NodeInfo understands the 13 XPath axes, rather than merely supporting parent and child properties).
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. |
Constructor Summary | |
---|---|
TreeModel()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TreeModel TINY_TREE
public static final TreeModel TINY_TREE_CONDENSED
public static final TreeModel LINKED_TREE
Constructor Detail |
---|
public TreeModel()
Method Detail |
---|
public abstract Builder makeBuilder()
public int getSymbolicValue()
Builder.TINY_TREE
public static TreeModel getTreeModel(int symbolicValue)
symbolicValue
- one of the constants Builder.TINY_TREE
,
Builder.TINY_TREE_CONDENSED
, or Builder.LINKED_TREE
public boolean isMutable()
MutableNodeInfo
, which is necessary
if they are to support XQuery Update. This method can be overridden in subclasses;
the default implementation returns false.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |