src/org/ohmage/domain/campaign/prompt/CustomChoicePrompt.java
public void removeChoice(final Integer key) throws DomainException {
		if(key == null) {
			throw new DomainException("The key cannot be null.");
		}
		else if(key < 0) {
			throw new DomainException("The key cannot be negative.");
		}
		else if(getChoices().containsKey(key)) {
			throw new DomainException(
					"The key is from a static choice which cannot be removed.");
		}
		
		customChoices.remove(key);
	}
/**
	 * Removes a custom choice with the given key..
	 * 
	 * @param key The key of the custom choice to remove.
	 * 
	 * @throws DomainException Thrown if the key is invalid or belongs to a 
	 * 						   static choice and not a custom one.
	 */
Removes a custom choice with the given key

@param key The key of the custom choice to remove.

@throws DomainException Thrown if the key is invalid or belongs to a
static choice and not a custom one.
Removes a custom choice with the given key @param key The key of the custom choice to remove . @throws DomainException Thrown if the key is invalid or belongs to a static choice and not a custom one .
public void removeChoice(final Integer key) throws DomainException {
		if(key == null) {
			throw new DomainException("The key cannot be null.");
		}
		else if(key < 0) {
			throw new DomainException("The key cannot be negative.");
		}
		else if(getChoices().containsKey(key)) {
			throw new DomainException(
					"The key is from a static choice which cannot be removed.");
		}
		customChoices.remove(key);
	}
public void removeChoice ( final Integer key ) throws DomainException { if ( key == null ) { throw new DomainException ( "The key cannot be null." ) ; } else if ( key < 0 ) { throw new DomainException ( "The key cannot be negative." ) ; } else if ( getChoices ( ) . containsKey ( key ) ) { throw new DomainException ( "The key is from a static choice which cannot be removed." ) ; } customChoices . remove ( key ) ; }
Removes a custom choice with the given key..
Removes a custom choice with the given key ..