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