svn commit: r473872 - /xml/xindice/trunk/java/src/org/apache/xindice/tools/XMLTools.java

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: vgritsenko
Date: Sat Nov 11 20:27:14 2006
New Revision: 473872

URL: http://svn.apache.org/viewvc?view=rev&rev=473872
Log:
add setVerbose

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/tools/XMLTools.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/tools/XMLTools.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/tools/XMLTools.java?view=diff&rev=473872&r1=473871&r2=473872
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/tools/XMLTools.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/tools/XMLTools.java Sat Nov 11 20:27:14 2006
@@ -103,13 +103,6 @@
     }
 
     /**
-     * @return true if operating in verbose mode
-     */
-    protected boolean isVerbose() {
-        return "true".equals(table.get(XMLTools.VERBOSE));
-    }
-
-    /**
      * @return true if this class has admin access.
      */
     public boolean isAdmin() {
@@ -317,6 +310,20 @@
     
     public boolean handleOption(String option, ArgTokenizer at) {
         return false;
+    }
+
+    /**
+     * @param verbose new value of verbose mode
+     */
+    public void setVerbose(boolean verbose) {
+        table.put(XMLTools.VERBOSE, verbose ? "true" : "false");
+    }
+
+    /**
+     * @return true if operating in verbose mode
+     */
+    public boolean isVerbose() {
+        return "true".equals(table.get(XMLTools.VERBOSE));
     }
 
     /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.