- addConstraintViolation() - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder
-
Add the new ConstraintViolation
to be generated if the
constraint validator marks the value as invalid.
- addConstraintViolation() - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext
-
Add the new ConstraintViolation
to be generated if the
constraint validator mark the value as invalid.
- addConstraintViolation() - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext
-
Add the new ConstraintViolation
to be generated if the
constraint validator marks the value as invalid.
- addConstraintViolation() - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder
-
Add the new ConstraintViolation
to be generated if the
constraint validator mark the value as invalid.
- addMapping(InputStream) - Method in interface javax.validation.Configuration
-
Add a stream describing constraint mapping in the Bean Validation
XML format.
- addNode(String) - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder
-
Add a node to the path the ConstraintViolation
will be associated to.
- addNode(String) - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext
-
Add a node to the path the ConstraintViolation
will be associated to.
- addNode(String) - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext
-
Add a node to the path the ConstraintViolation
will be associated to.
- addNode(String) - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder
-
Add a node to the path the ConstraintViolation
will be associated to.
- addProperty(String, String) - Method in interface javax.validation.Configuration
-
Add a provider specific property.
- AssertFalse - Annotation Type in javax.validation.constraints
-
The annotated element must be false.
- AssertFalse.List - Annotation Type in javax.validation.constraints
-
Defines several @AssertFalse
annotations on the same element
- AssertTrue - Annotation Type in javax.validation.constraints
-
The annotated element must be true.
- AssertTrue.List - Annotation Type in javax.validation.constraints
-
Defines several @AssertTrue
annotations on the same element
- atIndex(Integer) - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder
-
Define the index the object is into the List
or array
- atKey(Object) - Method in interface javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder
-
Define the key the object is into the Map
- Configuration<T extends Configuration<T>> - Interface in javax.validation
-
Receives configuration information, selects the appropriate
Bean Validation provider and builds the appropriate ValidatorFactory
.
- ConfigurationState - Interface in javax.validation.spi
-
Contract between a Configuration
and a
ValidatorProvider to create a ValidatorFactory
.
- configure() - Method in interface javax.validation.bootstrap.GenericBootstrap
-
Returns a generic Configuration
implementation.
- configure() - Method in interface javax.validation.bootstrap.ProviderSpecificBootstrap
-
Determines the provider implementation suitable for T
and delegates
the creation of this specific Configuration
subclass to the provider.
- Constraint - Annotation Type in javax.validation
-
Link between a constraint annotation and its constraint validation implementations.
- ConstraintDeclarationException - Exception in javax.validation
-
Exception raised if a constraint declaration is not legal
- ConstraintDeclarationException(String) - Constructor for exception javax.validation.ConstraintDeclarationException
-
- ConstraintDeclarationException() - Constructor for exception javax.validation.ConstraintDeclarationException
-
- ConstraintDeclarationException(String, Throwable) - Constructor for exception javax.validation.ConstraintDeclarationException
-
- ConstraintDeclarationException(Throwable) - Constructor for exception javax.validation.ConstraintDeclarationException
-
- ConstraintDefinitionException - Exception in javax.validation
-
Exception raised if a constraint definition is not legal
- ConstraintDefinitionException(String) - Constructor for exception javax.validation.ConstraintDefinitionException
-
- ConstraintDefinitionException() - Constructor for exception javax.validation.ConstraintDefinitionException
-
- ConstraintDefinitionException(String, Throwable) - Constructor for exception javax.validation.ConstraintDefinitionException
-
- ConstraintDefinitionException(Throwable) - Constructor for exception javax.validation.ConstraintDefinitionException
-
- ConstraintDescriptor<T extends Annotation> - Interface in javax.validation.metadata
-
Describes a single constraint and its composing constraints.
- ConstraintValidator<A extends Annotation,T> - Interface in javax.validation
-
Defines the logic to validate a given constraint A
for a given object type T.
- ConstraintValidatorContext - Interface in javax.validation
-
Provide contextual data and operation when applying a given constraint validator.
- ConstraintValidatorContext.ConstraintViolationBuilder - Interface in javax.validation
-
ConstraintViolation
builder allowing to optionally associate
the violation report to a sub path.
- ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext - Interface in javax.validation
-
Represent a node whose context is
configurable (ie index, key and isInIterable)
- ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext - Interface in javax.validation
-
Represent a node whose context is known
(ie index, key and isInIterable)
- ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder - Interface in javax.validation
-
Represent refinement choices for a node which is
in an Iterator or Map
.
- constraintValidatorFactory(ConstraintValidatorFactory) - Method in interface javax.validation.Configuration
-
Defines the constraint validator factory.
- ConstraintValidatorFactory - Interface in javax.validation
-
Instantiate a ConstraintValidator
instance based off its class.
- constraintValidatorFactory(ConstraintValidatorFactory) - Method in interface javax.validation.ValidatorContext
-
Defines the constraint validator factory implementation used by the
Validator
.
- ConstraintViolation<T> - Interface in javax.validation
-
Describe a constraint violation.
- ConstraintViolationException - Exception in javax.validation
-
Reports the result of constraint violations
`
- ConstraintViolationException(String, Set<ConstraintViolation<?>>) - Constructor for exception javax.validation.ConstraintViolationException
-
Creates a constraint violation report
- ConstraintViolationException(Set<ConstraintViolation<?>>) - Constructor for exception javax.validation.ConstraintViolationException
-
Creates a constraint violation report
- createGenericConfiguration(BootstrapState) - Method in interface javax.validation.spi.ValidationProvider
-
Returns a Configuration
instance.
- createSpecializedConfiguration(BootstrapState) - Method in interface javax.validation.spi.ValidationProvider
-
Returns a Configuration
instance implementing T
,
the Configuration
subinterface.
- GenericBootstrap - Interface in javax.validation.bootstrap
-
Defines the state used to bootstrap Bean Validation and
creates a provider agnostic Configuration
.
- getAnnotation() - Method in interface javax.validation.metadata.ConstraintDescriptor
-
Returns the annotation describing the constraint declaration.
- getAttributes() - Method in interface javax.validation.metadata.ConstraintDescriptor
-
Returns a map containing the annotation attribute names as keys and the
annotation attribute values as value.
- getComposingConstraints() - Method in interface javax.validation.metadata.ConstraintDescriptor
-
Return a set of composing ConstraintDescriptor
s where each
descriptor describes a composing constraint.
- getConstrainedProperties() - Method in interface javax.validation.metadata.BeanDescriptor
-
Returns a set of property descriptors having at least one constraint defined
or marked as cascaded (@Valid).
- getConstraintDescriptor() - Method in interface javax.validation.ConstraintViolation
-
Constraint metadata reported to fail.
- getConstraintDescriptor() - Method in interface javax.validation.MessageInterpolator.Context
-
- getConstraintDescriptors() - Method in interface javax.validation.metadata.ElementDescriptor.ConstraintFinder
-
Retrieve the constraint descriptors following the defined
restrictions and hosted on the element described by
ElementDescriptor
- getConstraintDescriptors() - Method in interface javax.validation.metadata.ElementDescriptor
-
Return all constraint descriptors for this element in the class hierarchy
or an empty Set
if none are present.
- getConstraintsForClass(Class<?>) - Method in interface javax.validation.Validator
-
Return the descriptor object describing bean constraints.
- getConstraintsForProperty(String) - Method in interface javax.validation.metadata.BeanDescriptor
-
Return the property descriptor for a given property.
- getConstraintValidatorClasses() - Method in interface javax.validation.metadata.ConstraintDescriptor
-
List of the constraint validation implementation classes.
- getConstraintValidatorFactory() - Method in interface javax.validation.spi.ConfigurationState
-
Returns the constraint validator factory of this configuration.
- getConstraintValidatorFactory() - Method in interface javax.validation.ValidatorFactory
-
Returns the ConstraintValidatorFactory
instance
configured at initialization time for the
ValidatorFactory.
- getConstraintViolations() - Method in exception javax.validation.ConstraintViolationException
-
Set of constraint violations reported during a validation
- getDefaultConstraintMessageTemplate() - Method in interface javax.validation.ConstraintValidatorContext
-
- getDefaultConstraintValidatorFactory() - Method in interface javax.validation.Configuration
-
Return an implementation of the ConstraintValidatorFactory
interface
following the default ConstraintValidatorFactory
defined in the
specification:
uses the public no-arg constructor of the ConstraintValidator
- getDefaultMessageInterpolator() - Method in interface javax.validation.Configuration
-
Return an implementation of the MessageInterpolator
interface
following the default MessageInterpolator
defined in the
specification:
use the ValidationMessages resource bundle to load keys
use Locale.getDefault()
- getDefaultTraversableResolver() - Method in interface javax.validation.Configuration
-
Return an implementation of the TraversableResolver
interface
following the default TraversableResolver
defined in the
specification:
if Java Persistence is available in the runtime environment,
a property is considered reachable if Java Persistence considers
the property as loaded
if Java Persistence is not available in the runtime environment,
all properties are considered reachable
all properties are considered cascadable.
- getDefaultValidationProviderResolver() - Method in interface javax.validation.spi.BootstrapState
-
Specification default ValidationProviderResolver
strategy instance.
- getElementClass() - Method in interface javax.validation.metadata.ElementDescriptor
-
- getGroups() - Method in interface javax.validation.metadata.ConstraintDescriptor
-
The set of groups the constraint is applied on.
- getIndex() - Method in interface javax.validation.Path.Node
-
- getInstance(Class<T>) - Method in interface javax.validation.ConstraintValidatorFactory
-
- getInvalidValue() - Method in interface javax.validation.ConstraintViolation
-
- getKey() - Method in interface javax.validation.Path.Node
-
- getLeafBean() - Method in interface javax.validation.ConstraintViolation
-
If a bean constraint, the bean instance the constraint is applied on
If a property constraint, the bean instance hosting the property the
constraint is applied on
- getMappingStreams() - Method in interface javax.validation.spi.ConfigurationState
-
Returns a set of configuration streams.
- getMessage() - Method in interface javax.validation.ConstraintViolation
-
- getMessageInterpolator() - Method in interface javax.validation.spi.ConfigurationState
-
Returns the message interpolator of this configuration.
- getMessageInterpolator() - Method in interface javax.validation.ValidatorFactory
-
Returns the MessageInterpolator
instance configured at
initialization time for the ValidatorFactory.
- getMessageTemplate() - Method in interface javax.validation.ConstraintViolation
-
- getName() - Method in interface javax.validation.Path.Node
-
Property name the node represents
or null if representing an entity on the leaf node
(in particular the node in a Path
representing
the root object has its name null).
- getPayload() - Method in interface javax.validation.metadata.ConstraintDescriptor
-
The set of payload the constraint hosts.
- getProperties() - Method in interface javax.validation.spi.ConfigurationState
-
Returns a map of non type-safe custom properties.
- getPropertyName() - Method in interface javax.validation.metadata.PropertyDescriptor
-
Name of the property acording to the Java Bean specification.
- getPropertyPath() - Method in interface javax.validation.ConstraintViolation
-
- getRootBean() - Method in interface javax.validation.ConstraintViolation
-
- getRootBeanClass() - Method in interface javax.validation.ConstraintViolation
-
- getTraversableResolver() - Method in interface javax.validation.spi.ConfigurationState
-
Returns the traversable resolver for this configuration.
- getTraversableResolver() - Method in interface javax.validation.ValidatorFactory
-
Returns the TraversableResolver
instance configured
at initialization time for the ValidatorFactory.
- getValidatedValue() - Method in interface javax.validation.MessageInterpolator.Context
-
- getValidationProviderResolver() - Method in interface javax.validation.spi.BootstrapState
-
User defined ValidationProviderResolver
strategy
instance or null
if undefined.
- getValidationProviders() - Method in interface javax.validation.ValidationProviderResolver
-
Returns a list of ValidationProviders available in the runtime environment.
- getValidator() - Method in interface javax.validation.ValidatorContext
-
- getValidator() - Method in interface javax.validation.ValidatorFactory
-
Returns an initialized Validator
instance using the
factory defaults for message interpolator, traversable resolver
and constraint validator factory.
- getValue() - Method in enum javax.validation.constraints.Pattern.Flag
-
- GroupDefinitionException - Exception in javax.validation
-
Exception raised if a group definition is not legal
- GroupDefinitionException(String) - Constructor for exception javax.validation.GroupDefinitionException
-
- GroupDefinitionException() - Constructor for exception javax.validation.GroupDefinitionException
-
- GroupDefinitionException(String, Throwable) - Constructor for exception javax.validation.GroupDefinitionException
-
- GroupDefinitionException(Throwable) - Constructor for exception javax.validation.GroupDefinitionException
-
- GroupSequence - Annotation Type in javax.validation
-
Define a group sequence
The interface hosting @GroupSequence
is representing
the group sequence.
- Valid - Annotation Type in javax.validation
-
Mark an association as cascaded.
- validate(T, Class<?>...) - Method in interface javax.validation.Validator
-
Validates all constraints on object
.
- validateProperty(T, String, Class<?>...) - Method in interface javax.validation.Validator
-
Validates all constraints placed on the property of object
named propertyName
.
- validateValue(Class<T>, String, Object, Class<?>...) - Method in interface javax.validation.Validator
-
- Validation - Class in javax.validation
-
This class is the entry point for Bean Validation.
- Validation() - Constructor for class javax.validation.Validation
-
- ValidationException - Exception in javax.validation
-
Base exception of all "unexpected" problems.
- ValidationException(String) - Constructor for exception javax.validation.ValidationException
-
- ValidationException() - Constructor for exception javax.validation.ValidationException
-
- ValidationException(String, Throwable) - Constructor for exception javax.validation.ValidationException
-
- ValidationException(Throwable) - Constructor for exception javax.validation.ValidationException
-
- ValidationProvider<T extends Configuration<T>> - Interface in javax.validation.spi
-
Contract between the validation bootstrap mechanism and the provider engine.
- ValidationProviderResolver - Interface in javax.validation
-
Determines the list of Bean Validation providers available in the runtime environment
Bean Validation providers are identified by the presence of
META-INF/services/javax.validation.spi.ValidationProvider
files following the Service Provider pattern described
here
Each META-INF/services/javax.validation.spi.ValidationProvider file contains the list of
ValidationProvider
implementations each of them representing a provider.
- Validator - Interface in javax.validation
-
Validate bean instances.
- ValidatorContext - Interface in javax.validation
-
Represents the context that is used to create Validator
instances.
- ValidatorFactory - Interface in javax.validation
-
Factory returning initialized Validator
instances.
- valueOf(String) - Static method in enum javax.validation.constraints.Pattern.Flag
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum javax.validation.metadata.Scope
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum javax.validation.constraints.Pattern.Flag
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum javax.validation.metadata.Scope
-
Returns an array containing the constants of this enum type, in
the order they are declared.