|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidationListener
Description: The interface to collect errors found during validation
Nested Class Summary | |
---|---|
static class |
ValidationListener.Error
An object holding a single validation constraint violation found during the validation process. |
Method Summary | ||
---|---|---|
|
addError(String reason,
ValidationContext<T> context)
Simple API to add an error reason during validation. |
|
|
addError(ValidationListener.Error error,
ValidationContext<T> context)
Alternative method to add a fully initialized ValidationListener.Error object. |
Method Detail |
---|
<T extends ValidationListener> void addError(String reason, ValidationContext<T> context)
Validation
with context information
taken from the given ValidationContext
.
reason
- a constant describing the reason. This is normally the key of the
feature that was violated in the object 'owner' for property 'propertyName'context
- - contains
bean = the object that contains the error (owner)
propertyName = the Name of the attribute that caused the error<T extends ValidationListener> void addError(ValidationListener.Error error, ValidationContext<T> context)
ValidationListener.Error
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |