|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueMapValidator<K,V>
User: Björn Darri Date: 26.7.2010 Time: 22:19:14
Field Summary | |
---|---|
static int |
INSERT
Code for the insert action, used during validation |
static int |
UNKNOWN
Code for an unknown action, used during validation |
static int |
UPDATE
Code for the update action, used during validation |
Method Summary | |
---|---|
boolean |
isNullable(ValueMap<K,V> valueMap,
K key)
|
boolean |
isValid(ValueMap<K,V> valueMap,
int action)
|
void |
validate(ValueMap<K,V> valueMap,
int action)
Checks if the values in the given value map are valid |
void |
validate(ValueMap<K,V> valueMap,
K key,
int action)
Checks if the value associated with the give key is valid, throws a ValidationException if not |
Field Detail |
---|
static final int INSERT
static final int UPDATE
static final int UNKNOWN
Method Detail |
---|
boolean isNullable(ValueMap<K,V> valueMap, K key)
valueMap
- the value mapkey
- the key
boolean isValid(ValueMap<K,V> valueMap, int action)
valueMap
- the value mapaction
- the action requiring validation
void validate(ValueMap<K,V> valueMap, int action) throws ValidationException
valueMap
- the value mapaction
- the action requiring validation
ValidationException
- in case of an invalid valuevoid validate(ValueMap<K,V> valueMap, K key, int action) throws ValidationException
valueMap
- the value map to validatekey
- the key the value is associated withaction
- describes the action requiring validation,
ValueChangeMapEditModel.INSERT, ValueChangeMapEditModel.UPDATE or ValueChangeMapEditModel.UNKNOWN
ValidationException
- if the given value is not valid for the given key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |