Package | Description |
---|---|
org.javalite.activejdbc |
ActiveJDBC - the agile Java ORM.
|
org.javalite.validation |
Data validation , see
Validations.
|
org.javalite.validation.length |
Modifier and Type | Method and Description |
---|---|
static List<Validator> |
Model.getValidators(Class<? extends Model> clazz) |
static List<Validator> |
ModelDelegate.validatorsOf(Class<? extends Model> clazz) |
Modifier and Type | Method and Description |
---|---|
void |
Model.addFailedValidator(Validator validator,
String errorKey)
Binds a validator to an attribute if validation fails.
|
static ValidationBuilder |
Model.addValidator(Validator validator)
Adds a validator to the model.
|
static void |
ModelDelegate.removeValidator(Class<? extends Model> clazz,
Validator validator) |
static void |
Model.removeValidator(Validator validator)
Removes a validator from model.
|
static ValidationBuilder |
ModelDelegate.validateWith(Class<? extends Model> clazz,
Validator validator) |
protected static ValidationBuilder |
Model.validateWith(Validator validator)
Add a custom validator to the model.
|
Modifier and Type | Class and Description |
---|---|
class |
ValidationBuilder<T extends Validator> |
Modifier and Type | Class and Description |
---|---|
class |
AttributePresenceValidator |
class |
DateValidator
If you are looking conversion, use
DateToStringConverter . |
class |
EmailValidator |
class |
ImplicitConversionValidator
As the name implies, it is implicit, and used internally by ActiveWeb
when converting request values into Java beans.
|
class |
NumericValidator |
class |
RangeValidator |
class |
RegexpValidator |
class |
TimestampValidator
Validates presence and correct format of a string.
|
class |
ValidatorAdapter
Subclass this class to create custom validators.
|
Modifier and Type | Method and Description |
---|---|
List<Validator> |
ValidationSupport.validators() |
Modifier and Type | Method and Description |
---|---|
void |
ValidationSupport.addFailedValidator(Validator validator,
String errorKey) |
void |
Validatable.addFailedValidator(Validator validator,
String errorKey)
This method is not to add validators for future processing.
|
void |
Errors.addValidator(String attributeName,
Validator validator)
Adds a validator whose validation failed.
|
void |
ValidationSupport.removeValidator(Validator validator) |
ValidationBuilder |
ValidationSupport.validateWith(Validator validator) |
Modifier and Type | Method and Description |
---|---|
ValidationBuilder |
ValidationSupport.validateWith(List<Validator> list) |
Modifier and Type | Class and Description |
---|---|
class |
AttributeLengthValidator
Attribute length validator.
|
Copyright © 2020 JavaLite. All rights reserved.