Uses of Class
com.erudika.para.core.validation.Constraint
Packages that use Constraint
Package
Description
Core domain classes for modeling the Para domain space.
Object validation utilities.
-
Uses of Constraint in com.erudika.para.core
Methods in com.erudika.para.core with parameters of type ConstraintModifier and TypeMethodDescriptionbooleanApp.addValidationConstraint(String type, String field, Constraint c) Adds a new constraint to the list of constraints for a given field and type. -
Uses of Constraint in com.erudika.para.core.validation
Methods in com.erudika.para.core.validation that return ConstraintModifier and TypeMethodDescriptionstatic ConstraintBuilds a new constraint from a given name and payload.static Constraintstatic ConstraintConstraint.email()The 'email' constraint - field must contain a valid email.static ConstraintConstraint.falsy()The 'falsy' constraint - field value must not be equal to 'true'.static ConstraintConstraint.fromAnnotation(Annotation anno) Builds a new constraint from the annotation data.static ConstraintConstraint.future()The 'future' constraint - field value must be aDateor a timestamp in the future.static ConstraintThe 'max' constraint - field must contain a number smaller than or equal to max.static ConstraintThe 'min' constraint - field must contain a number larger than or equal to min.static ConstraintConstraint.past()The 'past' constraint - field value must be aDateor a timestamp in the past.static ConstraintThe 'pattern' constraint - field must contain a value matching a regular expression.static ConstraintConstraint.required()The 'required' constraint - marks a field as required.static ConstraintThe 'size' constraint - field must be aString,Map,Collectionor array with a given minimum and maximum length.static ConstraintConstraint.truthy()The 'truthy' constraint - field value must be equal to 'true'.static ConstraintConstraint.url()The 'url' constraint - field value must be a valid URL.