Annotation Interface ConditionalNotEmpty
@Constraint(validatedBy=ConditionalNotEmptyValidator.class)
@Documented
@Retention(RUNTIME)
@Target(TYPE)
public @interface ConditionalNotEmpty
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Support for multipleConditionalNotEmpty
annotations on the same type -
Optional Element Summary
-
Element Details
-
message
String message- Default:
- ""
-
groups
Class<?>[] groups- Default:
- {}
-
payload
Class<? extends javax.validation.Payload>[] payload- Default:
- {}
-
fields
String[] fields- Returns:
- fields to test for non-emptiness
- Default:
- {}
-
targetField
String targetField- Returns:
- field on which the violation will be reported
- Default:
- ""
-