@PhoneNumber
Meta-annotation for an optional String property or parameter representing a phone number.
API
PhoneNumber.java
@interface PhoneNumber {
int MAX_LENGTH;
String REGEX_PATTERN;
String REGEX_PATTERN_REPLACEMENT;
@AliasFor(annotation = Property.class, attribute = "maxLength")
int propertyMaxLength() default MAX_LENGTH;
@AliasFor(annotation = Parameter.class, attribute = "maxLength")
int parameterMaxLength() default MAX_LENGTH;
@AliasFor(annotation = Property.class, attribute = "optionality")
Optionality propertyOptionality() default Optionality.OPTIONAL;
@AliasFor(annotation = Parameter.class, attribute = "optionality")
Optionality parameterOptionality() default Optionality.OPTIONAL;
@AliasFor(annotation = Property.class, attribute = "regexPattern")
String propertyRegexPattern() default REGEX_PATTERN;
@AliasFor(annotation = Parameter.class, attribute = "regexPattern")
String parameterRegexPattern() default REGEX_PATTERN;
@AliasFor(annotation = Property.class, attribute = "regexPatternReplacement")
String propertyRegexPatternReplacement() default REGEX_PATTERN_REPLACEMENT;
@AliasFor(annotation = Parameter.class, attribute = "regexPatternReplacement")
String parameterRegexPatternReplacement() default REGEX_PATTERN_REPLACEMENT;
@AliasFor(annotation = javax.jdo.annotations.Column.class, attribute = "allowsNull")
String columnAllowsNull() default "true";
@AliasFor(annotation = javax.jdo.annotations.Column.class, attribute = "length")
int columnLength() default MAX_LENGTH;
}