|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.validation.PreferenceValidator
| Constructor Summary | |
PreferenceValidator()
|
|
| Method Summary | |
void |
addDependantPreference(Preference pref,
PreferenceValidator validator)
Adds the target preference validator to this validator's set. |
void |
addDependantPreferenceSet(PreferenceSet preferenceSet,
PreferenceSetValidator validator)
Adds the target preference set validator to this validator's set. |
java.util.HashMap |
getDependantPreferences()
|
int |
getMaxOccurrenceCount()
|
int |
getMinOccurrenceCount()
|
void |
setMaxOccurrenceCount(int maxOccurrenceCount)
|
void |
setMinOccurrenceCount(int minOccurrenceCount)
|
void |
validate(Preference pref)
Validates the given preference according to the preference value rules. |
abstract void |
validateValue(java.lang.String value)
Validates the given Preference value, and throws an exception if validation fails. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PreferenceValidator()
| Method Detail |
public void validate(Preference pref)
throws ConfigurationException
pref - The target pref to validate.
ConfigurationException - Thrown if a validation error occurs.
public abstract void validateValue(java.lang.String value)
throws ConfigurationException
value - The preference value to validate.
ConfigurationException - Thrown if validation fails.public int getMaxOccurrenceCount()
public void setMaxOccurrenceCount(int maxOccurrenceCount)
maxOccurrenceCount - The maxOccurrenceCount to set.public int getMinOccurrenceCount()
public void setMinOccurrenceCount(int minOccurrenceCount)
minOccurrenceCount - The minOccurrenceCount to set.
public void addDependantPreference(Preference pref,
PreferenceValidator validator)
pref - The preference filter.validator - The preference validator.
public void addDependantPreferenceSet(PreferenceSet preferenceSet,
PreferenceSetValidator validator)
preferenceSet - The preference set filter.validator - The preference set validator.public java.util.HashMap getDependantPreferences()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||