ca.bc.gov.webade.validation
Class NumberPreferenceValidator

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

public final class NumberPreferenceValidator
extends PreferenceValidator

Author:
jross

Constructor Summary
NumberPreferenceValidator()
           
 
Method Summary
 java.lang.String getMaxValue()
           
 java.lang.String getMinValue()
           
 java.lang.Class getNumberClass()
           
 void setMaxValue(java.lang.String maxValue)
           
 void setMinValue(java.lang.String minValue)
           
 void setNumberClass(java.lang.Class numberClass)
           
 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

NumberPreferenceValidator

public NumberPreferenceValidator()
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)

getMaxValue

public java.lang.String getMaxValue()
Returns:
Returns the maxValue.

setMaxValue

public void setMaxValue(java.lang.String maxValue)
Parameters:
maxValue - The maxValue to set.

getMinValue

public java.lang.String getMinValue()
Returns:
Returns the minValue.

setMinValue

public void setMinValue(java.lang.String minValue)
Parameters:
minValue - The minValue to set.

getNumberClass

public java.lang.Class getNumberClass()
Returns:
Returns the numberClass.

setNumberClass

public void setNumberClass(java.lang.Class numberClass)
Parameters:
numberClass - The numberClass to set.