-
Interface Summary Interface Description BootstrapConfiguration Represents the user specified default configuration inMETA-INF/validation.xml
.Configuration<T extends Configuration<T>> Receives configuration information, selects the appropriate Bean Validation provider and builds the appropriateValidatorFactory
.ConstraintValidator<A extends Annotation,T> Defines the logic to validate a given constraintA
for a given object typeT
.ConstraintValidatorContext Provides contextual data and operation when applying a given constraint validator.ConstraintValidatorContext.ConstraintViolationBuilder ConstraintViolation
builder allowing to optionally associate the violation report to a sub path.ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderCustomizableContext Represents a node whose context is configurable (i.e.ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext Represents a node whose context is known (i.e.ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeContextBuilder Represents refinement choices for a node which is in anIterator
orMap
.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext Represents a node whose context is configurable (i.e.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext Represents a node whose context is known (i.e.ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder Represents refinement choices for a node which is in anIterator
orMap
.ConstraintValidatorFactory Instantiates aConstraintValidator
instance based off its class.ConstraintViolation<T> Describes a constraint violation.MessageInterpolator Interpolates a given constraint violation message.MessageInterpolator.Context Information related to the interpolation context.ParameterNameProvider Provides names for method and constructor parameters.Path Represents the navigation path from an object to another in an object graph.Path.BeanNode Node representing a bean.Path.ConstructorNode Node representing a constructor.Path.CrossParameterNode Node representing the element holding cross-parameter constraints of a method or constructor.Path.MethodNode Node representing a method.Path.Node Represents an element of a navigation path.Path.ParameterNode Node representing a parameter of a method or constructor.Path.PropertyNode Node representing a property.Path.ReturnValueNode Node representing the return value of a method or constructor.Payload Payload type that can be attached to a given constraint declaration.TraversableResolver Contract determining if a property can be accessed by the Bean Validation provider.ValidationProviderResolver Determines the list of Bean Validation providers available in the runtime environment Bean Validation providers are identified by the presence ofMETA-INF/services/javax.validation.spi.ValidationProvider
files following the Service Provider pattern described here.Validator Validates bean instances.ValidatorContext Represents the context that is used to createValidator
instances.ValidatorFactory Factory returning initializedValidator
instances. -
Class Summary Class Description Validation This class is the entry point for Bean Validation. -
Enum Summary Enum Description ConstraintTarget Defines the constraint target.ElementKind Enum of possible kinds of elements encountered in Bean Validation. -
Exception Summary Exception Description ConstraintDeclarationException Exception raised if a constraint declaration is not legal.ConstraintDefinitionException Exception raised if a constraint definition is not legal.ConstraintViolationException Reports the result of constraint violations.GroupDefinitionException Exception raised if a group definition is not legal.UnexpectedTypeException Exception raised in the case that the constraint validator resolution cannot determine a suitable validator for a given type.ValidationException Base exception of all Bean Validation "unexpected" problems. -
Annotation Types Summary Annotation Type Description Constraint Marks an annotation as being a Bean Validation constraint.GroupSequence Defines group sequence.OverridesAttribute Marks an attribute as overriding the attribute of a composing constraint.OverridesAttribute.List Defines severalOverridesAttribute
annotations on the same elementReportAsSingleViolation A constraint annotation hosting this annotation will return the composed annotation error report if any of the composing annotations fail.Valid Marks a property, method parameter or method return type for validation cascading.
Package javax.validation Description
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
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/validation/package-summary.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.