示例#1
0
 /**
  * Extract a Boolean out of a Property
  *
  * @param properties the properties
  * @param propertyName the name of the property
  * @param defaultValue the deulat value id none is found
  * @return the extracted property
  */
 protected boolean extractBooleanProperty(
     Properties properties, String propertyName, boolean defaultValue) {
   boolean ret;
   String pString = PropertyUtil.extractAndLogProperty(propertyName, properties);
   if (pString != null) {
     ret = PropertyUtil.parseBoolean(pString);
   } else {
     ret = defaultValue;
   }
   return ret;
 }