mkwan 2003/04/01 11:00:51
Modified: java/src/org/apache/xml/dtm DTM.java DTMAxisIterator.java
DTMManager.java
Log:
Merging XSLTC_DTM and common serializer to the head
Changes in org.apache.xml.dtm.
Revision Changes Path
1.10 +5 -0 xml-xalan/java/src/org/apache/xml/dtm/DTM.java
Index: DTM.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/DTM.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DTM.java 30 Jan 2003 18:46:15 -0000 1.9
+++ DTM.java 1 Apr 2003 19:00:51 -0000 1.10
@@ -126,6 +126,11 @@
// eg. org.w3c.dom.Document.ELEMENT_NODE?
/**
+ * The node is a <code>Root</code>.
+ */
+ public static final short ROOT_NODE = 0;
+
+ /**
* The node is an <code>Element</code>.
*/
public static final short ELEMENT_NODE = 1;
1.6 +15 -1
xml-xalan/java/src/org/apache/xml/dtm/DTMAxisIterator.java
Index: DTMAxisIterator.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/DTMAxisIterator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DTMAxisIterator.java 27 Jan 2003 18:44:55 -0000 1.5
+++ DTMAxisIterator.java 1 Apr 2003 19:00:51 -0000 1.6
@@ -70,7 +70,8 @@
*
* @return The next node handle in the iteration, or END.
*/
- public int next();
+ public int next();
+
/**
* Resets the iterator to the last start node.
@@ -129,4 +130,17 @@
* from its current position.
*/
public DTMAxisIterator cloneIterator();
+
+ /**
+ * Set if restartable.
+ */
+ public void setRestartable(boolean isRestartable);
+
+ /**
+ * Return the node at the given position.
+ *
+ * @param position The position
+ * @return The node at the given position.
+ */
+ public int getNodeByPosition(int position);
}
1.15 +5 -2 xml-xalan/java/src/org/apache/xml/dtm/DTMManager.java
Index: DTMManager.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/DTMManager.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- DTMManager.java 30 Jan 2003 18:46:16 -0000 1.14
+++ DTMManager.java 1 Apr 2003 19:00:51 -0000 1.15
@@ -87,6 +87,10 @@
/** The default property name to load the manager. */
private static final String defaultPropName =
"org.apache.xml.dtm.DTMManager";
+
+ /** The default class name to use as the manager. */
+ private static String defaultClassName =
+ "org.apache.xml.dtm.ref.DTMManagerDefault";
/**
* Factory for creating XMLString objects.
@@ -164,12 +168,11 @@
throws DTMConfigurationException
{
-
DTMManager factoryImpl = null;
try {
factoryImpl = (DTMManager) FactoryFinder.find(defaultPropName,
/* The fallback implementation class name */
- "org.apache.xml.dtm.ref.DTMManagerDefault");
+ defaultClassName);
} catch (FactoryFinder.ConfigurationError e) {
throw new
DTMConfigurationException(XMLMessages.createXMLMessage(XMLErrorResources.ER_NO_DEFAULT_IMPL,
null)); //"No default implementation found");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]