@Documented @Constraint(validatedBy=AlternateSizeValidator.class) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) public @interface AlternateSize
null elements are considered valid.| Modifier and Type | Required Element and Description |
|---|---|
int |
size1
first possible size.
|
int |
size2
second possible size.
|
| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
groups
groups to use.
|
boolean |
ignoreMinus
true if minus should be ignored.
|
boolean |
ignoreSlashes
true if slashes should be ignored.
|
boolean |
ignoreWhiteSpaces
true if whitespaces should be ignored.
|
String |
message
localized message.
|
Class<? extends javax.validation.Payload>[] |
payload
payload whatever.
|
public abstract String message
public abstract Class<?>[] groups
public abstract boolean ignoreWhiteSpaces
public abstract boolean ignoreSlashes
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2015–2016. All rights reserved.