Lines Matching refs:node

55      * The document node currently being processed.  Used only while building
61 * A mapping from a document node to the mapping between values and nodesets
66 * The node set associated to the current value passed
91 * Adds a node to the node list for a given value. Nodes will
94 public void add(Object value, int node, int rootNode) {
106 nodes.add(node);
110 } else if (node != nodes.at(nodes.cardinality() - 1)) {
111 nodes.add(node);
134 * prior to returning the node iterator. The lookup code for key() and
204 * prior to returning the node iterator.</p>
229 * Given a context node and the argument to the XPath <code>id</code>
230 * function, checks whether the context node is in the set of nodes that
234 * @param node The context node
236 * @return <code>1</code> if the context node is in the set of nodes
240 public int containsID(int node, Object value) {
243 .setStartNode(node).next();
245 // Get the mapping table for the document containing the context node
267 // Did we find the context node in the set of nodes?
268 if (nodes != null && nodes.indexOf(node) >= 0) {
273 // Didn't find the context node in the set of nodes returned by id
278 * <p>Given a context node and the second argument to the XSLT
279 * <code>key</code> function, checks whether the context node is in the
286 * @param node The context node
288 * @return <code>1</code> if and only if the context node is in the set of
292 public int containsKey(int node, Object value) {
294 .setStartNode(node).next();
296 // Get the mapping table for the document containing the context node
300 // Check whether the context node is present in the set of nodes
304 return (nodes != null && nodes.indexOf(node) >= 0) ? 1 : 0;
312 * <p>Resets the iterator to the last start node.</p>
333 * <p>Returns the position of the current node in the set.</p>
343 * <p>Remembers the current node for the next call to gotoMark().</p>
353 * <p>Restores the current node remembered by setMark().</p>
415 public void setDom(DOM dom, int node) {
421 dom = ((MultiDOM) dom).getDTM(node);
489 * Used to represent an empty node set.
509 * <p>This field contains the iterator representing a node set key value
510 * argument to the <code>key</code> function or a node set argument
519 * <p>This field contains the iterator representing a non-node-set key
520 * value argument to the <code>key</code> function or a non-node-set
537 * argument to <code>id</code> for use as one heap node in a
550 * Position in {@link #_nodes} array of next node to return from
551 * this heap node.
562 * Create a heap node representing DTM nodes retrieved for one
571 * Advance to the next node represented by this {@link HeapNode}
573 * @return the next DTM node.
590 * @return the cloned heap node
604 * Remembers the current node for the next call to
612 * Restores the current node remembered by {@link #setMark()}.
621 * @param heapNode the heap node against which to compare
622 * @return <code>true</code> if and only if the current node for
623 * this heap node is before the current node of the
624 * argument heap node in document order.
631 * <p>Sets context with respect to which this heap node is
633 * <p>This has no real effect on this kind of heap node. Instead,
638 public HeapNode setStartNode(int node) {
643 * Reset the heap node back to its beginning.
653 * <code>id</code> is not a node set.
668 * <code>id</code> is a node set.
684 * @param root The root node of the document containing the context node
704 // Does the ID map to any node in the document?
735 * Set context node for the iterator. This will cause the iterator
739 * @param node the context node
742 public DTMAxisIterator setStartNode(int node) {
743 _startNode = node;
745 // If the arugment to the function is a node set, set the
746 // context node on it.
748 _keyValueIterator = _keyValueIterator.setStartNode(node);
753 return super.setStartNode(node);
757 * Get the next node in the iteration.
759 * @return The next node handle in the iteration, or END.
783 * Resets the iterator to the last start node.
812 // Is the argument not a node set?
827 // For each node in the node set argument, get the string value
873 * Return the node at the given position.
876 * @return The node at the given position.
879 int node = DTMAxisIterator.END;
889 node = _nodes.at(position-1);
895 node = super.getNodeByPosition(position);
898 return node;