src/org/ohmage/validator/SurveyResponseValidators.java
public static Boolean validateCollapse(final String collapse) 
			throws ValidationException {
		
		return validateOptionalBoolean(
				collapse, 
				ErrorCode.SURVEY_INVALID_COLLAPSE_VALUE, 
				"The collapse value is invalid: ");
	}
/**
	 * Validates the optional collapse boolean.
	 * 
	 * @param returnId  The value to validate.
	 * @return  the Boolean equivalent of collapse 
	 * @throws ValidationException if collapse is not null and non-boolean.
	 */
Validates the optional collapse boolean.

@param returnId  The value to validate.
@return  the Boolean equivalent of collapse
@throws ValidationException if collapse is not null and non-boolean.
Validates the optional collapse boolean . @param returnId The value to validate . @return the Boolean equivalent of collapse @throws ValidationException if collapse is not null and non - boolean .
public static Boolean validateCollapse(final String collapse) 
			throws ValidationException {
		return validateOptionalBoolean(
				collapse, 
				ErrorCode.SURVEY_INVALID_COLLAPSE_VALUE, 
				"The collapse value is invalid: ");
	}
public static Boolean validateCollapse ( final String collapse ) throws ValidationException { return validateOptionalBoolean ( collapse , ErrorCode . SURVEY_INVALID_COLLAPSE_VALUE , "The collapse value is invalid: " ) ; }
Validates the optional collapse boolean.
Validates the optional collapse boolean .