bexee.util
Class BooleanUtils

java.lang.Object
  extended bybexee.util.BooleanUtils

public class BooleanUtils
extends java.lang.Object

Utility class for boolean values. This class provides methods for the transformation of String values into boolean values.

Version:
$Revision: 1.1 $, $Date: 2004/12/15 14:18:20 $
Author:
Pawel Kowalski

Constructor Summary
BooleanUtils()
           
 
Method Summary
static boolean strictYesNoToBoolean(java.lang.String yesOrNoString)
          Transform a "YES" or "NO" string to a boolean value.
static boolean yesNoToBoolean(java.lang.String yesOrNoString)
          Transform a "YES" or "NO" string to a boolean value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanUtils

public BooleanUtils()
Method Detail

yesNoToBoolean

public static boolean yesNoToBoolean(java.lang.String yesOrNoString)
Transform a "YES" or "NO" string to a boolean value. This method returns a "true" if the parameter String is "YES" in any other case, a "false" will be returned.

Parameters:
yesOrNoString -
Returns:
a boolean value

strictYesNoToBoolean

public static boolean strictYesNoToBoolean(java.lang.String yesOrNoString)
                                    throws InvalidValueException
Transform a "YES" or "NO" string to a boolean value. If the parameter string doesn't match a "YES" or "NO" string (ignoring the case) this method will throw an InvalidValueException.

Parameters:
yesOrNoString -
Returns:
@throws InvalidValueException
Throws:
InvalidValueException


Copyright © 2004 Berne University of Applied Sciences. All Rights Reserved.