xdoclet.util
Class TypeConversionUtil

java.lang.Object
  |
  +--xdoclet.util.TypeConversionUtil

public final class TypeConversionUtil
extends java.lang.Object

Version:
$Revision: 1.2 $
Author:
Ara Abrahamian (ara_e@email.com)

Constructor Summary
TypeConversionUtil()
           
 
Method Summary
static boolean stringToBoolean(java.lang.String str, boolean default_value)
          A utility method for converting a string to a boolean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeConversionUtil

public TypeConversionUtil()
Method Detail

stringToBoolean

public static boolean stringToBoolean(java.lang.String str,
                                      boolean default_value)
A utility method for converting a string to a boolean. "yes", "no", "true" and "false" are valid values for a boolean string. If not one of then then the value of default_value parameter is returned.
Parameters:
str - Description of Parameter
default_value - Description of Parameter
Returns:
Description of the Returned Value