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 vg...@apache.org on 2006/11/12 05:27:15 UTC
svn commit: r473872 -
/xml/xindice/trunk/java/src/org/apache/xindice/tools/XMLTools.java
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));
}
/**