xdoclet.util
Class TypeConversionUtil
java.lang.Object
xdoclet.util.TypeConversionUtil
public final class TypeConversionUtil
extends java.lang.Object
Version:
- Ara Abrahamian (ara_e@email.com)
- Oct 15, 2001
static boolean | stringToBoolean(String in, boolean defaultValue) - A utility method for converting a string to a boolean.
|
stringToBoolean
public static boolean stringToBoolean(String in,
boolean defaultValue)
A utility method for converting a string to a boolean. "yes", "no", "true", "false", "1", "0", "on" and "off" are
valid values for a boolean string (ignoring case). If not one of then then the value of defaultValue parameter is
returned.
in
- The String to convertdefaultValue
- Description of Parameter
- true or false