Meta-annotation for an optional String property or parameter representing an email address.
API
Email.java
@interface Email {
int MAX_LENGTH; (1)
String REGEX_PATTERN; (2)
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;
}
1 | MAX_LENGTH
Seemaximum length of an email address. |
2 | REGEX_PATTERN
as per http://emailregex.com/ |
Members
REGEX_PATTERN
as per http://emailregex.com/