|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.dtm.ref.DTMAxisIteratorBase
org.apache.xalan.xsltc.dom.KeyIndex
public class KeyIndex
Field Summary |
---|
Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator |
---|
END |
Constructor Summary | |
---|---|
KeyIndex(int dummy)
|
Method Summary | |
---|---|
void |
add(java.lang.Object value,
int node)
Adds a node to the node list for a given value. |
DTMAxisIterator |
cloneIterator()
Returns a deep copy of this iterator. |
int |
containsID(int node,
java.lang.Object value)
|
int |
containsKey(int node,
java.lang.Object value)
|
IntegerArray |
getDOMNodeById(java.lang.String id)
Return an IntegerArray for the DOM Node which has the given id. |
int |
getLast()
Returns the number of elements in this iterator. |
int |
getPosition()
Returns the position of the current node in the set. |
int |
getStartNode()
Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END. |
void |
gotoMark()
Restores the current node remembered by setMark(). |
boolean |
isReverse()
True if this iterator has a reversed axis. |
void |
lookupId(java.lang.Object value)
This method must be called by the code generated by the id() function prior to returning the node iterator. |
void |
lookupKey(java.lang.Object value)
This method must be called by the code generated by the key() function prior to returning the node iterator. |
void |
merge(KeyIndex other)
Merge the current value's nodeset set by lookupKey() with _nodes. |
int |
next()
Callers should not call next() after it returns END. |
DTMAxisIterator |
reset()
Resets the iterator to the last start node. |
void |
setDom(DOM dom)
|
void |
setMark()
Remembers the current node for the next call to gotoMark(). |
void |
setRestartable(boolean flag)
Set if restartable. |
DTMAxisIterator |
setStartNode(int start)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END. |
Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase |
---|
getAxis, getNodeByPosition, includeSelf, isDocOrdered |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyIndex(int dummy)
Method Detail |
---|
public void setRestartable(boolean flag)
DTMAxisIterator
setRestartable
in interface DTMAxisIterator
setRestartable
in class DTMAxisIteratorBase
public void add(java.lang.Object value, int node)
public void merge(KeyIndex other)
public void lookupId(java.lang.Object value)
public IntegerArray getDOMNodeById(java.lang.String id)
id
- The id
public void lookupKey(java.lang.Object value)
public int next()
public int containsID(int node, java.lang.Object value)
public int containsKey(int node, java.lang.Object value)
public DTMAxisIterator reset()
reset
in interface DTMAxisIterator
reset
in class DTMAxisIteratorBase
public int getLast()
getLast
in interface DTMAxisIterator
getLast
in class DTMAxisIteratorBase
public int getPosition()
getPosition
in interface DTMAxisIterator
getPosition
in class DTMAxisIteratorBase
public void setMark()
public void gotoMark()
public DTMAxisIterator setStartNode(int start)
start
- Sets the root of the iteration.
public int getStartNode()
getStartNode
in interface DTMAxisIterator
getStartNode
in class DTMAxisIteratorBase
public boolean isReverse()
isReverse
in interface DTMAxisIterator
isReverse
in class DTMAxisIteratorBase
public DTMAxisIterator cloneIterator()
cloneIterator
in interface DTMAxisIterator
cloneIterator
in class DTMAxisIteratorBase
public void setDom(DOM dom)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |