Package | Description |
---|---|
org.hibernate.validator.internal.engine |
Implementations for the core interfaces of JSR-380.
|
org.hibernate.validator.internal.metadata.aggregated |
The classes in this package contain the aggregated meta data needed for an actual validation.
|
org.hibernate.validator.internal.metadata.core |
Core classes of the internal model used for representing constraints and related metadata.
|
org.hibernate.validator.internal.metadata.provider |
Abstraction of the meta data sources - annotation, xml, programmatic.
|
org.hibernate.validator.internal.metadata.raw |
The raw metadata is a reflection of all configured constraints including constraints defined via multiple
configuration sources.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ValidationContext.hasMetaConstraintBeenProcessed(Object bean,
Path path,
MetaConstraint<?> metaConstraint) |
void |
ValidationContext.markConstraintProcessed(Object bean,
Path path,
MetaConstraint<?> metaConstraint) |
Modifier and Type | Method and Description |
---|---|
protected Set<MetaConstraint<?>> |
MetaDataBuilder.adaptConstraints(ConstrainedElement constrainedElement,
Set<MetaConstraint<?>> constraints)
Allows specific sub-classes to customize the retrieved constraints.
|
protected Set<MetaConstraint<?>> |
PropertyMetaData.Builder.adaptConstraints(ConstrainedElement constrainedElement,
Set<MetaConstraint<?>> constraints) |
protected Set<MetaConstraint<?>> |
MetaDataBuilder.adaptOriginsAndImplicitGroups(Set<MetaConstraint<?>> constraints)
Adapts the given constraints to the given bean type.
|
Set<MetaConstraint<?>> |
AbstractConstraintMetaData.getAllConstraints() |
Set<MetaConstraint<?>> |
MetaDataBuilder.getContainerElementConstraints() |
Set<MetaConstraint<?>> |
AbstractConstraintMetaData.getContainerElementsConstraints() |
Set<MetaConstraint<?>> |
ExecutableMetaData.getCrossParameterConstraints()
Returns the cross-parameter constraints declared for the represented
method or constructor.
|
protected Set<MetaConstraint<?>> |
MetaDataBuilder.getDirectConstraints() |
Set<MetaConstraint<?>> |
AbstractConstraintMetaData.getDirectConstraints() |
Set<MetaConstraint<?>> |
BeanMetaData.getDirectMetaConstraints() |
Set<MetaConstraint<?>> |
BeanMetaDataImpl.getDirectMetaConstraints() |
Set<MetaConstraint<?>> |
BeanMetaData.getMetaConstraints() |
Set<MetaConstraint<?>> |
BeanMetaDataImpl.getMetaConstraints() |
Iterator<MetaConstraint<?>> |
AbstractConstraintMetaData.iterator() |
Modifier and Type | Method and Description |
---|---|
protected Set<MetaConstraint<?>> |
MetaDataBuilder.adaptConstraints(ConstrainedElement constrainedElement,
Set<MetaConstraint<?>> constraints)
Allows specific sub-classes to customize the retrieved constraints.
|
protected Set<MetaConstraint<?>> |
PropertyMetaData.Builder.adaptConstraints(ConstrainedElement constrainedElement,
Set<MetaConstraint<?>> constraints) |
protected Set<MetaConstraint<?>> |
MetaDataBuilder.adaptOriginsAndImplicitGroups(Set<MetaConstraint<?>> constraints)
Adapts the given constraints to the given bean type.
|
protected Set<ContainerElementTypeDescriptor> |
AbstractConstraintMetaData.asContainerElementTypeDescriptors(Set<MetaConstraint<?>> containerElementsConstraints,
CascadingMetaData cascadingMetaData,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence) |
protected Set<ConstraintDescriptorImpl<?>> |
AbstractConstraintMetaData.asDescriptors(Set<MetaConstraint<?>> constraints) |
Constructor and Description |
---|
AbstractConstraintMetaData(String name,
Type type,
Set<MetaConstraint<?>> directConstraints,
Set<MetaConstraint<?>> containerElementsConstraints,
boolean isCascading,
boolean isConstrained) |
AbstractConstraintMetaData(String name,
Type type,
Set<MetaConstraint<?>> directConstraints,
Set<MetaConstraint<?>> containerElementsConstraints,
boolean isCascading,
boolean isConstrained) |
ReturnValueMetaData(Type type,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> containerElementsConstraints,
CascadingMetaData cascadingMetaData) |
ReturnValueMetaData(Type type,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> containerElementsConstraints,
CascadingMetaData cascadingMetaData) |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
MetaConstraints.create(TypeResolutionHelper typeResolutionHelper,
ValueExtractorManager valueExtractorManager,
ConstraintDescriptorImpl<A> constraintDescriptor,
ConstraintLocation location) |
Modifier and Type | Method and Description |
---|---|
protected Set<MetaConstraint<?>> |
AnnotationMetaDataProvider.findTypeAnnotationConstraints(Executable executable,
AnnotatedType annotatedReturnType)
Finds type arguments constraints for method return values.
|
protected Set<MetaConstraint<?>> |
AnnotationMetaDataProvider.findTypeAnnotationConstraints(Field field)
Finds type arguments constraints for fields.
|
protected Set<MetaConstraint<?>> |
AnnotationMetaDataProvider.findTypeAnnotationConstraintsForExecutableParameter(Executable executable,
int i,
AnnotatedType parameterAnnotatedType)
Finds type arguments constraints for parameters.
|
Modifier and Type | Field and Description |
---|---|
protected Set<MetaConstraint<?>> |
AbstractConstrainedElement.constraints |
protected Set<MetaConstraint<?>> |
AbstractConstrainedElement.typeArgumentConstraints |
Modifier and Type | Method and Description |
---|---|
Set<MetaConstraint<?>> |
AbstractConstrainedElement.getConstraints() |
Set<MetaConstraint<?>> |
ConstrainedElement.getConstraints()
Returns a set containing the constraints specified for this constrained
element.
|
Set<MetaConstraint<?>> |
ConstrainedExecutable.getCrossParameterConstraints() |
Set<MetaConstraint<?>> |
AbstractConstrainedElement.getTypeArgumentConstraints() |
Set<MetaConstraint<?>> |
ConstrainedElement.getTypeArgumentConstraints()
Returns the type argument constraints of this element, if any.
|
Iterator<MetaConstraint<?>> |
AbstractConstrainedElement.iterator() |
Constructor and Description |
---|
AbstractConstrainedElement(ConfigurationSource source,
ConstrainedElement.ConstrainedElementKind kind,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder) |
AbstractConstrainedElement(ConfigurationSource source,
ConstrainedElement.ConstrainedElementKind kind,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder) |
ConstrainedExecutable(ConfigurationSource source,
Executable executable,
List<ConstrainedParameter> parameterMetaData,
Set<MetaConstraint<?>> crossParameterConstraints,
Set<MetaConstraint<?>> returnValueConstraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new executable meta data object.
|
ConstrainedExecutable(ConfigurationSource source,
Executable executable,
List<ConstrainedParameter> parameterMetaData,
Set<MetaConstraint<?>> crossParameterConstraints,
Set<MetaConstraint<?>> returnValueConstraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new executable meta data object.
|
ConstrainedExecutable(ConfigurationSource source,
Executable executable,
List<ConstrainedParameter> parameterMetaData,
Set<MetaConstraint<?>> crossParameterConstraints,
Set<MetaConstraint<?>> returnValueConstraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new executable meta data object.
|
ConstrainedExecutable(ConfigurationSource source,
Executable executable,
Set<MetaConstraint<?>> returnValueConstraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new executable meta data object for a parameter-less executable.
|
ConstrainedExecutable(ConfigurationSource source,
Executable executable,
Set<MetaConstraint<?>> returnValueConstraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new executable meta data object for a parameter-less executable.
|
ConstrainedField(ConfigurationSource source,
Field field,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new field meta data object.
|
ConstrainedField(ConfigurationSource source,
Field field,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new field meta data object.
|
ConstrainedParameter(ConfigurationSource source,
Executable executable,
Type type,
int index,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new parameter meta data object.
|
ConstrainedParameter(ConfigurationSource source,
Executable executable,
Type type,
int index,
Set<MetaConstraint<?>> constraints,
Set<MetaConstraint<?>> typeArgumentConstraints,
CascadingMetaDataBuilder cascadingMetaDataBuilder)
Creates a new parameter meta data object.
|
ConstrainedType(ConfigurationSource source,
Class<?> beanClass,
Set<MetaConstraint<?>> constraints)
Creates a new type meta data object.
|
Copyright © 2020 JBoss by Red Hat. All rights reserved.