You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by br...@apache.org on 2002/02/24 02:20:27 UTC
cvs commit: xml-xindice/java/src/org/apache/xindice/util Configuration.java
bradford 02/02/23 17:20:27
Modified: java/src/org/apache/xindice/util Configuration.java
Log:
Added document constructor to Configuration
Revision Changes Path
1.2 +9 -1 xml-xindice/java/src/org/apache/xindice/util/Configuration.java
Index: Configuration.java
===================================================================
RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/util/Configuration.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Configuration.java 6 Dec 2001 19:33:58 -0000 1.1
+++ Configuration.java 24 Feb 2002 01:20:27 -0000 1.2
@@ -56,7 +56,7 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * $Id: Configuration.java,v 1.1 2001/12/06 19:33:58 bradford Exp $
+ * $Id: Configuration.java,v 1.2 2002/02/24 01:20:27 bradford Exp $
*/
import org.w3c.dom.*;
@@ -84,9 +84,17 @@
this.config = config;
this.readOnly = readOnly;
}
+
+ public Configuration(Document config, boolean readOnly) {
+ this(config.getDocumentElement(), readOnly);
+ }
public Configuration(Element config) {
this(config, true);
+ }
+
+ public Configuration(Document config) {
+ this(config.getDocumentElement());
}
/**