org.apache.xalan.xsltc.dom
public class KeyIndex extends DTMAxisIteratorBase
| Constructor Summary | |
|---|---|
| KeyIndex(int dummy) | |
| Method Summary | |
|---|---|
| void | add(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, Object value) |
| int | containsKey(int node, Object value) |
| IntegerArray | getDOMNodeById(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(Object value)
This method must be called by the code generated by the id() function
prior to returning the node iterator. |
| void | lookupKey(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) |
| DTMAxisIterator | setStartNode(int start)
Set start to END should 'close' the iterator,
i.e. subsequent call to next() should return END. |
Parameters: id The id
Returns: A IntegerArray representing the Node whose id is the given value.