K
- the type identifying the keys in the value mapV
- the value map typepublic static interface ValueMap.Validator<K,V extends ValueMap<K,?>>
Modifier and Type | Method and Description |
---|---|
void |
addRevalidationListener(EventListener listener) |
boolean |
isNullable(V valueMap,
K key) |
boolean |
isValid(V valueMap) |
void |
removeRevalidationListener(EventListener listener) |
void |
revalidate()
Notifies all re-validation listeners that a re-validation is called for, for example
due to modified validation settings
|
void |
validate(V valueMap)
Checks if the values in the given value map are valid
|
void |
validate(V valueMap,
K key)
Checks if the value associated with the give key is valid, throws a ValidationException if not
|
boolean isNullable(V valueMap, K key)
valueMap
- the value mapkey
- the keyboolean isValid(V valueMap)
valueMap
- the value mapvoid validate(V valueMap) throws ValidationException
valueMap
- the value mapValidationException
- in case of an invalid valuevoid validate(V valueMap, K key) throws ValidationException
valueMap
- the value map to validatekey
- the key the value is associated withValidationException
- if the given value is not valid for the given keyvoid revalidate()
addRevalidationListener(EventListener)
void addRevalidationListener(EventListener listener)
listener
- a listener notified each time a re-validation of all values is required, for example
when the underlying validation settings have changedvoid removeRevalidationListener(EventListener listener)
listener
- a listener to remove