@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD,ANNOTATION_TYPE}) @EachConstraint(validateAs=org.hibernate.validator.constraints.ScriptAssert.class) @Constraint(validatedBy=CommonEachValidator.class) public @interface EachScriptAssert
ScriptAssert,
CommonEachValidatorpublic abstract String lang
ScriptEngineManager. A
ConstraintDeclarationException will be thrown upon script
evaluation, if no engine for the given language could be found.public abstract String script
Boolean.TRUE, if the annotated element could
successfully be validated, otherwise Boolean.FALSE.
Returning null or any type other than Boolean will cause a
ConstraintDeclarationException upon validation. Any
exception occurring during script evaluation will be wrapped into
a ConstraintDeclarationException, too. Within the script, the
validated object can be accessed from the script context using the name specified in the
alias attribute.public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
public abstract String alias
public abstract String reportOn
Copyright © 2013–2017. All rights reserved.