|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.rt.util.DefaultValueValidator
public class DefaultValueValidator
Validates missing mandatory values by replacing them with default values.
Constructor Summary | |
---|---|
DefaultValueValidator()
Constructs a new validator. |
Method Summary | |
---|---|
void |
valuesValidated(ValidatedValuesEvent event)
Validates the attribute values in the event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultValueValidator()
Method Detail |
---|
public void valuesValidated(ValidatedValuesEvent event) throws AttributeNotFoundException, InvalidAttributeValueException
ValidationListener
Note that it is also allowed to add new values to the attribute map of the event e.g. for dependent read-only attributes.
The method may throw InvalidAttributeValuesException specifying the names of the invalid attributes as the first argument with any validation specific exception as the wrapped exception argument. Other exceptions indicate all writable attributes.
valuesValidated
in interface ValidationListener
event
- the validated values event.
AttributeNotFoundException
- for missing attributes.
InvalidAttributeValueException
- if the values are not valid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |