org.dellroad.stuff.validation
Annotation Type SelfValidates
@Documented
@Constraint(validatedBy=SelfValidatingValidator.class)
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface SelfValidates
Validation constraint that when applied to classes that implement the SelfValidating interface
allows custom validation by the class itself via SelfValidating.checkValid().
message
public abstract String message
- Default:
- "{org.dellroad.stuff.validation.SelfValidates.message}"
groups
public abstract Class<?>[] groups
- Default:
- {}
payload
public abstract Class<? extends Payload>[] payload
- Default:
- {}