src/org/ohmage/validator/DocumentValidators.java
public static Boolean validatePersonalDocuments(final String value) 
			throws ValidationException {
		
		LOGGER.info("Validating a 'personal documents' value.");
		
		if(StringUtils.isEmptyOrWhitespaceOnly(value)) {
			return null;
		}
		
		if(StringUtils.isValidBoolean(value.trim())) {
			return StringUtils.decodeBoolean(value.trim());
		}
		else {
			throw new ValidationException(
					ErrorCode.DOCUMENT_INVALID_PERSONAL_DOCUMENTS_VALUE, 
					"Invalid personal documents value: " + value);
		}
	}
/**
	 * Validates that a 'personal documents' value is a valid value. It should
	 * be a boolean value.
	 * 
	 * @param value The value is be validated.
	 * 
	 * @return If the value is null or whitespace only, null is returned; 
	 * 		   otherwise, the value is returned.
	 * 
	 * @throws ValidationException Thrown if the value is not a valid 'personal
	 * 							   documents' value.
	 */
Validates that a 'personal documents' value is a valid value. It should
be a boolean value.

@param value The value is be validated.

@return If the value is null or whitespace only, null is returned;
otherwise, the value is returned.

@throws ValidationException Thrown if the value is not a valid 'personal
documents' value.
Validates that a ' personal documents ' value is a valid value . It should be a boolean value . @param value The value is be validated . @return If the value is null or whitespace only null is returned ; otherwise the value is returned . @throws ValidationException Thrown if the value is not a valid ' personal documents ' value .
public static Boolean validatePersonalDocuments(final String value) 
			throws ValidationException {
		LOGGER.info("Validating a 'personal documents' value.");
		if(StringUtils.isEmptyOrWhitespaceOnly(value)) {
			return null;
		}
		if(StringUtils.isValidBoolean(value.trim())) {
			return StringUtils.decodeBoolean(value.trim());
		}
		else {
			throw new ValidationException(
					ErrorCode.DOCUMENT_INVALID_PERSONAL_DOCUMENTS_VALUE, 
					"Invalid personal documents value: " + value);
		}
	}
public static Boolean validatePersonalDocuments ( final String value ) throws ValidationException { LOGGER . info ( "Validating a 'personal documents' value." ) ; if ( StringUtils . isEmptyOrWhitespaceOnly ( value ) ) { return null ; } if ( StringUtils . isValidBoolean ( value . trim ( ) ) ) { return StringUtils . decodeBoolean ( value . trim ( ) ) ; } else { throw new ValidationException ( ErrorCode . DOCUMENT_INVALID_PERSONAL_DOCUMENTS_VALUE , "Invalid personal documents value: " + value ) ; } }
Validates that a 'personal documents' value is a valid value.
Validates that a ' personal documents ' value is a valid value .