T - type of valuepublic interface IValidatable<T>
| Modifier and Type | Method and Description |
|---|---|
void |
error(IValidationError error)
Reports an error against this
IValidatable's value. |
IModel<T> |
getModel()
Returns the model of the component being validated
|
T |
getValue()
Retrieves the value to be validated.
|
boolean |
isValid()
Queries the current state of this
IValidatable instance. |
T getValue()
void error(IValidationError error)
IValidatable's value. Multiple errors can be
reported by calling this method multiple times.error - an IValidationError to be reportedboolean isValid()
IValidatable instance.
IValidatables should assume they are valid until
error(IValidationError) is called.true if the object is in a valid state, false if otherwiseCopyright © 2006–2021 Apache Software Foundation. All rights reserved.