org.apache.xalan.xsltc.dom
public class KeyIndex extends DTMAxisIteratorBase
Nested Class Summary | |
---|---|
class | KeyIndex.KeyIndexIterator
An iterator representing the result of a reference to either the
XSLT key function or the XPath id function. |
Constructor Summary | |
---|---|
KeyIndex(int dummy) |
Method Summary | |
---|---|
void | add(Object value, int node, int rootNode)
Adds a node to the node list for a given value. |
DTMAxisIterator | cloneIterator() Returns a deep copy of this iterator. Use of an instance of this class as a DTMAxisIterator is deprecated. |
int | containsID(int node, Object value)
Given a context node and the argument to the XPath id
function, checks whether the context node is in the set of nodes that
results from that reference to the id function. |
int | containsKey(int node, Object value) Given a context node and the second argument to the XSLT
|
IntegerArray | getDOMNodeById(String id)
Return an IntegerArray for the DOM Node which has the given id.
|
KeyIndex.KeyIndexIterator | getKeyIndexIterator(Object keyValue, boolean isKeyCall)
Create a KeyIndexIterator that iterates over the nodes that
result from a reference to the XSLT key function or
XPath id function.
|
KeyIndex.KeyIndexIterator | getKeyIndexIterator(String keyValue, boolean isKeyCall)
Create a KeyIndexIterator that iterates over the nodes that
result from a reference to the XSLT key function or
XPath id function.
|
KeyIndex.KeyIndexIterator | getKeyIndexIterator(DTMAxisIterator keyValue, boolean isKeyCall)
Create a KeyIndexIterator that iterates over the nodes that
result from a reference to the XSLT key function or
XPath id function.
|
int | getLast() Returns the number of elements in this iterator. Use of an instance of this class as a DTMAxisIterator is deprecated. |
int | getPosition() Returns the position of the current node in the set. Use of an instance of this class as a DTMAxisIterator is deprecated. |
int | getStartNode() Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END. Use of an instance of this class as a DTMAxisIterator is deprecated. |
void | gotoMark() Restores the current node remembered by setMark(). Use of an instance of this class as a DTMAxisIterator is deprecated. |
boolean | isReverse() True if this iterator has a reversed axis. Use of an instance of this class as a DTMAxisIterator is deprecated. |
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. Use of an instance of this class as a DTMAxisIterator is deprecated. |
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. Use of an instance of this class as a DTMAxisIterator is deprecated. |
DTMAxisIterator | reset() Resets the iterator to the last start node. Use of an instance of this class as a DTMAxisIterator is deprecated. |
void | setDom(DOM dom) |
void | setMark() Remembers the current node for the next call to gotoMark(). Use of an instance of this class as a DTMAxisIterator is deprecated. |
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. Use of an instance of this class as a DTMAxisIterator is deprecated. |
Deprecated:
Returns a deep copy of this iterator.
Use of an instance of this class as a DTMAxisIterator is deprecated.
id
function, checks whether the context node is in the set of nodes that
results from that reference to the id
function. This is
used in the implementation of id
patterns.
Parameters: node The context node value The argument to the id
function
Returns: 1
if the context node is in the set of nodes
returned by the reference to the id
function;
0
, otherwise
Given a context node and the second argument to the XSLT
key
function, checks whether the context node is in the
set of nodes that results from that reference to the key
function. This is used in the implementation of key patterns.
This particular KeyIndex object is the result evaluating the
first argument to the key
function, so it's not taken into
any further account.
Parameters: node The context node value The second argument to the key
function
Returns: 1
if and only if the context node is in the set of
nodes returned by the reference to the key
function;
0
, otherwise
Parameters: id The id
Returns: A IntegerArray representing the Node whose id is the given value.
key
function or
XPath id
function.
Parameters: keyValue A string or iterator representing the key values or id
references isKeyCall A boolean
indicating whether the iterator
is being created for a reference key
or
id
key
function or
XPath id
function.
Parameters: keyValue A string representing the key values or id
references isKeyCall A boolean
indicating whether the iterator
is being created for a reference key
or
id
key
function or
XPath id
function.
Parameters: keyValue An iterator representing the key values or id
references isKeyCall A boolean
indicating whether the iterator
is being created for a reference key
or
id
Deprecated:
Returns the number of elements in this iterator.
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
Returns the position of the current node in the set.
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
Restores the current node remembered by setMark().
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
True if this iterator has a reversed axis.
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
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.Deprecated:
This method must be called by the code generated by the key() function prior to returning the node iterator.
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
Merge the current value's nodeset set by lookupKey() with _nodes.Deprecated:
Callers should not call next() after it returns END.
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
Resets the iterator to the last start node.
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
Remembers the current node for the next call to gotoMark().
Use of an instance of this class as a DTMAxisIterator is deprecated.
Deprecated:
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
Use of an instance of this class as a DTMAxisIterator is deprecated.