|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValidatorMap
ValidatorMap defines an interface for objects that map
a key to a Validator used to validate values assigned to
the key.
| Method Summary | |
|---|---|
void |
add(String key,
Validator validator)
Add a Validator for the specified key. |
boolean |
containsKey(String key)
Returns true if the ValidtorMap contains the specified key. |
void |
destroy()
Destroy the ValidatorMap. |
boolean |
validate(String key,
Object value,
boolean validIfNoValidator)
Validate the value associated with a given key. |
| Method Detail |
|---|
void add(String key,
Validator validator)
key - the key.validator - the Validator.
boolean validate(String key,
Object value,
boolean validIfNoValidator)
key - the key associated with the value to be validated.value - the value to be validated.validIfNoValidator - a boolean value indicating whether
validation should succeed if no validator is defined for a
the specified key. If true and a Validator is not associated
with the key, then return true.
boolean containsKey(String key)
key - the key.
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||