Uses of Package
de.knightsoftnet.validators.shared
-
Packages that use de.knightsoftnet.validators.shared Package Description de.knightsoftnet.validators.shared JSR-303/JSR-349 annotations to check bean entries (interfaces).de.knightsoftnet.validators.shared.impl JSR-303/JSR-349/JSR-380 annotations to check bean entries (implementations). -
Classes in de.knightsoftnet.validators.shared used by de.knightsoftnet.validators.shared Class Description AgeLimitCheck The annotated Date must beminYearsor more in the past.
Supported types are Dates,nullelements are considered valid.AlternateSize The annotated element size must be exactly match size1 or size2.
Supported types are Stringsnullelements are considered valid.
With the following options separator characters can be removed before size is checked: ignoreWhiteSpaces (true/false, default false) ignoreMinus (true/false, default false) ignoreSlashes (true/false, default false)BankCountry The annotated bean must contain three properties: country code (optionfieldCountryCode) iban (optionfieldIban) bic (optionfieldBic) The country codes of iban and bic are checked against the country code for validity.
Supported types are beans,nullelements are considered valid.
IfallowLowerCaseCountryCodeis set to true, lower case country codes are accepted.Bic The annotated element must be a valid BIC (Business Identifier Code in the past also known as Bank Identifier Code).
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
IfignoreWhiteSpacesis set totrue, whitespaces are removed before test is done.
It's a formal test, against format definition, size and SWIFT country list.
There is no test of validity of the BIC!BicValue The annotated element must be a valid BIC (Business Identifier Code in the past also known as Bank Identifier Code).
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
IfignoreWhiteSpacesis set totrue, whitespaces are removed before test is done.
It's a formal test, against format definition, size and SWIFT country list.
There is no test of validity of the BIC!CreditCardNumber The annotated element must be a valid credit card number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are format, size and LUN checksum tests by apache commons validation routines.
There are no tests for credit card validity!Email The annotated element must be a valid eMail.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are format tests, domain validity tests, and size checks by apache commons validation routines.EmailMustHaveSameDomain The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the eMail entry offield1must have the same domain as the eMail entry offield2.
Supported types are beans,nullelements are considered valid.EmptyIfOtherHasValue The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared against a value (optionfieldCompareandvalueCompare) if the entry offieldComparematchesvalueCompare,fieldmust be empty (null or "").
Supported types are beans,nullelements are considered valid.EmptyIfOtherIsEmpty The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis empty (null or ""),fieldmust be also empty (null or "").
Supported types are beans,nullelements are considered valid.EmptyIfOtherIsNotEmpty The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis not empty (null or ""),fieldmust be empty (null or "").
Supported types are beans,nullelements are considered valid.FieldValueMapping field to possible values connection.Gln The annotated element must be a valid Global Location Number (until 2009 known as International Location Number).
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.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.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.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.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.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.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.Iban The annotated element must be a valid International Bank Account Number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.IbanFormated The annotated element must be a valid International Bank Account Number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn The annotated element must be a valid International Standard Book Number in the long (13 digits) or short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn10 The annotated element must be a valid International Standard Book Number in the short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn10Formated The annotated element must be a valid International Standard Book Number in the short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn13 The annotated element must be a valid International Standard Book Number in the long (13 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn13Formated The annotated element must be a valid International Standard Book Number in the long (13 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.IsbnFormated The annotated element must be a valid International Standard Book Number in the long (13 digits) or short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isin The annotated element must be a valid International Securities Identification Number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are format, size, SEPA country and checksum tests by apache commons validation routines.LevenshteinDistance The annotated bean must contain exact three properties: a field that has to be checked (optionfield1) a field which entry is compared (optionfield2) the minimum levenshtein distance both field entries must have (optionminDistance) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) The Levenshtein distance between the entry offieldCompareandfieldis calculated, it must be equal or greater then the value of minDistance. not be empty (null or "").LimitCharset The annotated element must contain only characters which are allowed in the given charset.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
Thecharsetmust be given as parameter.MustBeBigger The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default false) the entry offield1must be bigger then entry offield2, can be used e.g. for date or number "from"/"to" fields.
Supported types are beans,nullelements are considered valid.
The fields must implement Comparable!MustBeBiggerOrEqual The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default false) the entry offield1must be bigger or equal then entry offield2, can be used e.g. for date or number "from"/"to" fields.
Supported types are beans,nullelements are considered valid.
The fields must implement Comparable!MustBeEqual The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the entry offield1must be equal to the entry offield2, can be used e.g. for password and password repeat fields.
Supported types are beans,nullelements are considered valid.MustBeEqualIfOtherHasValue The annotated bean must contain at least four properties: a field to compare (optionfield1) another field to compared (optionfield2) a field which entry is compared against a value (optionfieldCompareandvalueCompare) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the entry offield1must be equal to the entry offield2when the entry offieldComparehas the valuevalueCompare, can be used e.g. for password and password repeat fields.
Supported types are beans,nullelements are considered valid.MustBeSmaller The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default false) the entry offield1must be smaller then entry offield2, can be used e.g. for date or number "from"/"to" fields.
Supported types are beans,nullelements are considered valid.
The fields must implement Comparable!MustBeSmallerOrEqual The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default false) the entry offield1must be smaller or equal then entry offield2, can be used e.g. for date or number "from"/"to" fields.
Supported types are beans,nullelements are considered valid.
The fields must implement Comparable!MustNotBeEqual The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the entry offield1must not be equal to the entry offield2, can be used e.g. for password old and password new fields.
Supported types are beans,nullelements are considered valid.MustNotBeEqualIfOtherHasValue The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) a field which entry is compared against a value (optionfieldCompareandvalueCompare) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the entry offield1must not be equal to the entry offield2when the entry offieldComparehas the valuevalueCompare, can be used e.g. for password old and password new fields.
Supported types are beans,nullelements are considered valid.NotEmptyAfterStrip The annotated element must not be null or empty after strip.NotEmptyAlternateIfOtherHasValue The annotated bean must contain at least three properties: a field that has to be checked (optionfield) a field that has alternate to be checked (optionfieldAlternate) a field which entry is compared against a value (optionfieldCompareandvalueCompare) if the entry offieldComparematchesvalueCompare,fieldor alternatefieldAlternatemust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyAlternateIfOtherIsEmpty The annotated bean must contain at least three properties: a field that has to be checked (optionfield) a field that has alternate to be checked (optionfieldAlternate) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis empty (null or ""),fieldor alternatefieldAlternatemust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyAlternateIfOtherIsNotEmpty The annotated bean must contain at least three properties: a field that has to be checked (optionfield) a field that has alternate to be checked (optionfieldAlternate) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis not empty (null or ""),fieldor alternatefieldAlternatemust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyIfOtherHasValue The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared against a value (optionfieldCompareandvalueCompare) if the entry offieldComparematchesvalueCompare,fieldmust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyIfOtherIsEmpty The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis empty (null or ""),fieldmust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyIfOtherIsNotEmpty The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis not empty (null or ""),fieldmust also not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyIfOthersHaveValue The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a array of fields and entries to be compared (optionotherFieldValueMapping) if the entries ofotherFieldValueMapping.fieldComparematches one of the corresponding entries inotherFieldValueMapping.valueCompare(array of possible values),fieldmust not be empty (null or "").
Supported types are beans,nullelements are considered valid.Password The annotated element must be a valid password.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are the following rules checked (withminRulesparameter the number rules can be defined that have to be fulfilled): lowercase upercase digits special character Usingblacklistyou can give a comma separated list of words which are not allowed to be part of the password.PhoneNumber The annotated element must be a valid phone number format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.PhoneNumberValue The annotated element must be a valid phone number format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.PostalCode The annotated bean must contain two properties: country code (optionfieldCountryCode) postal code/zip (optionfieldPostalCode) The postal code is checked against country specific rules for validity.
Supported types are beans,nullelements are considered valid.
IfallowLowerCaseCountryCodeis set to true, lower case country codes are accepted.RegularExpression The annotated element must be a valid regular expression.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.SizeWithoutSeparators The annotated element size must be between the specified boundaries (included).
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
With the following options separator characters can be removed before size is checked: ignoreWhiteSpaces (true/false, default false) ignoreMinus (true/false, default false) ignoreSlashes (true/false, default false)TaxNumber The annotated bean must contain two properties: country code (optionfieldCountryCode) tax number (optionfieldTaxNumber) The Tax Number is checked against country specific rules for validity.Tin The annotated bean must contain two properties: country code (optionfieldCountryCode) tin (optionfieldTin) The Tax Identification Number (TIN) is checked against country specific rules for validity.Url The annotated element must be a valid url.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are format tests, domain validity tests, and size checks by apache commons validation routines.VatId The annotated bean must contain two properties: country code (optionfieldCountryCode) vat id (optionfieldVatId) The vat id is checked against country specific rules for validity. -
Classes in de.knightsoftnet.validators.shared used by de.knightsoftnet.validators.shared.impl Class Description AgeLimitCheck The annotated Date must beminYearsor more in the past.
Supported types are Dates,nullelements are considered valid.AlternateSize The annotated element size must be exactly match size1 or size2.
Supported types are Stringsnullelements are considered valid.
With the following options separator characters can be removed before size is checked: ignoreWhiteSpaces (true/false, default false) ignoreMinus (true/false, default false) ignoreSlashes (true/false, default false)BankCountry The annotated bean must contain three properties: country code (optionfieldCountryCode) iban (optionfieldIban) bic (optionfieldBic) The country codes of iban and bic are checked against the country code for validity.
Supported types are beans,nullelements are considered valid.
IfallowLowerCaseCountryCodeis set to true, lower case country codes are accepted.Bic The annotated element must be a valid BIC (Business Identifier Code in the past also known as Bank Identifier Code).
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
IfignoreWhiteSpacesis set totrue, whitespaces are removed before test is done.
It's a formal test, against format definition, size and SWIFT country list.
There is no test of validity of the BIC!BicValue The annotated element must be a valid BIC (Business Identifier Code in the past also known as Bank Identifier Code).
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
IfignoreWhiteSpacesis set totrue, whitespaces are removed before test is done.
It's a formal test, against format definition, size and SWIFT country list.
There is no test of validity of the BIC!CreditCardNumber The annotated element must be a valid credit card number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are format, size and LUN checksum tests by apache commons validation routines.
There are no tests for credit card validity!Email The annotated element must be a valid eMail.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are format tests, domain validity tests, and size checks by apache commons validation routines.EmailMustHaveSameDomain The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the eMail entry offield1must have the same domain as the eMail entry offield2.
Supported types are beans,nullelements are considered valid.EmptyIfOtherHasValue The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared against a value (optionfieldCompareandvalueCompare) if the entry offieldComparematchesvalueCompare,fieldmust be empty (null or "").
Supported types are beans,nullelements are considered valid.EmptyIfOtherIsEmpty The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis empty (null or ""),fieldmust be also empty (null or "").
Supported types are beans,nullelements are considered valid.EmptyIfOtherIsNotEmpty The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis not empty (null or ""),fieldmust be empty (null or "").
Supported types are beans,nullelements are considered valid.Gln The annotated element must be a valid Global Location Number (until 2009 known as International Location Number).
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.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.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.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.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.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.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.Iban The annotated element must be a valid International Bank Account Number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.IbanFormated The annotated element must be a valid International Bank Account Number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn The annotated element must be a valid International Standard Book Number in the long (13 digits) or short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn10 The annotated element must be a valid International Standard Book Number in the short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn10Formated The annotated element must be a valid International Standard Book Number in the short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn13 The annotated element must be a valid International Standard Book Number in the long (13 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isbn13Formated The annotated element must be a valid International Standard Book Number in the long (13 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.IsbnFormated The annotated element must be a valid International Standard Book Number in the long (13 digits) or short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.Isin The annotated element must be a valid International Securities Identification Number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are format, size, SEPA country and checksum tests by apache commons validation routines.LevenshteinDistance The annotated bean must contain exact three properties: a field that has to be checked (optionfield1) a field which entry is compared (optionfield2) the minimum levenshtein distance both field entries must have (optionminDistance) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) The Levenshtein distance between the entry offieldCompareandfieldis calculated, it must be equal or greater then the value of minDistance. not be empty (null or "").LimitCharset The annotated element must contain only characters which are allowed in the given charset.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
Thecharsetmust be given as parameter.MustBeBigger The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default false) the entry offield1must be bigger then entry offield2, can be used e.g. for date or number "from"/"to" fields.
Supported types are beans,nullelements are considered valid.
The fields must implement Comparable!MustBeBiggerOrEqual The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default false) the entry offield1must be bigger or equal then entry offield2, can be used e.g. for date or number "from"/"to" fields.
Supported types are beans,nullelements are considered valid.
The fields must implement Comparable!MustBeEqual The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the entry offield1must be equal to the entry offield2, can be used e.g. for password and password repeat fields.
Supported types are beans,nullelements are considered valid.MustBeEqualIfOtherHasValue The annotated bean must contain at least four properties: a field to compare (optionfield1) another field to compared (optionfield2) a field which entry is compared against a value (optionfieldCompareandvalueCompare) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the entry offield1must be equal to the entry offield2when the entry offieldComparehas the valuevalueCompare, can be used e.g. for password and password repeat fields.
Supported types are beans,nullelements are considered valid.MustBeSmaller The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default false) the entry offield1must be smaller then entry offield2, can be used e.g. for date or number "from"/"to" fields.
Supported types are beans,nullelements are considered valid.
The fields must implement Comparable!MustBeSmallerOrEqual The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default false) the entry offield1must be smaller or equal then entry offield2, can be used e.g. for date or number "from"/"to" fields.
Supported types are beans,nullelements are considered valid.
The fields must implement Comparable!MustNotBeEqual The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the entry offield1must not be equal to the entry offield2, can be used e.g. for password old and password new fields.
Supported types are beans,nullelements are considered valid.MustNotBeEqualIfOtherHasValue The annotated bean must contain at least two properties: a field to compare (optionfield1) another field to compared (optionfield2) a field which entry is compared against a value (optionfieldCompareandvalueCompare) add the error to field1 (optionaddErrorToField1, default true) add the error to field2 (optionaddErrorToField2, default true) the entry offield1must not be equal to the entry offield2when the entry offieldComparehas the valuevalueCompare, can be used e.g. for password old and password new fields.
Supported types are beans,nullelements are considered valid.NotEmptyAfterStrip The annotated element must not be null or empty after strip.NotEmptyAlternateIfOtherHasValue The annotated bean must contain at least three properties: a field that has to be checked (optionfield) a field that has alternate to be checked (optionfieldAlternate) a field which entry is compared against a value (optionfieldCompareandvalueCompare) if the entry offieldComparematchesvalueCompare,fieldor alternatefieldAlternatemust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyAlternateIfOtherIsEmpty The annotated bean must contain at least three properties: a field that has to be checked (optionfield) a field that has alternate to be checked (optionfieldAlternate) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis empty (null or ""),fieldor alternatefieldAlternatemust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyAlternateIfOtherIsNotEmpty The annotated bean must contain at least three properties: a field that has to be checked (optionfield) a field that has alternate to be checked (optionfieldAlternate) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis not empty (null or ""),fieldor alternatefieldAlternatemust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyIfOtherHasValue The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared against a value (optionfieldCompareandvalueCompare) if the entry offieldComparematchesvalueCompare,fieldmust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyIfOtherIsEmpty The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis empty (null or ""),fieldmust not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyIfOtherIsNotEmpty The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a field which entry is compared (optionfieldCompare) if the entry offieldCompareis not empty (null or ""),fieldmust also not be empty (null or "").
Supported types are beans,nullelements are considered valid.NotEmptyIfOthersHaveValue The annotated bean must contain at least two properties: a field that has to be checked (optionfield) a array of fields and entries to be compared (optionotherFieldValueMapping) if the entries ofotherFieldValueMapping.fieldComparematches one of the corresponding entries inotherFieldValueMapping.valueCompare(array of possible values),fieldmust not be empty (null or "").
Supported types are beans,nullelements are considered valid.Password The annotated element must be a valid password.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are the following rules checked (withminRulesparameter the number rules can be defined that have to be fulfilled): lowercase upercase digits special character Usingblacklistyou can give a comma separated list of words which are not allowed to be part of the password.PhoneNumber The annotated element must be a valid phone number format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.PhoneNumberValue The annotated element must be a valid phone number format.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.PostalCode The annotated bean must contain two properties: country code (optionfieldCountryCode) postal code/zip (optionfieldPostalCode) The postal code is checked against country specific rules for validity.
Supported types are beans,nullelements are considered valid.
IfallowLowerCaseCountryCodeis set to true, lower case country codes are accepted.RegularExpression The annotated element must be a valid regular expression.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.SizeWithoutSeparators The annotated element size must be between the specified boundaries (included).
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
With the following options separator characters can be removed before size is checked: ignoreWhiteSpaces (true/false, default false) ignoreMinus (true/false, default false) ignoreSlashes (true/false, default false)TaxNumber The annotated bean must contain two properties: country code (optionfieldCountryCode) tax number (optionfieldTaxNumber) The Tax Number is checked against country specific rules for validity.Tin The annotated bean must contain two properties: country code (optionfieldCountryCode) tin (optionfieldTin) The Tax Identification Number (TIN) is checked against country specific rules for validity.Url The annotated element must be a valid url.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid.
There are format tests, domain validity tests, and size checks by apache commons validation routines.VatId The annotated bean must contain two properties: country code (optionfieldCountryCode) vat id (optionfieldVatId) The vat id is checked against country specific rules for validity.