Package javax.validation
package javax.validation
Top level package of the Bean Validation API.
The main runtime artifacts are:
Validation
: the entry point to bootstrap Bean ValidationValidatorFactory
: the bootstrapped Bean Validation engineValidator
: contract to validate beans and access the metadataConstraintViolation
: constraint violation report
Constraint
: annotation marking an annotation as being a constraintConstraintValidator
: interface implemented by the piece of code validating a given constraintReportAsSingleViolation
: marks a composed constraint as returning a single constraint violation report
Valid
: annotation marking an association as cascaded during validationGroupSequence
: defines a sequence of groups that should be validated sequentially
-
ClassDescriptionRepresents the user specified default configuration in
META-INF/validation.xml
.Contract for obtaining theClock
used as the reference fornow
when validating the@Future
and@Past
constraints.Configuration<T extends Configuration<T>>Receives configuration information, selects the appropriate Bean Validation provider and builds the appropriateValidatorFactory
.Marks an annotation as being a Bean Validation constraint.Exception raised if a constraint declaration is not legal.Exception raised if a constraint definition is not legal.Defines the constraint target.Defines the logic to validate a given constraintA
for a given object typeT
.Provides contextual data and operation when applying a given constraint validator.ConstraintViolation
builder allowing to optionally associate the violation report to a sub path.ConstraintValidatorContext.ConstraintViolationBuilder.ContainerElementNodeBuilderCustomizableContextRepresents a container element node whose context is configurable (i.e.Represents a container element node whose context is known (i.e.Represents refinement choices for a container element node.Represents a node whose context is configurable (i.e.Represents a node whose context is known (i.e.Represents refinement choices for a node which is in an iterable, e.g.Represents a node whose context is configurable (i.e.Represents a node whose context is known (i.e.Represents refinement choices for a node which is in an iterable, e.g.Instantiates aConstraintValidator
instance based off its class.Describes a constraint violation.Reports the result of constraint violations.Enum of possible kinds of elements encountered in Bean Validation.Exception raised if a group definition is not legal.Defines group sequence.Interpolates a given constraint violation message.Information related to the interpolation context.Exception raised if no Bean Validation provider could be found.Marks an attribute as overriding the attribute of a composing constraint.Defines severalOverridesAttribute
annotations on the same elementProvides names for method and constructor parameters.Represents the navigation path from an object to another in an object graph.Node representing a bean.Node representing a constructor.Node representing an element in a generic container such asOptional
,List
orMap
.Node representing the element holding cross-parameter constraints of a method or constructor.Node representing a method.Represents an element of a navigation path.Node representing a parameter of a method or constructor.Node representing a property.Node representing the return value of a method or constructor.Payload type that can be attached to a given constraint declaration.A constraint annotation hosting this annotation will return the composed annotation error report if any of the composing annotations fail.Contract determining if a property can be accessed by the Bean Validation provider.Exception raised in the case that the constraint validator resolution cannot determine a suitable validator for a given type.Marks a property, method parameter or method return type for validation cascading.This class is the entry point for Bean Validation.Base exception of all Bean Validation "unexpected" problems.Determines the list of Bean Validation providers available in the runtime environmentValidates bean instances.Represents the context that is used to createValidator
instances.Factory returning initializedValidator
instances.