|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.validation.PreferenceSetValidator
| Constructor Summary | |
PreferenceSetValidator()
|
|
| 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. |
void |
addPreferenceValidator(Preference pref,
PreferenceValidator validator)
Adds the given validator tied to the target preference to the set of preference validators. |
java.util.HashMap |
getDependantPreferences()
|
int |
getMaxOccurrenceCount()
|
int |
getMinOccurrenceCount()
|
java.util.HashMap |
getPreferenceValidators()
Gets the validators tied to the preference set's preferences. |
void |
setMaxOccurrenceCount(int maxOccurrenceCount)
|
void |
setMinOccurrenceCount(int minOccurrenceCount)
|
void |
validate(PreferenceSet set,
java.util.ArrayList errors,
Preferences prefs)
Validates the given PreferenceSet. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PreferenceSetValidator()
| Method Detail |
public void addPreferenceValidator(Preference pref,
PreferenceValidator validator)
pref - The preference the validator is assigned to.validator - The preference validator.public java.util.HashMap getPreferenceValidators()
public void validate(PreferenceSet set,
java.util.ArrayList errors,
Preferences prefs)
set - The set to validate.errors - prefs - 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 | |||||||||