-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) @ConstraintRule(supportedTypes=java.lang.String.class, validatorClass=CountryCodeConstraintValidator.class) @SelfDocumented public @interface CountryCode
The annotated element must be a valid country code.- Since:
- 0.1
- Author:
- nedis
- See Also:
CountryCodeConstraintValidator
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description CountryCode.FormatformatReturn the country codeCountryCode.Format.booleanoffAllows disabling the validation rule if this rule is inherited from super class.
-
-
-
-
format
CountryCode.Format format
Return the country codeCountryCode.Format.- Returns:
- the country code
CountryCode.Format
- Default:
- io.rxmicro.validation.constraint.CountryCode.Format.ISO_3166_1_ALPHA_2
-
-