All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
static void |
addError(String field,
String message,
String... variables)
Add an error
|
static void |
clear() |
static Validation |
current() |
Validation.ValidationResult |
email(Object o) |
static Validation.ValidationResult |
email(String key,
Object o) |
Validation.ValidationResult |
equals(Object o,
Object to) |
static Validation.ValidationResult |
equals(String key,
Object o,
String otherName,
Object to) |
static Error |
error(String field) |
static List<Error> |
errors() |
static List<Error> |
errors(String field) |
Map<String,List<Error>> |
errorsMap() |
Validation.ValidationResult |
future(Object o) |
Validation.ValidationResult |
future(Object o,
Date reference) |
static Validation.ValidationResult |
future(String key,
Object o) |
static Validation.ValidationResult |
future(String key,
Object o,
Date reference) |
static Map<String,List<Validation.Validator>> |
getValidators(Class<?> clazz,
String name) |
static List<Validation.Validator> |
getValidators(Class<?> clazz,
String property,
String name) |
static boolean |
hasError(String field) |
static boolean |
hasErrors() |
static boolean |
hasErrors(String field) |
static void |
insertError(int index,
String field,
String message,
String... variables)
Insert an error at the specified position in this list.
|
Validation.ValidationResult |
ipv4Address(Object o) |
static Validation.ValidationResult |
ipv4Address(String key,
Object o) |
Validation.ValidationResult |
ipv6Address(Object o) |
static Validation.ValidationResult |
ipv6Address(String key,
Object o) |
Validation.ValidationResult |
isTrue(Object o) |
static Validation.ValidationResult |
isTrue(String key,
Object o) |
static void |
keep()
Keep errors for the next request (will be stored in a cookie)
|
Validation.ValidationResult |
match(Object o,
String pattern) |
static Validation.ValidationResult |
match(String key,
Object o,
String pattern) |
Validation.ValidationResult |
max(Object o,
double max) |
static Validation.ValidationResult |
max(String key,
Object o,
double max) |
Validation.ValidationResult |
maxSize(Object o,
int maxSize) |
static Validation.ValidationResult |
maxSize(String key,
Object o,
int maxSize) |
Validation.ValidationResult |
min(Object o,
double min) |
static Validation.ValidationResult |
min(String key,
Object o,
double min) |
Validation.ValidationResult |
minSize(Object o,
int minSize) |
static Validation.ValidationResult |
minSize(String key,
Object o,
int minSize) |
Validation.ValidationResult |
past(Object o) |
Validation.ValidationResult |
past(Object o,
Date reference) |
static Validation.ValidationResult |
past(String key,
Object o) |
static Validation.ValidationResult |
past(String key,
Object o,
Date reference) |
Validation.ValidationResult |
phone(Object o) |
static Validation.ValidationResult |
phone(String key,
Object o) |
Validation.ValidationResult |
range(Object o,
double min,
double max) |
static Validation.ValidationResult |
range(String key,
Object o,
double min,
double max) |
static void |
removeErrors(String field)
Remove all errors on a field
|
static void |
removeErrors(String field,
String message)
Remove all errors on a field with the given message
|
Validation.ValidationResult |
required(Object o) |
static Validation.ValidationResult |
required(String key,
Object o) |
Validation.ValidationResult |
url(Object o) |
static Validation.ValidationResult |
url(String key,
Object o) |
Validation.ValidationResult |
valid(Object o) |
static Validation.ValidationResult |
valid(String key,
Object o) |
static Object |
willBeValidated(Object value) |