package at.gv.egovernment.moa.util;
/**
* Utility class for parsing XML schema boolean values.
*
* @author Patrick Peck
* @version $Id$
*/
public class BoolUtils {
/**
* Return the boolean value of an xsd:boolean
type of DOM
* element/attribute.
*
* @param boolStr The value of the xsd:boolean
element/attribute.
* @return true
, if boolStr
equals
* "true"
or "1;"
. Otherwise,
* false
is returned.
*/
public static boolean valueOf(String boolStr) {
return "true".equals(boolStr) || "1".equals(boolStr);
}
}