src/org/ohmage/domain/campaign/prompt/MediaPrompt.java
public void validateMediaFileSize(final IMedia media) throws DomainException {
		if (media == null) {
			throw new DomainException(
					"The media content is null: " +	getId() + ".");
		}
		
		if ((maxFileSize != null) && (media.getFileSize() > maxFileSize))
			throw new DomainException(ErrorCode.MEDIA_INVALID_DATA, 
					"The file size of prompt ID " + getId().toString() +
					" is larger than its specified maximum: " + maxFileSize);	
	}
/**
	 * Validates that the corresponding media object. 
	 * 
	 * @return A {@link UUID} object or a {@link NoResponse} object.
	 * 
	 * @throws DomainException The value is invalid.
	 */
Validates that the corresponding media object.

@return A  UUID object or a  NoResponse object.

@throws DomainException The value is invalid.
Validates that the corresponding media object . @return A UUID object or a NoResponse object . @throws DomainException The value is invalid .
public void validateMediaFileSize(final IMedia media) throws DomainException {
		if (media == null) {
			throw new DomainException(
					"The media content is null: " +	getId() + ".");
		}
		if ((maxFileSize != null) && (media.getFileSize() > maxFileSize))
			throw new DomainException(ErrorCode.MEDIA_INVALID_DATA, 
					"The file size of prompt ID " + getId().toString() +
					" is larger than its specified maximum: " + maxFileSize);	
	}
public void validateMediaFileSize ( final IMedia media ) throws DomainException { if ( media == null ) { throw new DomainException ( "The media content is null: " + getId ( ) + "." ) ; } if ( ( maxFileSize != null ) && ( media . getFileSize ( ) > maxFileSize ) ) throw new DomainException ( ErrorCode . MEDIA_INVALID_DATA , "The file size of prompt ID " + getId ( ) . toString ( ) + " is larger than its specified maximum: " + maxFileSize ) ; }
Validates that the corresponding media object.
Validates that the corresponding media object .