@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD,TYPE}) @Constraint(validatedBy=SpELAssertValidator.class) public @interface SpELAssert
| Modifier and Type | Required Element and Description |
|---|---|
String |
value
Validation expression in SpEL.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
applyIf
Perform validation only if this SpEL expression evaluates to true.
|
Class<?>[] |
groups |
Class<?>[] |
helpers
Classes with static methods to register as helper functions which you
can call from expression as #methodName(arg1, arg2, ...).
|
String |
message |
Class<? extends javax.validation.Payload>[] |
payload |
public abstract String value
public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
public abstract String applyIf
public abstract Class<?>[] helpers
Copyright © 2013–2015. All rights reserved.