Package org.dellroad.stuff.validation
package org.dellroad.stuff.validation
Classes related to JSR-303 validation.
-
ClassDescriptionSupport superclass for validators.Default uniquifier for
@Uniqueconstraints.Validation constraint requiring aStringto be a valid DNS hostname (or hostname component).Validation constraint requiring aStringto be either a valid fully-qualified DNS hostname or an IPv4 address.Works like the standard@Patternbut applies to any type of object, converting toStringas necessary viaObject.toString(), and recursing on collection types.Validator for the @Patternconstraint.Validation constraint that when applied to classes that implement theSelfValidatinginterface allows custom validation by the class itself viaSelfValidating.checkValid().Implemented by classes that can validate themselves.Implements the validation logic for the@SelfValidatesannotation.Exception that can be thrown bySelfValidating.checkValid(jakarta.validation.ConstraintValidatorContext).Validation constraint that checks elements are sorted.Validator for the @Sortedconstraint.Validation constraint that checks for the uniqueness of the constrained property's value over some uniqueness domain.Validator for the@Uniqueconstraint.Uniquifier<T>Converts values into some other object that has the desired uniqueness.Provides additional context forConstraintValidatorimplementations.Validation utility methods.