src/org/ohmage/validator/AudioValidators.java
public static UUID validateId(
		final String id)
		throws ValidationException {
		
		try {
			return MediaValidators.validateId(id);
		}
		catch(IllegalArgumentException e) {
			throw new ValidationException(
					ErrorCode.AUDIO_INVALID_ID, 
					"The video ID is not a valid video ID: " + id);
		}
	}
/**
	 * Validates that an audio ID is a valid audio ID. If it is null or
	 * whitespace only, null is returned. Otherwise, the audio is returned or
	 * an exception is thrown.
	 * 
	 * @param id
	 *        The audio ID.
	 * 
	 * @return Returns null if the audio ID is null or whitespace only;
	 *         otherwise, the audio ID is returned.
	 * 
	 * @throws ValidationException
	 *         Thrown if the audio ID is not null, not whitespace only, and not
	 *         a valid audio ID.
	 */
Validates that an audio ID is a valid audio ID. If it is null or
whitespace only, null is returned. Otherwise, the audio is returned or
an exception is thrown.

@param id
The audio ID.

@return Returns null if the audio ID is null or whitespace only;
otherwise, the audio ID is returned.

@throws ValidationException
Thrown if the audio ID is not null, not whitespace only, and not
a valid audio ID.
Validates that an audio ID is a valid audio ID . If it is null or whitespace only null is returned . Otherwise the audio is returned or an exception is thrown . @param id The audio ID . @return Returns null if the audio ID is null or whitespace only ; otherwise the audio ID is returned . @throws ValidationException Thrown if the audio ID is not null not whitespace only and not a valid audio ID .
public static UUID validateId(
		final String id)
		throws ValidationException {
		try {
			return MediaValidators.validateId(id);
		}
		catch(IllegalArgumentException e) {
			throw new ValidationException(
					ErrorCode.AUDIO_INVALID_ID, 
					"The video ID is not a valid video ID: " + id);
		}
	}
public static UUID validateId ( final String id ) throws ValidationException { try { return MediaValidators . validateId ( id ) ; } catch ( IllegalArgumentException e ) { throw new ValidationException ( ErrorCode . AUDIO_INVALID_ID , "The video ID is not a valid video ID: " + id ) ; } }
Validates that an audio ID is a valid audio ID.
Validates that an audio ID is a valid audio ID .