Package play.data.validation
Provides the JSR 303 validation constraints.
-
Interface Summary Interface Description Constraints.PlayConstraintValidator<A extends Annotation,T> Constraints.PlayConstraintValidatorWithPayload<A extends Annotation,T> Constraints.Validatable<T> Constraints.ValidatableWithPayload<T> ValidatorsComponents Java Components for Validator. -
Class Summary Class Description Constraints Defines a set of built-in validation constraints.Constraints.EmailValidator Validator for@Emailfields.Constraints.MaxLengthValidator Validator for@MaxLengthfields.Constraints.MaxValidator Validator for@Maxfields.Constraints.MinLengthValidator Validator for@MinLengthfields.Constraints.MinValidator Validator for@Minfields.Constraints.PatternValidator Validator for@Patternfields.Constraints.RequiredValidator Validator for@Requiredfields.Constraints.ValidatePayloadWithValidator Validator for@ValidatePayloadWithfields.Constraints.ValidateValidator Constraints.ValidateValidatorWithPayload Constraints.ValidateWithValidator Validator for@ValidateWithfields.Constraints.ValidationPayload Constraints.Validator<T> Super-type for validators.Constraints.ValidatorWithPayload<T> Super-type for validators with a payload.DefaultConstraintValidatorFactory Creates validator instances with injections available.MappedConstraintValidatorFactory ConstraintValidatorFactory to be used with compile-time Dependency Injection.ValidationError A form validation error.ValidatorFactoryProvider ValidatorProvider Deprecated. Deprecated since 2.7.0.ValidatorsModule -
Annotation Types Summary Annotation Type Description Constraints.Email Defines a email constraint for a string field.Constraints.Email.List Defines several@Emailannotations on the same element.Constraints.Max Defines a maximum value for a numeric field.Constraints.Max.List Defines several@Maxannotations on the same element.Constraints.MaxLength Defines a maximum length for a string field.Constraints.MaxLength.List Defines several@MaxLengthannotations on the same element.Constraints.Min Defines a minimum value for a numeric field.Constraints.Min.List Defines several@Minannotations on the same element.Constraints.MinLength Defines a minimum length for a string field.Constraints.MinLength.List Defines several@MinLengthannotations on the same element.Constraints.Pattern Defines a pattern constraint for a string field.Constraints.Pattern.List Defines several@Patternannotations on the same element.Constraints.Required Defines a field as required.Constraints.Required.List Defines several@Requiredannotations on the same element.Constraints.Validate Constraints.Validate.List Defines several@Validateannotations on the same element.Constraints.ValidatePayloadWith Defines a custom validator.Constraints.ValidatePayloadWith.List Defines several@ValidatePayloadWithannotations on the same element.Constraints.ValidateWith Defines a custom validator.Constraints.ValidateWith.List Defines several@ValidateWithannotations on the same element.Constraints.ValidateWithPayload Constraints.ValidateWithPayload.List Defines several@ValidateWithPayloadannotations on the same element.