Annotation Interface NotInEnum
@Documented
@Constraint(validatedBy=NotInEnumValidator.class)
@Target({FIELD,METHOD,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
public @interface NotInEnum
Constraint that validates that a String value is not in the specified enum's constant names.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
caseSensitive
boolean caseSensitive- Returns:
- Whether the comparison is case-sensitive.
- Default:
true
-
message
-
groups
-
payload
-