Package org.apache.wicket.validation
Interface IValidator<T>
-
- Type Parameters:
T
- type of validatable value
- All Superinterfaces:
IClusterable
,Serializable
- All Known Subinterfaces:
INullAcceptingValidator<T>
- All Known Implementing Classes:
AbstractRangeValidator
,CompoundValidator
,CreditCardValidator
,DateValidator
,EmailAddressValidator
,PatternValidator
,PropertyValidator
,RangeValidator
,RfcCompliantEmailAddressValidator
,StringValidator
,UrlValidator
,ValidatorAdapter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IValidator<T> extends IClusterable
Interface representing a validator that can validate anIValidatable
object.Unless the validator implements the
INullAcceptingValidator
interface as well, Wicket will not passnull
values to thevalidate(IValidatable)
method.- Since:
- 1.2.6
- Author:
- Jonathan Locke, Igor Vaynberg (ivaynberg)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validate(IValidatable<T> validatable)
Validates theIValidatable
instance.
-
-
-
Method Detail
-
validate
void validate(IValidatable<T> validatable)
Validates theIValidatable
instance. Validation errors should be reported using theIValidatable.error(IValidationError)
method.- Parameters:
validatable
- theIValidatable
instance being validated
-
-