Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xml.dtm.ref.DTMAxisIteratorBase
org.apache.xalan.xsltc.dom.KeyIndex
public class KeyIndex
extends DTMAxisIteratorBase
Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator | |
END |
Constructor Summary | |
|
Method Summary | |
void |
|
DTMAxisIterator |
|
int |
|
int |
|
IntegerArray |
|
int |
|
int |
|
int |
|
void |
|
boolean |
|
void |
|
void |
|
void | |
int |
|
DTMAxisIterator |
|
void | |
void |
|
void |
|
DTMAxisIterator |
|
Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase | |
cloneIterator , getAxis , getLast , getNodeByPosition , getPosition , getStartNode , includeSelf , isDocOrdered , isReverse , reset , setRestartable |
public void add(Object value, int node)
Adds a node to the node list for a given value. Nodes will always be added in document order.
public DTMAxisIterator cloneIterator()
Returns a deep copy of this iterator.
- Specified by:
- cloneIterator in interface DTMAxisIterator
- Overrides:
- cloneIterator in interface DTMAxisIteratorBase
public int containsID(int node, Object value)
public int containsKey(int node, Object value)
public IntegerArray getDOMNodeById(String id)
Return an IntegerArray for the DOM Node which has the given id.
- Parameters:
id
- The id
- Returns:
- A IntegerArray representing the Node whose id is the given value.
public int getLast()
Returns the number of elements in this iterator.
- Specified by:
- getLast in interface DTMAxisIterator
- Overrides:
- getLast in interface DTMAxisIteratorBase
public int getPosition()
Returns the position of the current node in the set.
- Specified by:
- getPosition in interface DTMAxisIterator
- Overrides:
- getPosition in interface DTMAxisIteratorBase
public int getStartNode()
Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
- Specified by:
- getStartNode in interface DTMAxisIterator
- Overrides:
- getStartNode in interface DTMAxisIteratorBase
public void gotoMark()
Restores the current node remembered by setMark().
- Specified by:
- gotoMark in interface DTMAxisIterator
public boolean isReverse()
True if this iterator has a reversed axis.
- Specified by:
- isReverse in interface DTMAxisIterator
- Overrides:
- isReverse in interface DTMAxisIteratorBase
public void lookupId(Object value)
This method must be called by the code generated by the id() function prior to returning the node iterator. The lookup code for key() and id() differ in the way the lookup value can be whitespace separated list of tokens for the id() function, but a single string for the key() function.
public void lookupKey(Object value)
This method must be called by the code generated by the key() function prior to returning the node iterator.
public void merge(KeyIndex other)
Merge the current value's nodeset set by lookupKey() with _nodes.
public int next()
Callers should not call next() after it returns END.
- Specified by:
- next in interface DTMAxisIterator
public DTMAxisIterator reset()
Resets the iterator to the last start node.
- Specified by:
- reset in interface DTMAxisIterator
- Overrides:
- reset in interface DTMAxisIteratorBase
public void setMark()
Remembers the current node for the next call to gotoMark().
- Specified by:
- setMark in interface DTMAxisIterator
public void setRestartable(boolean flag)
Set if restartable.
- Specified by:
- setRestartable in interface DTMAxisIterator
- Overrides:
- setRestartable in interface DTMAxisIteratorBase
public DTMAxisIterator setStartNode(int start)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
- Specified by:
- setStartNode in interface DTMAxisIterator