@Documented @Constraint(validatedBy=NotEmptyIfOtherIsEmptyValidator.class) @Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) public @interface NotEmptyIfOtherIsEmpty
field)fieldCompare)fieldCompare is empty (null or ""), field must not be
empty (null or "").null elements are considered valid.| Modifier and Type | Required Element and Description |
|---|---|
String |
field
field name to check.
|
String |
fieldCompare
field name to compare.
|
public abstract String field
public abstract String fieldCompare
public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2015–2016. All rights reserved.