Update of /var/cvs/src/org/mmbase/util/xml
In directory james.mmbase.org:/tmp/cvs-serv5366

Modified Files:
        DocumentReader.java 
Log Message:
made 'validate()' public, and added a 'getDocument' method


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util/xml


Index: DocumentReader.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/xml/DocumentReader.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- DocumentReader.java 3 Sep 2008 19:09:30 -0000       1.42
+++ DocumentReader.java 3 Sep 2008 19:59:42 -0000       1.43
@@ -40,7 +40,7 @@
  * @author Rico Jansen
  * @author Pierre van Rooden
  * @author Michiel Meeuwissen
- * @version $Id: DocumentReader.java,v 1.42 2008/09/03 19:09:30 michiel Exp $
+ * @version $Id: DocumentReader.java,v 1.43 2008/09/03 19:59:42 michiel Exp $
  * @since MMBase-1.7
  */
 public class DocumentReader  {
@@ -78,7 +78,7 @@
      * Returns the default setting for validation for DocumentReaders.
      * @return true if validation is on
      */
-    protected static final boolean validate() {
+    public static final boolean validate() {
         Object validate = utilProperties == null ? null : 
utilProperties.get("validate");
         return validate == null || validate.equals("true");
     }
@@ -601,6 +601,13 @@
         return v;
     }
 
+    /**
+     * @since MMBase-1.9
+     */
+    public Document getDocument() {
+        return document;
+    }
+
     public static void main(String argv[]) throws Exception {
         org.mmbase.util.ResourceLoader.getSystemRoot().getDocument(argv[0]);
     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to