org.dellroad.stuff.validation
Interface SelfValidating


public interface SelfValidating

Implemented by classes that can validate themselves. Such classes should be annotated with the @SelfValidates constraint.

See Also:
SelfValidates

Method Summary
 void checkValid(ConstraintValidatorContext context)
          Validate this instance.
 

Method Detail

checkValid

void checkValid(ConstraintValidatorContext context)
                throws SelfValidationException
Validate this instance.

Throws:
SelfValidationException - to indicate this instance is invalid