Package org.apache.wicket.validation
Interface IValidator<T>
-
- Type Parameters:
T- type of validatable value
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable,java.io.Serializable
- All Known Subinterfaces:
INullAcceptingValidator<T>
- All Known Implementing Classes:
AbstractRangeValidator,CompoundValidator,CreditCardValidator,DateValidator,EmailAddressValidator,PatternValidator,RangeValidator,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 org.apache.wicket.util.io.IClusterableInterface representing a validator that can validate anIValidatableobject.Unless the validator implements the
INullAcceptingValidatorinterface as well, Wicket will not passnullvalues 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 voidvalidate(IValidatable<T> validatable)Validates theIValidatableinstance.
-
-
-
Method Detail
-
validate
void validate(IValidatable<T> validatable)
Validates theIValidatableinstance. Validation errors should be reported using theIValidatable.error(IValidationError)method.- Parameters:
validatable- theIValidatableinstance being validated
-
-