Package org.apache.bval.constraints
Annotation Type CompanyEmail
-
@Pattern(regexp="[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}") @Pattern(regexp=".*?COMPANY.*?") @Constraint(validatedBy={}) @Documented @Target({ANNOTATION_TYPE,METHOD,FIELD,CONSTRUCTOR,PARAMETER}) @Retention(RUNTIME) public @interface CompanyEmail
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
agimatecMessage
String
emailMessage
Class<?>[]
groups
String
message
Class<? extends jakarta.validation.Payload>[]
payload
-
-
-
Element Detail
-
message
String message
- Default:
- "Not an email of COMPANY"
-
-
-
emailMessage
@OverridesAttribute(constraint=jakarta.validation.constraints.Pattern.class, name="message", constraintIndex=0) String emailMessage
- Default:
- "Not an email"
-
-
-
agimatecMessage
@OverridesAttribute(constraint=jakarta.validation.constraints.Pattern.class, name="message", constraintIndex=1) String agimatecMessage
- Default:
- "Not COMPANY"
-
-
-
groups
Class<?>[] groups
- Default:
- {}
-
-
-
payload
Class<? extends jakarta.validation.Payload>[] payload
- Default:
- {}
-
-