Package org.dellroad.stuff.validation

Classes related to JSR-303 validation.

See:
          Description

Interface Summary
SelfValidating Implemented by classes that can validate themselves.
 

Class Summary
AbstractValidator<C extends Annotation,T> Support superclass for validators.
PatternValidator Validator for the @Pattern constraint.
SelfValidatingValidator Implements the validation logic for the @SelfValidates annotation.
SortedValidator Validator for the @Sorted constraint.
ValidationContext<T> Provides additional context for ConstraintValidator implementations.
 

Exception Summary
SelfValidationException Exception that can be thrown by SelfValidating.checkValid(javax.validation.ConstraintValidatorContext).
 

Annotation Types Summary
EmailAddress Validation constraint requiring a String to be a valid email address.
Hostname Validation constraint requiring a String to be a valid DNS hostname (or hostname component).
HostOrIP Validation constraint requiring a String to be either a valid fully-qualified DNS hostname or an IPv4 address.
Pattern Works like the standard @Pattern but applies to any type of object, converting to String as necessary via Object.toString(), and recursing on collection types.
SelfValidates Validation constraint that when applied to classes that implement the SelfValidating interface allows custom validation by the class itself via SelfValidating.checkValid().
Sorted Validation constraint that checks elements are sorted.
 

Package org.dellroad.stuff.validation Description

Classes related to JSR-303 validation.

See Also:
javax.validation