Package | Description |
---|---|
org.foxlabs.validation.constraint |
Modifier and Type | Class and Description |
---|---|
interface |
Capitalize
Converts to upper case first letter of first word in the annotated string.
|
interface |
CapitalizeAll
Converts to upper case first letters of all words in the annotated string.
|
interface |
Cascade
Performs cascade validation on the annotated element.
|
interface |
Coalesce
Replaces all whitespaces with single character in the annotated string.
|
interface |
DefaultValue
Replaces
null value of the annotated element with default value. |
interface |
Despace
Removes all whitespaces from the annotated string.
|
interface |
EmailAddress
Checks whether the annotated string is valid email address.
|
interface |
Enumeration
Checks whether value of the annotated element is one of the allowed constants.
|
interface |
EqualTo
Applies
== operator to the annotated element and property
specified by this annotation. |
interface |
FileExists
Checks existence of the annotated file or directory.
|
interface |
FileSize
Checks whether size of the annotated file is within allowed minimum and
maximum bounds.
|
interface |
FutureDate
Checks whether the annotated date is a date in the future.
|
interface |
GreaterThan
Applies
> operator to the annotated element and property
specified by this annotation. |
interface |
GreaterThanEqual
Applies
>= operator to the annotated element and property
specified by this annotation. |
interface |
Hostname
Checks whether the annotated string is valid internet hostname.
|
interface |
Identifier
Checks whether the annotated string is valid identifier.
|
interface |
IgnoreCaseEnumeration
Checks whether the annotated string is one of the allowed constants (case
insensitive matching).
|
interface |
IllegalCharset
Checks whether the annotated string not contains disallowed characters.
|
interface |
ImageSize
Checks whether the size of the annotated image is within maximum bounds.
|
interface |
InetAddress
Checks whether the annotated string is valid internet address (can be either
hostname or IP address).
|
interface |
InstanceOf
Checks whether the annotated object is instance of one of allowed types.
|
interface |
Ip4Address
Checks whether the annotated string is valid IPv4 address.
|
interface |
Ip6Address
Checks whether the annotated string is valid IPv6 address.
|
interface |
IpAddress
Checks whether the annotated string is valid IPv4 or IPv6 address.
|
interface |
IsFalse
Checks whether the annotated boolean value is
false . |
interface |
IsNull
Checks whether the annotated object is
null . |
interface |
IsTrue
Checks whether the annotated boolean value is
true . |
interface |
LegalCharset
Checks whether the annotated string contains allowed characters only.
|
interface |
LessThan
Applies
< operator to the annotated element and property
specified by this annotation. |
interface |
LessThanEqual
Applies
<= operator to the annotated element and property
specified by this annotation. |
interface |
LowerCase
Converts the annotated string to lower case.
|
interface |
Max
Checks whether value of the annotated element is not greater than allowed
maximum value.
|
interface |
MaxLength
Cuts length of the annotated string.
|
interface |
MaxSize
Checks whether value size of the annotated element is not greater than
allowed maximum size.
|
interface |
MimeType
Checks whether the annotated string is valid MIME type representation.
|
interface |
Min
Checks whether value of the annotated element is not less than allowed
minimum value.
|
interface |
MinSize
Checks whether value size of the annotated element is not less than allowed
minimum size.
|
interface |
NotBlank
Checks whether the annotated string is not
null or empty. |
interface |
NotEmpty
Checks whether value of the annotated element is not empty.
|
interface |
NotEqualTo
Applies
!= operator to the annotated element and property
specified by this annotation. |
interface |
NotNull
Checks whether the annotated object is not
null . |
interface |
Nullify
Replaces the annotated empty string with
null . |
interface |
PastDate
Checks whether the annotated date is a date in the past.
|
interface |
Range
Checks whether value of the annotated object is within allowed minimum and
maximum range.
|
interface |
Regex
Checks whether the annotated string matches the regular expression (see
java.util.regex.Pattern for more information). |
interface |
RemoveNullElements
Removes all
null elements from the annotated sequence. |
interface |
Replace
Replaces each substring of the annotated string that matches the given
regular expression with the given replacement.
|
interface |
SetNull
Replaces value of the annotated element with
null . |
interface |
Size
Checks whether value size of the annotated element is within allowed minimum
and maximum bounds.
|
interface |
SupportedEncoding
Checks whether the annotated string is in list of available charset names
supported by JRE.
|
interface |
SupportedImageMime
Checks whether the annotated string is in list of available image MIME types
supported by
javax.imageio.ImageIO . |
interface |
SupportedLocale
Checks whether the annotated locale is in list of available locales
supported by JRE.
|
interface |
SupportedTimeZone
Checks whether the annotated time zone is in list of available time zones
supported by JRE.
|
interface |
Sysdate
Replaces
null value of the annotated date with system date. |
interface |
Trim
Removes leading and trailing whitespaces from the annotated string.
|
interface |
UpperCase
Converts the annotated string to upper case.
|
interface |
UriAddress
Checks whether the annotated string is valid URI reference.
|
interface |
UrlAddress
Checks whether the annotated string is valid URL reference.
|
Copyright © 2011–2020 FoxLabs. All rights reserved.