-
@Documented @Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) @ConstraintRule(supportedTypes=java.lang.String.class, validatorClass=PhoneConstraintValidator.class) @SelfDocumented @ReadMore(caption="What is phone number format?", link="https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers") public @interface Phone
The annotated element must be a valid phone number.- Since:
- 0.1
- Author:
- nedis
- See Also:
Viber,Telegram,WhatsApp,PhoneConstraintValidator
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowsSpacesReturnstrueif phone number can contain space characters.booleanoffAllows disabling the validation rule if this rule is inherited from super class.booleanwithoutPlusReturnstrueif phone number must not start with plus character.
-