| 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.getCausesMessages()
Get all the validation error messages of the validation causes, if any.
|
Optional<Localizable> |
Validator.ValidationException.getLocalizableMessage()
Get the exception localizable message, if available.
|
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 Number> |
Validator.notZero(Localizable message)
Build a validator that checks that given
Number value is not 0, using 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 |
ValidationException(Localizable message,
Collection<Validator.ValidationException> causes)
Constructor with message and causes.
|
ValidationException(Localizable message,
Validator.ValidationException... causes)
Constructor with message and causes.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BeanProperty<T>
Represents a Java Bean property as a
PathProperty, providing additional configuration informations and
read/write methods. |
static interface |
BeanProperty.Builder<T>
BeanProperty builder.
|
interface |
BooleanBeanProperty
A Boolean type
BeanProperty, implementing BooleanProperty. |
interface |
NumericBeanProperty<N extends Number>
A numeric type
BeanProperty, implementing NumericProperty. |
interface |
StringBeanProperty
A String type
BeanProperty, implementing StringProperty. |
interface |
TemporalBeanProperty<T>
A temporal type
BeanProperty, implementing TemporalProperty. |
| Modifier and Type | Method and Description |
|---|---|
Localizable |
Localizable.LocalizableBuilder.build()
Build the Localizable
|
static Localizable |
Localizable.of(String message)
Create a new
Localizable with the default message only. |
static Localizable |
Localizable.of(String message,
String messageCode,
Object... arguments)
Create a new
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. |
B |
Localizable.Builder.message(Localizable localizable)
Set the message localization attributes cloning them from given
Localizable. |
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 |
BooleanProperty
A boolean type
PathProperty. |
static interface |
BooleanProperty.BooleanPropertyBuilder
BooleanProperty builder. |
interface |
CloneableProperty<T,P extends Property<T>,B extends Property.Builder<T,P,?>>
Declares a
Property as cloneable. |
static interface |
CloneableProperty.CloneablePathProperty<T,P extends Property<T> & Path<T>>
A
Path type CloneableProperty. |
interface |
CollectionPathProperty<E,C extends Collection<E>>
A
CollectionProperty type PathProperty. |
interface |
CollectionProperty<E,C extends Collection<E>>
A
Property which handles a Collection of values. |
static interface |
CollectionProperty.ListProperty<T>
A
CollectionProperty which uses a List as concrete collection type. |
static interface |
CollectionProperty.SetProperty<T>
A
CollectionProperty which uses a Set as concrete collection type. |
interface |
ListPathProperty<T>
A
CollectionPathProperty which uses a List as concrete collection type. |
static interface |
ListPathProperty.ListPathPropertyBuilder<T>
ListPathProperty builder. |
interface |
ListVirtualProperty<T>
A collection type
VirtualProperty using a List as concrete collection type. |
static interface |
ListVirtualProperty.ListVirtualPropertyBuilder<T>
|
interface |
NumericProperty<N extends Number>
A numeric type
PathProperty. |
static interface |
NumericProperty.NumericPropertyBuilder<N extends Number>
NumericProperty builder. |
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 |
PropertyBoxProperty
A
PropertyBox type PathProperty. |
static interface |
PropertyBoxProperty.PropertyBoxPropertyBuilder
PropertyBoxProperty builder. |
interface |
SetPathProperty<T>
A
CollectionPathProperty which uses a Set as concrete collection type. |
static interface |
SetPathProperty.SetPathPropertyBuilder<T>
SetPathProperty builder. |
interface |
SetVirtualProperty<T>
A collection type
VirtualProperty using a Set as concrete collection type. |
static interface |
SetVirtualProperty.SetVirtualPropertyBuilder<T>
SetVirtualProperty builder. |
interface |
StringProperty
A String type
PathProperty. |
static interface |
StringProperty.StringPropertyBuilder
StringProperty builder. |
interface |
TemporalProperty<T>
A temporal type
PathProperty. |
static interface |
TemporalProperty.TemporalPropertyBuilder<T>
TemporalProperty builder. |
interface |
VirtualProperty<T>
A virtual
Property which relies on a PropertyValueProvider to provide its value, and it is not
directly bound to a data model attribute. |
static interface |
VirtualProperty.Builder<T,P extends VirtualProperty<T>,B extends VirtualProperty.Builder<T,P,B>>
Base
VirtualProperty builder. |
static interface |
VirtualProperty.VirtualPropertyBuilder<T>
Default
VirtualProperty builder. |
| 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 |
QueryFunction.Avg
A function which represents the average value of a query result.
|
static interface |
QueryFunction.Count
A function which represents the count of a query result values.
|
static interface |
QueryFunction.Max<T>
A function which represents the largest value of a query result.
|
static interface |
QueryFunction.Min<T>
A function which represents the smallest value of a query result.
|
static interface |
QueryFunction.PropertyQueryFunction<T,A>
A
QueryFunction which is also a Property, allowing the function to be used within a property set
query projection and the function value to be collected in a PropertyBox. |
static interface |
QueryFunction.Sum<T extends Number>
A function which represents the sum of a numeric query result values.
|
interface |
StringFunction
Represents a
QueryFunction on a String data type. |
static interface |
StringFunction.Lower
Function to convert a string to lowercase.
|
static interface |
StringFunction.Upper
Function to convert a string to uppercase.
|
static interface |
TemporalFunction.Day
A function to extract the day part of a temporal data type.
|
static interface |
TemporalFunction.Hour
A function to extract the hour part of a temporal data type.
|
static interface |
TemporalFunction.Month
A function to extract the month part of a temporal data type.
|
static interface |
TemporalFunction.Year
A function to extract the year part of a temporal data type.
|
Copyright © 2019 The Holon Platform. All rights reserved.