src/org/ohmage/service/UploadValidationServices.java
public static void validateLocationStatus(final String locationStatus) 
			throws ServiceException {
		
		if(locationStatus == null) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_LOCATION_STATUS, 
					"location_status in upload message is null");
		}
		
		if(! LOCATION_STATUSES.contains(locationStatus)) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_LOCATION_STATUS, 
					"location_status in upload message is invalid: " + 
						locationStatus);
		}
	}
/**
	 * Validates that the provided location status is not null and an accepted
	 * location status value.
	 * 
	 * @param locationStatus  The location status to validate.
	 * @throws ServiceException  If the location status is null or invalid.
	 */
Validates that the provided location status is not null and an accepted
location status value.

@param locationStatus  The location status to validate.
@throws ServiceException  If the location status is null or invalid.
Validates that the provided location status is not null and an accepted location status value . @param locationStatus The location status to validate . @throws ServiceException If the location status is null or invalid .
public static void validateLocationStatus(final String locationStatus) 
			throws ServiceException {
		if(locationStatus == null) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_LOCATION_STATUS, 
					"location_status in upload message is null");
		}
		if(! LOCATION_STATUSES.contains(locationStatus)) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_LOCATION_STATUS, 
					"location_status in upload message is invalid: " + 
						locationStatus);
		}
	}
public static void validateLocationStatus ( final String locationStatus ) throws ServiceException { if ( locationStatus == null ) { throw new ServiceException ( ErrorCode . SERVER_INVALID_LOCATION_STATUS , "location_status in upload message is null" ) ; } if ( ! LOCATION_STATUSES . contains ( locationStatus ) ) { throw new ServiceException ( ErrorCode . SERVER_INVALID_LOCATION_STATUS , "location_status in upload message is invalid: " + locationStatus ) ; } }
Validates that the provided location status is not null and an accepted
 location status value.
Validates that the provided location status is not null and an accepted location status value .