|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.DTMManager
A DTMManager instance can be used to create DTM and DTMIterator objects, and manage the DTM objects in the system.
The system property that determines which Factory implementation to create is named "org.apache.xml.utils.DTMFactory". This property names a concrete subclass of the DTMFactory abstract class. If the property is not defined, a platform default is be used.
An instance of this class
Note: this class is incomplete right now. It will be pretty much modeled after javax.xml.transform.TransformerFactory in terms of its factory support.
State: In progress!!
Method Summary | |
abstract DTMIterator |
createDTMIterator(int whatToShow,
DTMFilter filter,
boolean entityReferenceExpansion)
Create a new DTMIterator based only on a whatToShow and
a DTMFilter. |
abstract DTMIterator |
createDTMIterator(java.lang.Object xpathCompiler,
int pos)
Create a new DTMIterator based on an XPath
UnionExpr. |
abstract DTMIterator |
createDTMIterator(java.lang.String xpathString,
PrefixResolver presolver)
Create a new DTMIterator based on an XPath
UnionExpr. |
abstract DTM |
getDTM(int nodeHandle)
Get an instance of a DTM that "owns" a node handle. |
abstract DTM |
getDTM(Source source,
boolean unique)
Get an instance of a DTM. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public abstract DTM getDTM(Source source, boolean unique)
source
- the specification of the source object.unique
- true if the returned DTM must be unique, probably because it
is going to be mutated.public abstract DTM getDTM(int nodeHandle)
nodeHandle
- the nodeHandle.public abstract DTMIterator createDTMIterator(java.lang.Object xpathCompiler, int pos)
DTMIterator
based on an XPath
UnionExpr.xpathCompiler
- ??? Somehow we need to pass in a subpart of the
expression. I hate to do this with strings, since the larger expression
has already been parsed.pos
- The position in the expression.DTMIterator
.public abstract DTMIterator createDTMIterator(java.lang.String xpathString, PrefixResolver presolver)
DTMIterator
based on an XPath
UnionExpr.xpathString
- Must be a valid string expressing a
UnionExpr.presolver
- An object that can resolve prefixes to namespace URLs.DTMIterator
.public abstract DTMIterator createDTMIterator(int whatToShow, DTMFilter filter, boolean entityReferenceExpansion)
DTMIterator
based only on a whatToShow and
a DTMFilter. The traversal semantics are defined as the descendant
access.whatToShow
- This flag specifies which node types may appear in
the logical view of the tree presented by the iterator. See the
description of NodeFilter
for the set of possible
SHOW_
values.These flags can be combined using
OR
.filter
- The NodeFilter
to be used with this
TreeWalker
, or null
to indicate no filter.entityReferenceExpansion
- The value of this flag determines
whether entity reference nodes are expanded.NodeIterator
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |