Annotation Type VatId
-
@Documented @Constraint(validatedBy=VatIdValidator.class) @Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface VatId
The annotated bean must contain two properties:- country code (option
fieldCountryCode) - vat id (option
fieldVatId)
Supported types are beans,nullelements are considered valid.
IfallowLowerCaseCountryCodeis set to true, lower case country codes are accepted.- Author:
- Manfred Tremmel
- country code (option
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowLowerCaseCountryCodeare lower case country codes allowed (true/false).StringfieldCountryCodefield name of the country code field.StringfieldVatIdfield name of the vat id field.Class<?>[]groupsgroups to use.Stringmessagelocalized message.Class<? extends javax.validation.Payload>[]payloadpayload whatever.
-
-
-
Element Detail
-
message
String message
localized message.- Returns:
- localized validation message
- Default:
- "{de.knightsoftnet.validators.shared.VatId.message}"
-
-
-
groups
Class<?>[] groups
groups to use.- Returns:
- array of validation groups
- Default:
- {}
-
-
-
payload
Class<? extends javax.validation.Payload>[] payload
payload whatever.- Returns:
- payload class
- Default:
- {}
-
-
-
fieldCountryCode
String fieldCountryCode
field name of the country code field.- Returns:
- field/path contains country code
- Default:
- "countryCode"
-
-
-
fieldVatId
String fieldVatId
field name of the vat id field.- Returns:
- field/path contains vat id
- Default:
- "vatId"
-
-