-
@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.- Author:
- nedis
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowsSpacesbooleanoffAllows to disable validation rule if validation inherited from super class.booleanwithoutPlus
-