Package | Description |
---|---|
org.foxlabs.validation |
Modifier and Type | Method and Description |
---|---|
static ValidatorFactory |
ValidatorFactory.getDefault()
Returns immutable validator factory configured by default.
|
ValidatorFactory |
Validator.getFactory()
Returns factory that was used to create this validator.
|
ValidatorFactory |
ValidatorFactory.setDateFormat(int dateStyle,
int timeStyle)
Sets default format of dates according to the specified date and time
styles.
|
ValidatorFactory |
ValidatorFactory.setDateFormat(String pattern)
Sets default format of dates according to the specified pattern.
|
ValidatorFactory |
ValidatorFactory.setDecimalFormat(String pattern)
Sets default format of decimal numbers according to the specified
pattern.
|
ValidatorFactory |
ValidatorFactory.setIntegerFormat(String pattern)
Sets default format of integer numbers according to the specified
pattern.
|
ValidatorFactory |
ValidatorFactory.setMessageBuilder(MessageBuilder builder)
Sets message builder to be used for building error messages.
|
ValidatorFactory |
ValidatorFactory.setMessageResolver(MessageResolver resolver)
Sets message resolver to be used for resolving localized messages.
|
Constructor and Description |
---|
Validator(ValidatorFactory factory,
EntityMetaData<T> entityMeta,
MessageResolver messageResolver,
MessageBuilder messageBuilder,
String integerPattern,
String decimalPattern,
String datePattern,
int dateStyle,
int timeStyle)
Constructs a new
Validator with the specified factory,
entity metadata, message resolver and error message builder. |
Copyright © 2011–2020 FoxLabs. All rights reserved.