DTMAxisIterator is
deprecated.
| Modifier and Type | Class and Description |
|---|---|
| public class | KeyIndex.
An iterator representing the result of a reference to either the
XSLT |
| Modifier and Type | Field and Description |
|---|---|
| private int | _currentDocumentNode
The document node currently being processed. |
| private DOM | _dom
The XSLTC DOM object if this KeyIndex is being used to implement the id() function. |
| private DOMEnhancedForDTM | |
| private Map | _index
A mapping between values and nodesets for the current document. |
| private int | _markedPosition
Store position after call to setMark() |
| private IntegerArray | _nodes
The node set associated to the current value passed to lookupKey(); |
| private Map | _rootToIndexMap
A mapping from a document node to the mapping between values and nodesets |
| private static final IntegerArray | EMPTY_NODES
Used to represent an empty node set. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public DTMAxisIterator | cloneIterator()
Overrides com. Implements com.
Deprecated
Returns a deep copy of this iterator. |
| public int | Returns: 1 if the context node is in the set of nodes
returned by the reference to the id function;
0, otherwiseThe context node node, Object The argument to the value)id functionGiven a context node and the argument to the XPath |
| public int | Returns: 1 if and only if the context node is in the set of
nodes returned by the reference to the key function;
0, otherwiseThe context node node, Object The second argument to the value)key functionGiven a context node and the second argument to the XSLT
|
| public IntegerArray | Returns: A IntegerArray representing the Node whose id is the given value.The id id)Return an IntegerArray for the DOM Node which has the given id. |
| public KeyIndex. | getKeyIndexIterator(Object
A string or iterator representing the key values or id
references keyValue, boolean A isKeyCall)boolean indicating whether the iterator
is being created for a reference key or
idCreate a |
| public KeyIndex. | getKeyIndexIterator(String
A string representing the key values or id
references keyValue, boolean A isKeyCall)boolean indicating whether the iterator
is being created for a reference key or
idCreate a |
| public KeyIndex. | getKeyIndexIterator(DTMAxisIterator
An iterator representing the key values or id
references keyValue, boolean A isKeyCall)boolean indicating whether the iterator
is being created for a reference key or
idCreate a |
| public int | getLast()
Overrides com. Implements com.
Deprecated
Returns the number of elements in this iterator. |
| public int | getPosition()
Overrides com. Implements com.
Deprecated
Returns the position of the current node in the set. |
| public int | getStartNode()
Overrides com. Implements com.
Deprecated
Get start to END should 'close' the iterator, i.e. subsequent call to next() should return END. |
| public void | gotoMark()
Implements com.
Deprecated
Restores the current node remembered by setMark(). |
| public boolean | isReverse()
Overrides com. Implements com.
Deprecated
True if this iterator has a reversed axis. |
| public void | |
| public void | |
| public void | |
| public int | next()
Implements com.
Deprecated
Callers should not call next() after it returns END. |
| public DTMAxisIterator | reset()
Overrides com. Implements com.
Deprecated
Resets the iterator to the last start node. |
| public void | |
| public void | setMark()
Implements com.
Deprecated
Remembers the current node for the next call to gotoMark(). |
| public void | setRestartable(boolean flag)
Overrides com. Implements com. Set if restartable. |
| public DTMAxisIterator | setStartNode(int start)
Implements com.
Deprecated
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END. |
| _currentDocumentNode | back to summary |
|---|---|
| private int _currentDocumentNode The document node currently being processed. Used only while building keys. | |
| _dom | back to summary |
|---|---|
| private DOM _dom The XSLTC DOM object if this KeyIndex is being used to implement the id() function. | |
| _enhancedDOM | back to summary |
|---|---|
| private DOMEnhancedForDTM _enhancedDOM | |
| _index | back to summary |
|---|---|
| private Map<String, IntegerArray> _index A mapping between values and nodesets for the current document. Used only while building keys. | |
| _markedPosition | back to summary |
|---|---|
| private int _markedPosition Store position after call to setMark() | |
| _nodes | back to summary |
|---|---|
| private IntegerArray _nodes The node set associated to the current value passed to lookupKey(); | |
| _rootToIndexMap | back to summary |
|---|---|
| private Map<Integer, Map<String, IntegerArray>> _rootToIndexMap A mapping from a document node to the mapping between values and nodesets | |
| EMPTY_NODES | back to summary |
|---|---|
| private static final IntegerArray EMPTY_NODES Used to represent an empty node set. | |
| KeyIndex | back to summary |
|---|---|
| public KeyIndex(int dummy) | |
| add | back to summary |
|---|---|
| public void add(String value, int node, int rootNode) Adds a node to the node list for a given value. Nodes will always be added in document order. | |
| cloneIterator | back to summary |
|---|---|
| public DTMAxisIterator cloneIterator() Overrides com. Implements com. Deprecated
Returns a deep copy of this iterator. Use of an instance of this class as a
| |
| containsID | back to summary |
|---|---|
| public int containsID(int node, Object value) Given a context node and the argument to the XPath
| |
| containsKey | back to summary |
|---|---|
| public int containsKey(int node, Object value) Given a context node and the second argument to the XSLT
This particular
| |
| getDOMNodeById | back to summary |
|---|---|
| public IntegerArray getDOMNodeById(String id) Return an IntegerArray for the DOM Node which has the given id.
| |
| getKeyIndexIterator | back to summary |
|---|---|
| public KeyIndex. Create a
| |
| getKeyIndexIterator | back to summary |
|---|---|
| public KeyIndex. Create a
| |
| getKeyIndexIterator | back to summary |
|---|---|
| public KeyIndex. Create a
| |
| getLast | back to summary |
|---|---|
| public int getLast() Overrides com. Implements com. Deprecated
Returns the number of elements in this iterator. Use of an instance of this class as a
| |
| getPosition | back to summary |
|---|---|
| public int getPosition() Overrides com. Implements com. Deprecated
Returns the position of the current node in the set. Use of an instance of this class as a
| |
| getStartNode | back to summary |
|---|---|
| public int getStartNode() Overrides com. Implements com. 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
| |
| gotoMark | back to summary |
|---|---|
| public void gotoMark() Implements com. Deprecated
Restores the current node remembered by setMark(). Use of an instance of this class as a
| |
| isReverse | back to summary |
|---|---|
| public boolean isReverse() Overrides com. Implements com. Deprecated
True if this iterator has a reversed axis. Use of an instance of this class as a
| |
| lookupId | back to summary |
|---|---|
| public void lookupId(Object value)
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.
| |
| lookupKey | back to summary |
|---|---|
| public void lookupKey(Object value)
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
| |
| merge | back to summary |
|---|---|
| public void merge(KeyIndex other)
Deprecated
Merge the current value's nodeset set by lookupKey() with _nodes.
| |
| next | back to summary |
|---|---|
| public int next() Implements com. Deprecated
Callers should not call next() after it returns END. Use of an instance of this class as a
| |
| reset | back to summary |
|---|---|
| public DTMAxisIterator reset() Overrides com. Implements com. Deprecated
Resets the iterator to the last start node. Use of an instance of this class as a
| |
| setDom | back to summary |
|---|---|
| public void setDom(DOM dom, int node) | |
| setMark | back to summary |
|---|---|
| public void setMark() Implements com. Deprecated
Remembers the current node for the next call to gotoMark(). Use of an instance of this class as a
| |
| setRestartable | back to summary |
|---|---|
| public void setRestartable(boolean flag) Overrides com. Implements com. Doc from com. Set if restartable. | |
| setStartNode | back to summary |
|---|---|
| public DTMAxisIterator setStartNode(int start) Implements com. 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
| |
key function or the XPath id function.
| Modifier and Type | Class and Description |
|---|---|
| protected class | KeyIndex.
Represents the DTM nodes retrieved for one key value or one string
argument to |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | _isKeyIterator
Indicates whether this object represents the result of a reference
to the |
| private String | _keyValue
This field contains the iterator representing a non-node-set key
value argument to the |
| private DTMAxisIterator | _keyValueIterator
This field contains the iterator representing a node set key value
argument to the |
| private IntegerArray | _nodes
A reference to the |
| Access | Constructor and Description |
|---|---|
| pack-priv | KeyIndexIterator(String
the argument to keyValue, boolean key or id
cast to a Stringindicates whether the constructed iterator
represents a reference to isKeyIterator)key or
id.Constructor used when the argument to |
| pack-priv | KeyIndexIterator(DTMAxisIterator
the argument to keyValues, boolean key or idindicates whether the constructed iterator
represents a reference to isKeyIterator)key or
id.Constructor used when the argument to |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of nodesOverrides com. Implements com. Returns the number of nodes in this iterator. |
| public int | Returns: The node at the given position.The position position)Overrides com. Implements com. Return the node at the given position. |
| protected void | init()
Overrides com. Evaluate the reference to the |
| protected IntegerArray | Returns: anIntegerArray of the resulting nodesThe root node of the document containing the context node root, String The key value of id string argument value keyValue)Retrieve nodes for a particular key value or a particular id argument value. |
| public int | Returns: The next node handle in the iteration, or END.Overrides com. Implements com. Get the next node in the iteration. |
| public DTMAxisIterator | Returns: A DTMAxisIterator, which may or may not be the same as this iterator.Overrides com. Implements com. Resets the iterator to the last start node. |
| public DTMAxisIterator | Returns: ADTMAxisIterator set to the start of the iteration.the context node node)Overrides com. Implements com. Set context node for the iterator. |
| _isKeyIterator | back to summary |
|---|---|
| private boolean _isKeyIterator Indicates whether this object represents the result of a reference
to the | |
| _keyValue | back to summary |
|---|---|
| private String _keyValue This field contains the iterator representing a non-node-set key
value argument to the Exactly one of this field and | |
| _keyValueIterator | back to summary |
|---|---|
| private DTMAxisIterator _keyValueIterator This field contains the iterator representing a node set key value
argument to the Exactly one of this field and | |
| _nodes | back to summary |
|---|---|
| private IntegerArray _nodes A reference to the | |
| KeyIndexIterator | back to summary |
|---|---|
| pack-priv KeyIndexIterator(String keyValue, boolean isKeyIterator) Constructor used when the argument to
| |
| KeyIndexIterator | back to summary |
|---|---|
| pack-priv KeyIndexIterator(DTMAxisIterator keyValues, boolean isKeyIterator) Constructor used when the argument to
| |
| getLast | back to summary |
|---|---|
| public int getLast() Overrides com. Implements com. Returns the number of nodes in this iterator.
| |
| getNodeByPosition | back to summary |
|---|---|
| public int getNodeByPosition(int position) Overrides com. Implements com. Return the node at the given position.
| |
| init | back to summary |
|---|---|
| protected void init() Overrides com. Evaluate the reference to the | |
| lookupNodes | back to summary |
|---|---|
| protected IntegerArray lookupNodes(int root, String keyValue) Retrieve nodes for a particular key value or a particular id argument value.
| |
| next | back to summary |
|---|---|
| public int next() Overrides com. Implements com. Get the next node in the iteration.
| |
| reset | back to summary |
|---|---|
| public DTMAxisIterator reset() Overrides com. Implements com. Resets the iterator to the last start node.
| |
| setStartNode | back to summary |
|---|---|
| public DTMAxisIterator setStartNode(int node) Overrides com. Implements com. Set context node for the iterator. This will cause the iterator to reset itself, reevaluate arguments to the function, look up nodes in the input and reinitialize its internal heap.
| |
id for use as one heap node in a
MultiValuedNodeHeapIterator.
| Modifier and Type | Field and Description |
|---|---|
| private int | _markPosition
Marked position. |
| private IntegerArray | _nodes
|
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | KeyIndexHeapNode(IntegerArray nodes)
Create a heap node representing DTM nodes retrieved for one
key value in a reference to the |
| _markPosition | back to summary |
|---|---|
| private int _markPosition Marked position. Used by | |
| _nodes | back to summary |
|---|---|
| private IntegerArray _nodes
| |
| _position | back to summary |
|---|---|
| private int _position Position in | |
| KeyIndexHeapNode | back to summary |
|---|---|
| pack-priv KeyIndexHeapNode(IntegerArray nodes) Create a heap node representing DTM nodes retrieved for one
key value in a reference to the | |
| cloneHeapNode | back to summary |
|---|---|
| public MultiValuedNodeHeapIterator. Overrides com. Creates a deep copy of this
| |
| gotoMark | back to summary |
|---|---|
| public void gotoMark() Overrides com. Restores the current node remembered by | |
| isLessThan | back to summary |
|---|---|
| public boolean isLessThan(MultiValuedNodeHeapIterator. Implements abstract com. Performs a comparison of the two heap nodes
| |
| reset | back to summary |
|---|---|
| public MultiValuedNodeHeapIterator. Implements abstract com. Reset the heap node back to its beginning. | |
| setMark | back to summary |
|---|---|
| public void setMark() Overrides com. Remembers the current node for the next call to
| |
| setStartNode | back to summary |
|---|---|
| public MultiValuedNodeHeapIterator. Implements abstract com. Sets context with respect to which this heap node is evaluated. This has no real effect on this kind of heap node. Instead,
the | |
| step | back to summary |
|---|---|
| public int step() Implements abstract com. Advance to the next node represented by this
| |