protected Boolean parseBooleanValue(String booleanValue) throws ParseException {
  if (booleanValue == null) {
    return null;
  }
  if (booleanValue.equalsIgnoreCase("false") || booleanValue.equals("0")) {
    return Boolean.FALSE;
  }
  if (booleanValue.equalsIgnoreCase("true") || booleanValue.equals("1")) {
    return Boolean.TRUE;
  }
  ParseException pe=new ParseException(CoreErrorDomain.ERR.invalidBooleanAttribute);
  pe.setInternalReason("Invalid value for boolean attribute: " + booleanValue);
  throw pe;
}

protected Boolean parseBooleanValue ( String booleanValue ) throws ParseException { if ( booleanValue == null ) { return null ; } if ( booleanValue . equalsIgnoreCase ( "false" ) || booleanValue . equals ( "0" ) ) { return Boolean . FALSE ; } if ( booleanValue . equalsIgnoreCase ( "true" ) || booleanValue . equals ( "1" ) ) { return Boolean . TRUE ; } ParseException pe = new ParseException ( CoreErrorDomain . ERR . invalidBooleanAttribute ) ; pe . setInternalReason ( "Invalid value for boolean attribute: " + booleanValue ) ; throw pe ; }
utility method to parse provided xsd : boolean value .
