info.magnolia.cms.util
Class BooleanUtil

java.lang.Object
  extended by info.magnolia.cms.util.BooleanUtil

public class BooleanUtil
extends java.lang.Object

Util to convert strings to booleans.

Version:
$Revision: $ ($Author: $)

Constructor Summary
BooleanUtil()
           
 
Method Summary
static boolean toBoolean(java.lang.String s, boolean defaultValue)
          Behaves much like org.apache.commons.lang.BooleanUtils but returns the defaultValue if the input string is null, empty, or unrecognized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanUtil

public BooleanUtil()
Method Detail

toBoolean

public static boolean toBoolean(java.lang.String s,
                                boolean defaultValue)
Behaves much like org.apache.commons.lang.BooleanUtils but returns the defaultValue if the input string is null, empty, or unrecognized.



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.