Uses of Class
com.erudika.para.core.validation.Constraint
Package
Description
Core domain classes for modeling the Para domain space.
Object validation utilities.
-
Uses of Constraint in com.erudika.para.core
Modifier and TypeMethodDescriptionboolean
App.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
Modifier and TypeMethodDescriptionstatic Constraint
Builds a new constraint from a given name and payload.static Constraint
static Constraint
Constraint.email()
The 'email' constraint - field must contain a valid email.static Constraint
Constraint.falsy()
The 'falsy' constraint - field value must not be equal to 'true'.static Constraint
Constraint.fromAnnotation
(Annotation anno) Builds a new constraint from the annotation data.static Constraint
Constraint.future()
The 'future' constraint - field value must be aDate
or a timestamp in the future.static Constraint
The 'max' constraint - field must contain a number smaller than or equal to max.static Constraint
The 'min' constraint - field must contain a number larger than or equal to min.static Constraint
Constraint.past()
The 'past' constraint - field value must be aDate
or a timestamp in the past.static Constraint
The 'pattern' constraint - field must contain a value matching a regular expression.static Constraint
Constraint.required()
The 'required' constraint - marks a field as required.static Constraint
The 'size' constraint - field must be aString
,Map
,Collection
or array with a given minimum and maximum length.static Constraint
Constraint.truthy()
The 'truthy' constraint - field value must be equal to 'true'.static Constraint
Constraint.url()
The 'url' constraint - field value must be a valid URL.