|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.openedge.baritus.ValidatorRegistry
Registry for populators. Each instance of FormBeanBase has its own instance.
Constructor Summary | |
ValidatorRegistry()
|
Method Summary | |
void |
addValidationActivationRule(ValidationActivationRule rule)
register the rule for the whole form |
void |
addValidator(FormValidator validator)
register a form validator. |
void |
addValidator(java.lang.String fieldName,
FieldValidator validator)
register a field validator for the given fieldName. |
MultiHashMap |
getFieldValidators()
get all field validators |
java.util.List |
getFormValidators()
get all form validators |
java.util.List |
getGlobalValidatorActivationRules()
get all global activation rules |
MultiHashMap |
getValidators(java.lang.String fieldName)
get the fieldValidators that were registered with the given fieldName |
void |
removeValidationActivationRule(ValidationActivationRule rule)
de-register the given rule for the whole form |
void |
removeValidator(FormValidator validator)
de-register the given form level validator |
void |
removeValidator(java.lang.String fieldName,
FieldValidator validator)
de-register the given validator that was registered with the given fieldName |
void |
removeValidators(java.lang.String fieldName)
de-register the fieldValidators that were registered with the given fieldName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidatorRegistry()
Method Detail |
public void addValidator(java.lang.String fieldName, FieldValidator validator)
fieldName
- name of fieldvalidator
- validator instancepublic void addValidator(FormValidator validator)
validator
- the form level validatorpublic void removeValidators(java.lang.String fieldName)
fieldName
- name of fieldpublic void removeValidator(java.lang.String fieldName, FieldValidator validator)
fieldName
- name of fieldvalidator
- the validator to remove for the given fieldpublic void removeValidator(FormValidator validator)
validator
- form validatorpublic void addValidationActivationRule(ValidationActivationRule rule)
rule
- validator activation rulepublic void removeValidationActivationRule(ValidationActivationRule rule)
rule
- validator activation rulepublic MultiHashMap getValidators(java.lang.String fieldName)
fieldName
- name of the field
public java.util.List getGlobalValidatorActivationRules()
public java.util.List getFormValidators()
public MultiHashMap getFieldValidators()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |