| Package | Description |
|---|---|
| com.holonplatform.core | |
| com.holonplatform.core.beans | |
| com.holonplatform.core.i18n | |
| com.holonplatform.core.property | |
| com.holonplatform.core.query |
| Modifier and Type | Class and Description |
|---|---|
static class |
Validator.ValidationException
Exception used to notify validation errors using
Validator.validate(Object). |
static class |
Validator.ValidationMessage
Validation messages for common validators
|
| Modifier and Type | Method and Description |
|---|---|
List<Localizable> |
Validator.ValidationException.getValidationMessages()
Get all the validation error messages carried by this validation exception.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Validator<T> |
Validator.create(Predicate<T> predicate,
Localizable message)
|
static <T extends Number> |
Validator.digits(int integral,
int fractional,
Localizable message)
Build a validator that checks that given
Number value is a number within accepted range, using given
Localizable message as validation error message. |
static <T extends CharSequence> |
Validator.email(Localizable message)
Build a validator that checks that the value is a valid e-mail address using RFC822 format rules, and uses given
Localizable message as validation error message. |
static <T extends Date> |
Validator.future(boolean includeTime,
Localizable message)
Build a validator that checks that given
Date value is in the future, using given Localizable
message as validation error message. |
static <T extends Comparable<T>> |
Validator.greaterOrEqual(T compareTo,
Localizable message)
Build a validator that checks that a value is greater than or equal to given
compareTo value, and
uses given Localizable message as validation error message. |
static <T extends Comparable<T>> |
Validator.greaterThan(T compareTo,
Localizable message)
Build a validator that checks that a value is greater than given
compareTo value, and uses given
Localizable message as validation error message. |
static <T> Validator<T> |
Validator.in(Localizable message,
T... values)
Build a validator that checks that given value is not
null and equals to one of the given values,
using given Localizable message as validation error. |
static <T> Validator<T> |
Validator.isNull(Localizable message)
Build a validator that checks that given value is
null and uses given Localizable
message as validation error message. |
static <T extends Comparable<T>> |
Validator.lessOrEqual(T compareTo,
Localizable message)
Build a validator that checks that a value is less than or equal to given
compareTo value, and uses
given Localizable message as validation error message. |
static <T extends Comparable<T>> |
Validator.lessThan(T compareTo,
Localizable message)
Build a validator that checks that a value is less than given
compareTo value, and uses given
Localizable message as validation error message. |
static <T> Validator<T> |
Validator.max(double max,
Localizable message)
Build a validator that checks that given value is lower than or equal to
max value, and uses given
Localizable message as validation error message. |
static <T> Validator<T> |
Validator.min(double min,
Localizable message)
Build a validator that checks that given value is greater than or equal to
min value, and uses given
Localizable message as validation error message. |
static <T extends CharSequence> |
Validator.notBlank(Localizable message)
Build a validator that checks that given value is not
null nor empty, trimming spaces, and uses
given Localizable message as validation error message. |
static <T> Validator<T> |
Validator.notEmpty(Localizable message)
Build a validator that checks that given value is not
null nor empty, and uses given
Localizable message as validation error message. |
static <T> Validator<T> |
Validator.notIn(Localizable message,
T... values)
Build a validator that checks that given value not equals to any of the given values, using given
Localizable message as validation error. |
static <T extends Number> |
Validator.notNegative(Localizable message)
Build a validator that checks that given
Number value is not negative, using given Localizable
message as validation error message. |
static <T> Validator<T> |
Validator.notNull(Localizable message)
Build a validator that checks that given value is not
null and uses given Localizable
message as validation error message. |
static <T extends Date> |
Validator.past(boolean includeTime,
Localizable message)
Build a validator that checks that given
Date value is in the past, using given Localizable
message as validation error message. |
static <T extends CharSequence> |
Validator.pattern(String regex,
Localizable message,
Validator.PatternFlag... flags)
Build a validator that checks that given value matches a regular expression, and uses given
Localizable
message as validation error message. |
| Constructor and Description |
|---|
ValidationException(Localizable message)
Constructor with
Localizable message |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BeanProperty<T>
Represents a Java Bean property as a
PathProperty, providing additional configuration informations and
methods. |
static interface |
BeanProperty.Builder<T>
BeanProperty builder.
|
| Modifier and Type | Method and Description |
|---|---|
Localizable |
Localizable.LocalizableBuilder.build()
Build the Localizable
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Localizable> |
LocalizationContext.getDefaultBooleanLocalization(boolean value)
Gets the default
Localizable message to use to localize a boolean value |
| Modifier and Type | Method and Description |
|---|---|
default String |
LocalizationContext.getMessage(Localizable localizable)
Get the localized message for given
Localizable. |
String |
LocalizationContext.getMessage(Localizable localizable,
boolean lenient)
Get a possibly localized message if the
LocalizationContext is localized. |
void |
LocalizationContext.setDefaultBooleanLocalization(boolean value,
Localizable message)
Sets the default
Localizable message to use to localize a boolean value |
static String |
LocalizationContext.translate(Localizable localizable)
Try to translate given
localizable using the LocalizationContext available as
Context resource through LocalizationContext.getCurrent(). |
static String |
LocalizationContext.translate(Localizable localizable,
boolean lenient)
Try to translate given
localizable using the LocalizationContext available as
Context resource through LocalizationContext.getCurrent(). |
LocalizationContext.Builder |
LocalizationContext.Builder.withDefaultBooleanLocalization(boolean value,
Localizable message)
Sets the default
Localizable message to use to localize a boolean value |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PathProperty<T>
|
static interface |
PathProperty.PathPropertyBuilder<T>
PathProperty builder. |
interface |
Property<T>
Property is the base interface to represent a generic data attribute.
|
interface |
VirtualProperty<T>
A virtual
Property which relies on a PropertyValueProvider to provide its value, and it is not
directly connected with a data model attribute. |
static interface |
VirtualProperty.Builder<T,B extends VirtualProperty.Builder<T,B>>
Base interface for
VirtualProperty building. |
| Modifier and Type | Method and Description |
|---|---|
B |
Property.Builder.localization(Localizable localizable)
Set the property localization using given
Localizable definition. |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FunctionExpression.FunctionExpressionProperty<T>
A
FunctionExpression implemented as a Property. |
static interface |
FunctionExpression.PathFunctionExpressionProperty<P,T>
A
FunctionExpression.PathFunctionExpression implemented as a VirtualProperty. |
Copyright © 2017 The Holon Platform. All rights reserved.