| Package | Description |
|---|---|
| de.knightsoftnet.validators.shared |
JSR-303 annotations to check bean entries (interfaces).
|
| de.knightsoftnet.validators.shared.impl |
JSR-303 annotations to check bean entries (implementations).
|
| Class and Description |
|---|
| AlternateSize
The annotated element size must be exactly match size1 or size2.
|
| SizeWithoutSeparators
The annotated element size must be between the specified boundaries (included).
|
| Class and Description |
|---|
| AgeLimitCheck
The annotated Date must be
minYears or more in the past. |
| AlternateSize
The annotated element size must be exactly match size1 or size2.
|
| BankCountry
The annotated bean must contain three properties:
country code (option
fieldCountryCode)
iban (option fieldIban)
bic (option fieldBic)
The country codes of iban and bic are checked against the country code for validity. |
| Bic
The annotated element must be a valid BIC (Business Identifier Code in the past also known as
Bank Identifier Code).
|
| BicValue
The annotated element must be a valid BIC (Business Identifier Code in the past also known as
Bank Identifier Code).
|
| CreditCardNumber
The annotated element must be a valid credit card number.
|
| Email
The annotated element must be a valid eMail.
|
| EmptyIfOtherHasValue
The annotated bean must contain at least two properties:
a field that has to be checked (option
field)
a field which entry is compared against a value (option fieldCompare and
valueCompare)
if the entry of fieldCompare matches valueCompare, field
must be empty (null or ""). |
| EmptyIfOtherIsEmpty
The annotated bean must contain at least two properties:
a field that has to be checked (option
field)
a field which entry is compared (option fieldCompare)
if the entry of fieldCompare is empty (null or ""), field must be also
empty (null or ""). |
| EmptyIfOtherIsNotEmpty
The annotated bean must contain at least two properties:
a field that has to be checked (option
field)
a field which entry is compared (option fieldCompare)
if the entry of fieldCompare is not empty (null or ""), field must be
empty (null or ""). |
| Gln
The annotated element must be a valid Global Location Number (until 2009 known as International
Location Number).
|
| Gtin
The annotated element must be a valid Global Trade Item Number (until 2009 known as European
Article Number) in the long (13 digits) or short (8 digits) format.
|
| Gtin13
The annotated element must be a valid Global Trade Item Number (until 2009 known as European
Article Number) in the long (13 digits) format.
|
| Gtin8
The annotated element must be a valid Global Trade Item Number (until 2009 known as European
Article Number) in the short (8 digits) format.
|
| Iban
The annotated element must be a valid International Bank Account Number.
|
| IbanFormated
The annotated element must be a valid International Bank Account Number.
|
| Isbn
The annotated element must be a valid International Standard Book Number in the long (13 digits)
or short (10 digits) format.
|
| Isbn10
The annotated element must be a valid International Standard Book Number in the short (10 digits)
format.
|
| Isbn10Formated
The annotated element must be a valid International Standard Book Number in the short (10 digits)
format.
|
| Isbn13
The annotated element must be a valid International Standard Book Number in the long (13 digits)
format.
|
| Isbn13Formated
The annotated element must be a valid International Standard Book Number in the long (13 digits)
format.
|
| IsbnFormated
The annotated element must be a valid International Standard Book Number in the long (13 digits)
or short (10 digits) format.
|
| Isin
The annotated element must be a valid International Securities Identification Number.
|
| LevenshteinDistance
The annotated bean must contain exact three properties:
a field that has to be checked (option
field1)
a field which entry is compared (option field2)
the minimum levenshtein distance both field entries must have (option
minDistance)
add the error to field1 (option addErrorToField1, default true)
add the error to field2 (option addErrorToField2, default true)
The Levenshtein distance between the entry of fieldCompare and field is
calculated, it must be equal or greater then the value of minDistance. not be empty (null or ""). |
| MustBeEqual
The annotated bean must contain at least two properties:
a field to compare (option
field1)
another field to compared (option field2)
add the error to field1 (option addErrorToField1, default true)
add the error to field2 (option addErrorToField2, default true)
the entry of field1 must be equal to the entry of field2, can be used
e.g. for password and password repeat fields. |
| MustNotBeEqual
The annotated bean must contain at least two properties:
a field to compare (option
field1)
another field to compared (option field2)
add the error to field1 (option addErrorToField1, default true)
add the error to field2 (option addErrorToField2, default true)
the entry of field1 must not be equal to the entry of field2, can be
used e.g. for password old and password new fields. |
| NotEmptyAlternateIfOtherHasValue
The annotated bean must contain at least three properties:
a field that has to be checked (option
field)
a field that has alternate to be checked (option fieldAlternate)
a field which entry is compared against a value (option fieldCompare and
valueCompare)
if the entry of fieldCompare matches valueCompare, field
or alternate fieldAlternate must not be empty (null or ""). |
| NotEmptyAlternateIfOtherIsEmpty
The annotated bean must contain at least three properties:
a field that has to be checked (option
field)
a field that has alternate to be checked (option fieldAlternate)
a field which entry is compared (option fieldCompare)
if the entry of fieldCompare is empty (null or ""), field or alternate
fieldAlternate must not be empty (null or ""). |
| NotEmptyAlternateIfOtherIsNotEmpty
The annotated bean must contain at least three properties:
a field that has to be checked (option
field)
a field that has alternate to be checked (option fieldAlternate)
a field which entry is compared (option fieldCompare)
if the entry of fieldCompare is not empty (null or ""), field or
alternate fieldAlternate must not be empty (null or ""). |
| NotEmptyIfOtherHasValue
The annotated bean must contain at least two properties:
a field that has to be checked (option
field)
a field which entry is compared against a value (option fieldCompare and
valueCompare)
if the entry of fieldCompare matches valueCompare, field
must not be empty (null or ""). |
| NotEmptyIfOtherIsEmpty
The annotated bean must contain at least two properties:
a field that has to be checked (option
field)
a field which entry is compared (option fieldCompare)
if the entry of fieldCompare is empty (null or ""), field must not be
empty (null or ""). |
| NotEmptyIfOtherIsNotEmpty
The annotated bean must contain at least two properties:
a field that has to be checked (option
field)
a field which entry is compared (option fieldCompare)
if the entry of fieldCompare is not empty (null or ""), field must also
not be empty (null or ""). |
| Password
The annotated element must be a valid password.
|
| PhoneNumber
The annotated element must be a valid phone number format.
|
| PhoneNumberValue
The annotated element must be a valid phone number format.
|
| PostalCode
The annotated bean must contain two properties:
country code (option
fieldCountryCode)
postal code/zip (option fieldPostalCode)
The postal code is checked against country specific rules for validity. |
| RegularExpression
The annotated element must be a valid regular expression.
|
| SizeWithoutSeparators
The annotated element size must be between the specified boundaries (included).
|
| Url
The annotated element must be a valid url.
|
| VatId
The annotated bean must contain two properties:
country code (option
fieldCountryCode)
vat id (option fieldVatId)
The vat id is checked against country specific rules for validity. |
Copyright © 2015–2016. All rights reserved.