@Documented @Constraint(validatedBy=NotEmptyAlternateIfOtherHasValueValidator.class) @Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) public @interface NotEmptyAlternateIfOtherHasValue
field)fieldAlternate)fieldCompare and
valueCompare)fieldCompare matches valueCompare, field
or alternate fieldAlternate 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 |
fieldAlternate
alternate field name to check.
|
String |
fieldCompare
field name to compare.
|
String |
valueCompare
value the compare field must have to check.
|
public abstract String field
public abstract String fieldAlternate
public abstract String fieldCompare
public abstract String valueCompare
public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2015–2016. All rights reserved.