Annotation Type Tin
-
@Documented @Constraint(validatedBy=TinValidator.class) @Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface Tin
The annotated bean must contain two properties:- country code (option
fieldCountryCode) - tin (option
fieldTin)
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.StringfieldTinfield 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.Tin.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"
-
-
-
fieldTin
String fieldTin
field name of the vat id field.- Returns:
- field/path contains tin
- Default:
- "tin"
-
-