You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/06/03 05:00:37 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/dtm DTMIterator.java
sboag 01/06/02 20:00:36
Modified: java/src/org/apache/xml/dtm Tag: DTM_EXP DTMIterator.java
Log:
setEnvironment deleted and passed to setRoot. This helps with iterator clone pooling.
Revision Changes Path
No revision
No revision
1.1.2.8 +15 -26 xml-xalan/java/src/org/apache/xml/dtm/Attic/DTMIterator.java
Index: DTMIterator.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/Attic/DTMIterator.java,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -u -r1.1.2.7 -r1.1.2.8
--- DTMIterator.java 2001/05/07 13:15:20 1.1.2.7
+++ DTMIterator.java 2001/06/03 03:00:36 1.1.2.8
@@ -105,25 +105,8 @@
* Skip this single node.
*/
public static final short FILTER_SKIP = 3;
-
+
/**
- * Set the environment in which this iterator operates, which should provide:
- * <ul>
- * <li>a node (the context node... same value as "root" defined below) </li>
- * <li>a pair of non-zero positive integers (the context position and the context size) </li>
- * <li>a set of variable bindings </li>
- * <li>a function library </li>
- * <li>the set of namespace declarations in scope for the expression.</li>
- * <ul>
- *
- * <p>At this time the exact implementation of this environment is application
- * dependent. Probably a proper interface will be created fairly soon.</p>
- *
- * @param environment The environment object.
- */
- public void setEnvironment(Object environment);
-
- /**
* Get an instance of a DTM that "owns" a node handle. Since a node
* iterator may be passed without a DTMManager, this allows the
* caller to easily get the DTM using just the iterator.
@@ -160,8 +143,21 @@
* where the iteration begins.
*
* @param nodeHandle int Handle of the context node.
+ * @param environment The environment object.
+ * The environment in which this iterator operates, which should provide:
+ * <ul>
+ * <li>a node (the context node... same value as "root" defined below) </li>
+ * <li>a pair of non-zero positive integers (the context position and the context size) </li>
+ * <li>a set of variable bindings </li>
+ * <li>a function library </li>
+ * <li>the set of namespace declarations in scope for the expression.</li>
+ * <ul>
+ *
+ * <p>At this time the exact implementation of this environment is application
+ * dependent. Probably a proper interface will be created fairly soon.</p>
+ *
*/
- public void setRoot(int nodeHandle);
+ public void setRoot(int nodeHandle, Object environment);
/**
* Reset the iterator to the start. After resetting, the next node returned
@@ -228,13 +224,6 @@
* in the INVALID state. After <code>detach</code> has been invoked,
* calls to <code>nextNode</code> or <code>previousNode</code> will
* raise a runtime exception.
- *
- * %REVIEW% This method may not be required in DTMIterator.
- * It was needed in DOMIterator because data linkages were
- * established to support the "maintain relative position" semantic
- * under document mutation... but if DTM doesn't need
- * that semantic, we probably don't need to worry about this
- * cleanup. On the other hand, at worst it's a harmless no-op...
*/
public void detach();
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org