ca.bc.gov.webade.validation
Class StringPreferenceValidator

java.lang.Object
  extended byca.bc.gov.webade.validation.PreferenceValidator
      extended byca.bc.gov.webade.validation.StringPreferenceValidator

public final class StringPreferenceValidator
extends PreferenceValidator

Author:
jross

Constructor Summary
StringPreferenceValidator()
           
 
Method Summary
 java.lang.String[] getAllowableValues()
           
 boolean isAllowsBlankOrNull()
           
 void setAllowableValues(java.lang.String[] allowableValues)
           
 void setAllowsBlankOrNull(boolean allowsBlankOrNull)
           
 void validateValue(java.lang.String value)
          Validates the given Preference value, and throws an exception if validation fails.
 
Methods inherited from class ca.bc.gov.webade.validation.PreferenceValidator
addDependantPreference, addDependantPreferenceSet, getDependantPreferences, getMaxOccurrenceCount, getMinOccurrenceCount, setMaxOccurrenceCount, setMinOccurrenceCount, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPreferenceValidator

public StringPreferenceValidator()
Method Detail

validateValue

public void validateValue(java.lang.String value)
                   throws ConfigurationException
Description copied from class: PreferenceValidator
Validates the given Preference value, and throws an exception if validation fails.

Specified by:
validateValue in class PreferenceValidator
Parameters:
value - The preference value to validate.
Throws:
ConfigurationException - Thrown if validation fails.
See Also:
PreferenceValidator.validateValue(java.lang.String)

isAllowsBlankOrNull

public boolean isAllowsBlankOrNull()
Returns:
Returns the allowsBlankOrNull flag.

setAllowsBlankOrNull

public void setAllowsBlankOrNull(boolean allowsBlankOrNull)
Parameters:
allowsBlankOrNull - The allowsBlankOrNull value to set.

getAllowableValues

public java.lang.String[] getAllowableValues()
Returns:
Returns the allowableValues.

setAllowableValues

public void setAllowableValues(java.lang.String[] allowableValues)
Parameters:
allowableValues - The allowableValues to set.