@Target(value={TYPE,FIELD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @ConstraintComposition(value=AND) @Repeatable(value=ScriptCheck.List.class) @Constraint(validatedBy=ScriptCheckValidator.class) @ReportAsSingleViolation public @interface ScriptCheck
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 lang
public abstract String reportOn
Copyright © 2023. All rights reserved.