public interface ValidationListener
Modifier and Type | Interface and Description |
---|---|
static class |
ValidationListener.Error
An object holding a single validation constraint violation
found during the validation process.
|
Modifier and Type | Method and Description |
---|---|
<T extends ValidationListener> |
addError(String reason,
ValidationContext<T> context)
Simple API to add an error reason during validation.
|
<T extends ValidationListener> |
addError(ValidationListener.Error error,
ValidationContext<T> context)
Alternative method to add a fully initialized
ValidationListener.Error object. |
<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.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.