src/org/ohmage/util/StringUtils.java
public static Boolean decodeBoolean(String value) {
		// If we are going to allow different values for true and false, this
		// is where they should be included.
		if("true".equals(value)) {
			return true;
		}
		else if("false".equals(value)) {
			return false;
		}
		else {
			return null;
		}
	}
/**
	 * Decodes a String value into its boolean representation. If it is not a 
	 * valid boolean value, null is returned. This should be used anywhere 
	 * boolean values are being decoded from Strings.
	 * 
	 * @param value The String value to be decoded.
	 * 
	 * @return Returns true if the value is a valid boolean value and 
	 * 		   represents true. Returns false if the value is a valid boolean
	 * 		   value and represents false. Returns null if the value is not a
	 * 		   valid boolean value.
	 */
Decodes a String value into its boolean representation. If it is not a
valid boolean value, null is returned. This should be used anywhere
boolean values are being decoded from Strings.

@param value The String value to be decoded.

@return Returns true if the value is a valid boolean value and
represents true. Returns false if the value is a valid boolean
value and represents false. Returns null if the value is not a
valid boolean value.
Decodes a String value into its boolean representation . If it is not a valid boolean value null is returned . This should be used anywhere boolean values are being decoded from Strings . @param value The String value to be decoded . @return Returns true if the value is a valid boolean value and represents true . Returns false if the value is a valid boolean value and represents false . Returns null if the value is not a valid boolean value .
public static Boolean decodeBoolean(String value) {
		if("true".equals(value)) {
			return true;
		}
		else if("false".equals(value)) {
			return false;
		}
		else {
			return null;
		}
	}
public static Boolean decodeBoolean ( String value ) { if ( "true" . equals ( value ) ) { return true ; } else if ( "false" . equals ( value ) ) { return false ; } else { return null ; } }
Decodes a String value into its boolean representation.
Decodes a String value into its boolean representation .
// If we are going to allow different values for true and false, this // is where they should be included.