Package | Description |
---|---|
org.foxlabs.validation | |
org.foxlabs.validation.constraint | |
org.foxlabs.validation.metadata |
Class and Description |
---|
Constraint
The root interface in the constraint hierarchy.
|
Class and Description |
---|
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. |
CheckConstraint
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. |
ConstrainedBy
Link between a constraint annotation and its
Constraint
implementations. |
Constraint
The root interface in the constraint hierarchy.
|
ConstraintAggregation
This class provides base implementation of the
Constraint that
encapsulates other constraints to validate a value. |
ConstraintViolationException
Thrown to indicate that constraint validation fails.
|
ConstraintWrapper
This class provides convenient implementation of the
Constraint
that can be subclassed to wrap another constraint. |
CorrectConstraint
This class provides base implementation of the
Constraint
interface that modifies (corrects) value and never throws
ConstraintViolationException . |
DefaultComparator
This class provides
java.util.Comparator implementation for
objects that implement java.lang.Comparable interface. |
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. |
Enumeration
Checks whether value of the annotated element is one of the allowed constants.
|
EnumerationConstraint
This class provides base implementation of the
CheckConstraint
that checks whether the specified value is one of the allowed constants. |
EnumerationConstraint.Default
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. |
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. |
IgnoreCaseEnumeration
Checks whether the annotated string is one of the allowed constants (case
insensitive matching).
|
IgnoreCaseEnumerationConstraint
This class provides
EnumerationConstraint implementation based
on static set of case insensitive strings. |
ImageAdjust
Image size adjust mode.
|
ImageSize
Checks whether the size of the annotated image is within maximum bounds.
|
ImageSizeConstraint
This class provides base implementation of the
Constraint that
checks whether the size of an image is within maximum bounds. |
ImageSizeConstraint.Context
Context to be used by image codecs.
|
InetAddressConstraint
This class provides
CheckConstraint implementation that checks
whether a string is valid internet address (can be either hostname or IP
address). |
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 . |
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. |
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
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
This class provides base implementation of the
CheckConstraint
that applies binary comparison operator to a value and other property. |
RegexConstraint
This class provides
CheckConstraint implementation that checks
whether a string matches the regular expression. |
RemoveNullElementsConstraint
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. |
SequenceElementConstraint
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
This class provides base implementation of the
CheckConstraint
that checks whether the size of a value is within allowed minimum and
maximum bounds. |
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. |
Class and Description |
---|
Constraint
The root interface in the constraint hierarchy.
|
Copyright © 2011–2020 FoxLabs. All rights reserved.