Interface | Description |
---|---|
Constraint<V> |
The root interface in the constraint hierarchy.
|
Class | Description |
---|---|
ArrayElementConstraint<V> |
This class provides
SequenceElementConstraint implementation
that performs validation of array elements. |
CapitalizeAllConstraint |
This class provides
CorrectConstraint implementation that
converts to upper case first letters of all words in a string. |
CapitalizeConstraint |
This class provides
CorrectConstraint implementation that
converts to upper case first letter of first word in a string. |
CascadeConstraint<V> |
This class provides
Constraint implementation that performs
cascade validation on an entity. |
CheckConstraint<V> |
This class provides base implementation of the
Constraint
interface that only checks value and doesn't modify it. |
CoalesceConstraint |
This class provides
CorrectConstraint implementation that
replaces all whitespaces with single character in a string. |
CollectionElementConstraint<V> |
This class provides
SequenceElementConstraint implementation
that performs validation of collection elements. |
ConstraintAggregation<V> |
This class provides base implementation of the
Constraint that
encapsulates other constraints to validate a value. |
ConstraintComposition<V> |
This class provides
ConstraintAggregation implementation that
is composition of the encapsulated constraints. |
ConstraintConjunction<V> |
This class provides
ConstraintAggregation implementation that
is conjunction of the encapsulated constraints. |
ConstraintDisjunction<V> |
This class provides
ConstraintAggregation implementation that
is disjunction of the encapsulated constraints. |
ConstraintFactory |
Defines a factory that allows to obtain
Constraint instances. |
ConstraintGroupWrapper<V> |
This class provides ability to override groups of another constraint.
|
ConstraintMessageWrapper<V> |
This class provides ability to override error message of another constraint.
|
ConstraintNegation<V> |
This class provides
ConstraintAggregation implementation that
is negation of the encapsulated constraints. |
ConstraintWrapper<V> |
This class provides convenient implementation of the
Constraint
that can be subclassed to wrap another constraint. |
CorrectConstraint<V> |
This class provides base implementation of the
Constraint
interface that modifies (corrects) value and never throws
ConstraintViolationException . |
CustomConstraint<V> |
This class provides
Constraint implementation for custom
constraints. |
DefaultComparator |
This class provides
java.util.Comparator implementation for
objects that implement java.lang.Comparable interface. |
DefaultValueConstraint<V> |
This class provides
CorrectConstraint implementation that
replaces a null value with default value. |
DespaceConstraint |
This class provides
CorrectConstraint implementation that
removes all whitespaces from a string. |
EmailAddressConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid email address. |
EnumerationConstraint<V> |
This class provides base implementation of the
CheckConstraint
that checks whether the specified value is one of the allowed constants. |
EnumerationConstraint.Default<V> |
This class provides default
EnumerationConstraint
implementation based on static set of constants. |
FileExistsConstraint |
This class provides
CheckConstraint implementation that checks
existence of a file or directory. |
FileSizeConstraint |
This class provides
CheckConstraint implementation that checks
whether size of a file is within allowed minimum and maximum bounds. |
FutureDateConstraint |
This class provides
CheckConstraint implementation that checks
whether a date is date in the future. |
HostnameConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid internet hostname according to
RFC 1123. |
IdentifierConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid identifier. |
IdentityConstraint |
This class provides
Constraint implementation that just returns
value unchanged. |
IgnoreCaseEnumerationConstraint |
This class provides
EnumerationConstraint implementation based
on static set of case insensitive strings. |
IllegalCharsetConstraint |
This class provides
CheckConstraint implementation that checks
whether a string not contains disallowed characters. |
ImageSizeConstraint<V> |
This class provides base implementation of the
Constraint that
checks whether the size of an image is within maximum bounds. |
ImageSizeConstraint.AwtCodec |
This class provides
ImageSizeConstraint implementation for
java.awt.Image type. |
ImageSizeConstraint.Context |
Context to be used by image codecs.
|
ImageSizeConstraint.IOContext |
Context used by
ImageSizeConstraint.RawCodec . |
ImageSizeConstraint.RawCodec |
This class provides
ImageSizeConstraint implementation for
byte[] type. |
InetAddressConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid internet address (can be either hostname or IP
address). |
InstanceOfConstraint |
This class provides
CheckConstraint implementation that checks
whether a value is instance of one of allowed types. |
Ip4AddressConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid IPv4 address. |
Ip6AddressConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid IPv6 address. |
IpAddressConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid IPv4 or IPv6 address. |
IsFalseConstraint |
This class provides
CheckConstraint implementation that checks
whether a boolean value is false . |
IsNullConstraint |
This class provides
CheckConstraint implementation that checks
whether a value is null . |
IsTrueConstraint |
This class provides
CheckConstraint implementation that checks
whether a boolean value is true . |
LegalCharsetConstraint |
This class provides
CheckConstraint implementation that checks
whether a string contains allowed characters only. |
LogLevelConstraint |
This class provides
EnumerationConstraint implementation for
java.util.logging.Level known constants. |
LowerCaseConstraint |
This class provides
CorrectConstraint implementation that
converts a string to lower case. |
MapKeyConstraint<V> |
This class provides
SequenceElementConstraint implementation
that performs validation of map keys. |
MapValueConstraint<V> |
This class provides
SequenceElementConstraint implementation
that performs validation of map values. |
MaxLengthConstraint |
This class provides
CorrectConstraint implementation that
allows to cut length of a string. |
MimeTypeConstraint |
This class provides
RegexConstraint implementation that checks
whether a string is valid MIME type representation. |
NotBlankConstraint |
This class provides
CheckConstraint implementation that
checks whether a string is not null or empty. |
NotEmptyConstraint<V> |
This class provides base implementation of the
CheckConstraint
that checks whether a value is not empty. |
NotEmptyConstraint.ArrayType |
This class provides
NotEmptyConstraint implementation for
all array types. |
NotEmptyConstraint.CollectionType |
This class provides
NotEmptyConstraint implementation for
all JDK java.util.Collection types. |
NotEmptyConstraint.MapType |
This class provides
NotEmptyConstraint implementation for
all JDK java.util.Map types. |
NotEmptyConstraint.StringType |
This class provides
NotEmptyConstraint implementation for
java.lang.String type. |
NotNullConstraint |
This class provides
CheckConstraint implementation that checks
whether a value is not null . |
NullifyConstraint |
This class provides
CorrectConstraint implementation that
replaces an empty string with null . |
PastDateConstraint |
This class provides
CheckConstraint implementation that checks
whether a date is date in the past. |
PropertyComparisonConstraint<V> |
This class provides base implementation of the
CheckConstraint
that applies binary comparison operator to a value and other property. |
PropertyComparisonConstraint.EqualToOp<V> |
This class provides
PropertyComparisonConstraint
implementation that applies == operator to a value and
other property. |
PropertyComparisonConstraint.GreaterThanEqualOp<V> |
This class provides
PropertyComparisonConstraint
implementation that applies >= operator to a value and
other property. |
PropertyComparisonConstraint.GreaterThanOp<V> |
This class provides
PropertyComparisonConstraint
implementation that applies > operator to a value and
other property. |
PropertyComparisonConstraint.LessThanEqualOp<V> |
This class provides
PropertyComparisonConstraint
implementation that applies <= operator to a value and
other property. |
PropertyComparisonConstraint.LessThanOp<V> |
This class provides
PropertyComparisonConstraint
implementation that applies < operator to a value and
other property. |
PropertyComparisonConstraint.NotEqualToOp<V> |
This class provides
PropertyComparisonConstraint
implementation that applies != operator to a value and
other property. |
RangeConstraint<V> |
This class provides
CheckConstraint implementation that checks
whether a value is within allowed minimum and maximum range. |
RegexConstraint |
This class provides
CheckConstraint implementation that checks
whether a string matches the regular expression. |
RemoveNullElementsConstraint<V> |
This class provides base implementation of the
CorrectConstraint
that removes all null elements from a sequence. |
RemoveNullElementsConstraint.ArrayType |
This class provides
RemoveNullElementsConstraint
implementation for all array types. |
RemoveNullElementsConstraint.CollectionType |
This class provides
RemoveNullElementsConstraint
implementation for all JDK java.util.Collection types. |
ReplaceConstraint |
This class provides
CorrectConstraint implementation that
Replaces each substring of a string that matches the given regular
expression with the given replacement. |
SequenceElementConstraint<V,E> |
This class provides base implementation of the
Constraint that
uses another constraint to validate elements of a sequence. |
SetNullConstraint |
This class provides
CorrectConstraint implementation that
replaces a value with null . |
SizeConstraint<V> |
This class provides base implementation of the
CheckConstraint
that checks whether the size of a value is within allowed minimum and
maximum bounds. |
SizeConstraint.ArrayType |
This class provides
SizeConstraint implementation for all
array types. |
SizeConstraint.CollectionType |
This class provides
SizeConstraint implementation for all
JDK java.util.Collection types. |
SizeConstraint.MapType |
This class provides
SizeConstraint implementation for all
JDK java.util.Map types. |
SizeConstraint.StringType |
This class provides
SizeConstraint implementation for
java.lang.String type. |
SupportedEncodingConstraint |
This class provides
EnumerationConstraint implementation that
checks whether a string is in list of available charset names supported by
JRE. |
SupportedImageMimeConstraint |
This class provides
EnumerationConstraint implementation that
checks whether a string is in list of available image MIME types supported
by javax.imageio.ImageIO . |
SupportedLocaleConstraint |
This class provides
EnumerationConstraint implementation that
checks whether a locale is in list of available locales supported by JRE. |
SupportedTimeZoneConstraint |
This class provides
EnumerationConstraint implementation that
checks whether a time zone is in list of available time zones supported by
JRE. |
SysdateConstraint |
This class provides
CorrectConstraint implementation that
replaces a null date with current system date. |
TrimConstraint |
This class provides
CorrectConstraint implementation that
removes leading and trailing whitespaces from a string. |
UpperCaseConstraint |
This class provides
CorrectConstraint implementation that
converts a string to upper case. |
UriAddressConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid URI reference. |
UrlAddressConstraint |
This class provides
CheckConstraint implementation that checks
whether a string is valid URL reference. |
Enum | Description |
---|---|
ImageAdjust |
Image size adjust mode.
|
Exception | Description |
---|---|
ConstraintViolationException |
Thrown to indicate that constraint validation fails.
|
Annotation Type | Description |
---|---|
Capitalize |
Converts to upper case first letter of first word in the annotated string.
|
Capitalize.List |
Defines several
@Capitalize annotations on the same element. |
CapitalizeAll |
Converts to upper case first letters of all words in the annotated string.
|
CapitalizeAll.List |
Defines several
@CapitalizeAll annotations on the same
element. |
Cascade |
Performs cascade validation on the annotated element.
|
Cascade.List |
Defines several
@Cascade annotations on the same element. |
Coalesce |
Replaces all whitespaces with single character in the annotated string.
|
Coalesce.List |
Defines several
@Coalesce annotations on the same element. |
Composition |
Composition of constraints of the annotated element.
|
Conjunction |
Conjunction of constraints of the annotated element.
|
ConstrainedBy |
Link between a constraint annotation and its
Constraint
implementations. |
DefaultValue |
Replaces
null value of the annotated element with default value. |
DefaultValue.List |
Defines several
@DefaultValue annotations on the same
element. |
Despace |
Removes all whitespaces from the annotated string.
|
Despace.List |
Defines several
@Despace annotations on the same element. |
Disjunction |
Disjunction of constraints of the annotated element.
|
EmailAddress |
Checks whether the annotated string is valid email address.
|
EmailAddress.List |
Defines several
@EmailAddress annotations on the same
element. |
Enumeration |
Checks whether value of the annotated element is one of the allowed constants.
|
Enumeration.List |
Defines several
@Enumeration annotations on the same
element. |
EqualTo |
Applies
== operator to the annotated element and property
specified by this annotation. |
EqualTo.List |
Defines several
@EqualTo annotations on the same element. |
FileExists |
Checks existence of the annotated file or directory.
|
FileExists.List |
Defines several
@FileExists annotations on the same element. |
FileSize |
Checks whether size of the annotated file is within allowed minimum and
maximum bounds.
|
FileSize.List |
Defines several
@FileSize annotations on the same element. |
FutureDate |
Checks whether the annotated date is a date in the future.
|
FutureDate.List |
Defines several
@FutureDate annotations on the same element. |
GreaterThan |
Applies
> operator to the annotated element and property
specified by this annotation. |
GreaterThan.List |
Defines several
@GreaterThan annotations on the same
element. |
GreaterThanEqual |
Applies
>= operator to the annotated element and property
specified by this annotation. |
GreaterThanEqual.List |
Defines several
@GreaterThanEqual annotations on the same
element. |
Hostname |
Checks whether the annotated string is valid internet hostname.
|
Hostname.List |
Defines several
@Hostname annotations on the same element. |
Identifier |
Checks whether the annotated string is valid identifier.
|
Identifier.List |
Defines several
@Identifier annotations on the same element. |
IgnoreCaseEnumeration |
Checks whether the annotated string is one of the allowed constants (case
insensitive matching).
|
IgnoreCaseEnumeration.List |
Defines several
@IgnoreCaseEnumeration annotations on the
same element. |
IllegalCharset |
Checks whether the annotated string not contains disallowed characters.
|
IllegalCharset.List |
Defines several
@IllegalCharset annotations on the same
element. |
ImageSize |
Checks whether the size of the annotated image is within maximum bounds.
|
ImageSize.List |
Defines several
@ImageSize annotations on the same element. |
InetAddress |
Checks whether the annotated string is valid internet address (can be either
hostname or IP address).
|
InetAddress.List |
Defines several
@InetAddress annotations on the same
element. |
InstanceOf |
Checks whether the annotated object is instance of one of allowed types.
|
InstanceOf.List |
Defines several
@InstanceOf annotations on the same element. |
Ip4Address |
Checks whether the annotated string is valid IPv4 address.
|
Ip4Address.List |
Defines several
@Ip4Address annotations on the same element. |
Ip6Address |
Checks whether the annotated string is valid IPv6 address.
|
Ip6Address.List |
Defines several
@Ip6Address annotations on the same element. |
IpAddress |
Checks whether the annotated string is valid IPv4 or IPv6 address.
|
IpAddress.List |
Defines several
@IpAddress annotations on the same element. |
IsFalse |
Checks whether the annotated boolean value is
false . |
IsFalse.List |
Defines several
@IsFalse annotations on the same
element. |
IsNull |
Checks whether the annotated object is
null . |
IsNull.List |
Defines several
@IsNull annotations on the same element. |
IsTrue |
Checks whether the annotated boolean value is
true . |
IsTrue.List |
Defines several
@IsTrue annotations on the same element. |
LegalCharset |
Checks whether the annotated string contains allowed characters only.
|
LegalCharset.List |
Defines several
@LegalCharset annotations on the same
element. |
LessThan |
Applies
< operator to the annotated element and property
specified by this annotation. |
LessThan.List |
Defines several
@LessThan annotations on the same element. |
LessThanEqual |
Applies
<= operator to the annotated element and property
specified by this annotation. |
LessThanEqual.List |
Defines several
@LessThanEqual annotations on the same
element. |
LowerCase |
Converts the annotated string to lower case.
|
LowerCase.List |
Defines several
@LowerCase annotations on the same element. |
Max |
Checks whether value of the annotated element is not greater than allowed
maximum value.
|
Max.List |
Defines several
@Max annotations on the same element. |
MaxLength |
Cuts length of the annotated string.
|
MaxLength.List |
Defines several
@MaxLength annotations on the same element. |
MaxSize |
Checks whether value size of the annotated element is not greater than
allowed maximum size.
|
MaxSize.List |
Defines several
@MaxSize annotations on the same element. |
MimeType |
Checks whether the annotated string is valid MIME type representation.
|
MimeType.List |
Defines several
@MimeType annotations on the same element. |
Min |
Checks whether value of the annotated element is not less than allowed
minimum value.
|
Min.List |
Defines several
@Min annotations on the same element. |
MinSize |
Checks whether value size of the annotated element is not less than allowed
minimum size.
|
MinSize.List |
Defines several
@MinSize annotations on the same element. |
Negation |
Negation of constraints of the annotated element.
|
NotBlank |
Checks whether the annotated string is not
null or empty. |
NotBlank.List |
Defines several
@NotBlank annotations on the same element. |
NotEmpty |
Checks whether value of the annotated element is not empty.
|
NotEmpty.List |
Defines several
@NotEmpty annotations on the same element. |
NotEqualTo |
Applies
!= operator to the annotated element and property
specified by this annotation. |
NotEqualTo.List |
Defines several
@NotEqualTo annotations on the same element. |
NotNull |
Checks whether the annotated object is not
null . |
NotNull.List |
Defines several
@NotNull annotations on the same element. |
Nullify |
Replaces the annotated empty string with
null . |
Nullify.List |
Defines several
@Nullify annotations on the same element. |
PastDate |
Checks whether the annotated date is a date in the past.
|
PastDate.List |
Defines several
@PastDate annotations on the same element. |
Range |
Checks whether value of the annotated object is within allowed minimum and
maximum range.
|
Range.List |
Defines several
@Range annotations on the same element. |
Regex |
Checks whether the annotated string matches the regular expression (see
java.util.regex.Pattern for more information). |
Regex.List |
Defines several
@Regex annotations on the same element. |
RemoveNullElements |
Removes all
null elements from the annotated sequence. |
RemoveNullElements.List |
Defines several
@RemoveNullElements annotations on the same
element. |
Replace |
Replaces each substring of the annotated string that matches the given
regular expression with the given replacement.
|
Replace.List |
Defines several
@Replace annotations on the same element. |
SetNull |
Replaces value of the annotated element with
null . |
SetNull.List |
Defines several
@SetNull annotations on the same element. |
Size |
Checks whether value size of the annotated element is within allowed minimum
and maximum bounds.
|
Size.List |
Defines several
@Size annotations on the same element. |
SupportedEncoding |
Checks whether the annotated string is in list of available charset names
supported by JRE.
|
SupportedEncoding.List |
Defines several
@SupportedEncoding annotations on the same element. |
SupportedImageMime |
Checks whether the annotated string is in list of available image MIME types
supported by
javax.imageio.ImageIO . |
SupportedImageMime.List |
Defines several
@SupportedImageMime annotations on the same element. |
SupportedLocale |
Checks whether the annotated locale is in list of available locales
supported by JRE.
|
SupportedLocale.List |
Defines several
@SupportedLocale annotations on the same element. |
SupportedTimeZone |
Checks whether the annotated time zone is in list of available time zones
supported by JRE.
|
SupportedTimeZone.List |
Defines several
@SupportedTimeZone annotations on the same element. |
Sysdate |
Replaces
null value of the annotated date with system date. |
Sysdate.List |
Defines several
@Sysdate annotations on the same element. |
Trim |
Removes leading and trailing whitespaces from the annotated string.
|
Trim.List |
Defines several
@Trim annotations on the same element. |
UpperCase |
Converts the annotated string to upper case.
|
UpperCase.List |
Defines several
@UpperCase annotations on the same element. |
UriAddress |
Checks whether the annotated string is valid URI reference.
|
UriAddress.List |
Defines several
@UriAddress annotations on the same element. |
UrlAddress |
Checks whether the annotated string is valid URL reference.
|
UrlAddress.List |
Defines several
@UrlAddress annotations on the same element. |
Copyright © 2011–2020 FoxLabs. All rights reserved.