Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/option
In directory sc8-pr-cvs1:/tmp/cvs-serv16035
Modified Files:
ConfigInfo.java
Log Message:
Added another helper to the configinfo class
Index: ConfigInfo.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/option/ConfigInfo.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ConfigInfo.java 29 Aug 2003 01:19:06 -0000 1.11
--- ConfigInfo.java 12 Sep 2003 00:54:04 -0000 1.12
***************
*** 241,244 ****
--- 241,255 ----
/**
+ * Get the option value in the path of options as a boolean true/false. The path is
+ * specificed like a file path: /option/suboption/etc
+ *
+ * @param path
+ * @return value
+ */
+ public boolean getBooleanValue(String path) {
+ return "true".equalsIgnoreCase(getStrValue(path));
+ }
+
+ /**
* Get the names and values of each of the child options of this configuration option
* pointed to be the path.
|