src/org/ohmage/domain/campaign/SurveyItem.java
protected final boolean checkNoResponseConditionValuePair(
			final ConditionValuePair pair)
			throws DomainException {
		
		try {
			NoResponse noResponse = NoResponse.valueOf(pair.getValue().toUpperCase());
			
			switch(noResponse) {
			case SKIPPED:
				if(skippable()) {
					return true;
				}
				else {
					throw new DomainException(
							"The response '" + 
								getId() +
								"' cannot be skipped, so the condition is invalid.");
				}
			
			case NOT_DISPLAYED:
				return true;
				
			default:
				throw new DomainException("Unknown 'no response' value.");
			}
				
		}
		// It is not a NoResponse value.
		catch(IllegalArgumentException e) {
			return false;
		}
	}
/**
	 * Checks if the value of the pair is a {@link NoResponse} value and, if 
	 * so, verifies that that is a valid value for this prompt. If it is a
	 * {@link NoResponse} value, then true will be returned or an exception 
	 * will be thrown indicating that it wasn't valid for this prompt. If it is
	 * not a {@link NoResponse} value, false is returned.
	 * 
	 * @param pair The condition-value pair to check.
	 * 
	 * @return True if this is a {@link NoResponse} value; false, otherwise.
	 * 
	 * @throws DomainException The value of the pair was a {@link NoResponse}
	 * 						   value and isn't valid for this prompt.
	 */
Checks if the value of the pair is a  NoResponse value and, if
so, verifies that that is a valid value for this prompt. If it is a
NoResponse value, then true will be returned or an exception
will be thrown indicating that it wasn't valid for this prompt. If it is
not a  NoResponse value, false is returned.

@param pair The condition-value pair to check.

@return True if this is a  NoResponse value; false, otherwise.

@throws DomainException The value of the pair was a  NoResponse
value and isn't valid for this prompt.
Checks if the value of the pair is a NoResponse value and if so verifies that that is a valid value for this prompt . If it is a NoResponse value then true will be returned or an exception will be thrown indicating that it wasn ' t valid for this prompt . If it is not a NoResponse value false is returned . @param pair The condition - value pair to check . @return True if this is a NoResponse value ; false otherwise . @throws DomainException The value of the pair was a NoResponse value and isn ' t valid for this prompt .
protected final boolean checkNoResponseConditionValuePair(
			final ConditionValuePair pair)
			throws DomainException {
		try {
			NoResponse noResponse = NoResponse.valueOf(pair.getValue().toUpperCase());
			switch(noResponse) {
			case SKIPPED:
				if(skippable()) {
					return true;
				}
				else {
					throw new DomainException(
							"The response '" + 
								getId() +
								"' cannot be skipped, so the condition is invalid.");
				}
			case NOT_DISPLAYED:
				return true;
			default:
				throw new DomainException("Unknown 'no response' value.");
			}
		}
		catch(IllegalArgumentException e) {
			return false;
		}
	}
protected final boolean checkNoResponseConditionValuePair ( final ConditionValuePair pair ) throws DomainException { try { NoResponse noResponse = NoResponse . valueOf ( pair . getValue ( ) . toUpperCase ( ) ) ; switch ( noResponse ) { case SKIPPED : if ( skippable ( ) ) { return true ; } else { throw new DomainException ( "The response '" + getId ( ) + "' cannot be skipped, so the condition is invalid." ) ; } case NOT_DISPLAYED : return true ; default : throw new DomainException ( "Unknown 'no response' value." ) ; } } catch ( IllegalArgumentException e ) { return false ; } }
Checks if the value of the pair is a {@link NoResponse} value and, if
 so, verifies that that is a valid value for this prompt.
Checks if the value of the pair is a { @link NoResponse } value and if so verifies that that is a valid value for this prompt .
// It is not a NoResponse value.