Uses of Class
org.javalite.validation.ValidationBuilder
-
Uses of ValidationBuilder in org.javalite.activejdbc
Modifier and TypeMethodDescriptionstatic ValidationBuilder
Model.addValidator(Validator validator)
Adds a validator to the model.protected static ValidationBuilder
Model.validateEmailOf(String attributeName)
Validates email format.static ValidationBuilder
ModelDelegate.validateEmailOf(Class<? extends Model> clazz, String attributeName)
protected static ValidationBuilder
Model.validatePresenceOf(String... attributeNames)
The validation will not pass if the value is either an empty string "", or null.static ValidationBuilder
ModelDelegate.validatePresenceOf(Class<? extends Model> clazz, String... attributeNames)
protected static ValidationBuilder
Model.validateRange(String attributeName, Number min, Number max)
Validates range.static ValidationBuilder
ModelDelegate.validateRange(Class<? extends Model> clazz, String attributeName, Number min, Number max)
protected static ValidationBuilder
Model.validateRegexpOf(String attributeName, String pattern)
Validates an attribite format with a ree hand regular expression.static ValidationBuilder
ModelDelegate.validateRegexpOf(Class<? extends Model> clazz, String attributeName, String pattern)
protected static ValidationBuilder
Model.validateWith(Validator validator)
Add a custom validator to the model.static ValidationBuilder
ModelDelegate.validateWith(Class<? extends Model> clazz, Validator validator)
-
Uses of ValidationBuilder in org.javalite.validation
Modifier and TypeMethodDescriptionValidationSupport.validatePresenceOf(String... attributes)
ValidationSupport.validateWith(List<Validator> list)
ValidationSupport.validateWith(Validator validator)
ValidationSupport.validateWith(Validator... validators)