Top Description Fields Constructors Methods
org.hibernate.validator.internal.cfg.context

pack-priv abstract Class ConstraintMappingContextImplBase

extends ConstraintContextImplBase
Class Inheritance
Known Direct Subclasses
org.hibernate.validator.internal.cfg.context.CrossParameterConstraintMappingContextImpl, org.hibernate.validator.internal.cfg.context.TypeConstraintMappingContextImpl, org.hibernate.validator.internal.cfg.context.CascadableConstraintMappingContextImplBase
Static Imports
org.hibernate.validator.internal.util.CollectionHelper.newHashSet

Base class for implementations of constraint mapping creational context types.
Author
Gunnar Morling

Field Summary

Modifier and TypeField and Description
private final Set<ConfiguredConstraint<?>>
Inherited from org.hibernate.validator.internal.cfg.context.ConstraintContextImplBase:
mapping

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
addConstraint(ConfiguredConstraint<?>
the constraint to add
constraint
)

Adds a constraint to the set of constraints managed by this creational context.

private <A extends Annotation> MetaConstraint<A>
asMetaConstraint(ConfiguredConstraint<A> config, ConstraintCreationContext constraintCreationContext)

protected DefaultConstraintMapping
protected Set<MetaConstraint<?>>
getConstraints(ConstraintCreationContext constraintCreationContext)

protected abstract ConstraintDescriptorImpl.ConstraintType

Returns:

the type of constraints hosted on the element configured by this creational context
getConstraintType
()

Returns the type of constraints hosted on the element configured by this creational context.

Inherited from org.hibernate.validator.internal.cfg.context.ConstraintContextImplBase:
constraintDefinitiontype

Field Detail

constraintsback to summary
private final Set<ConfiguredConstraint<?>> constraints

Constructor Detail

ConstraintMappingContextImplBaseback to summary
pack-priv ConstraintMappingContextImplBase(DefaultConstraintMapping mapping)

Method Detail

addConstraintback to summary
protected void addConstraint(ConfiguredConstraint<?> constraint)

Adds a constraint to the set of constraints managed by this creational context.

Parameters
constraint:ConfiguredConstraint<?>

the constraint to add

asMetaConstraintback to summary
private <A extends Annotation> MetaConstraint<A> asMetaConstraint(ConfiguredConstraint<A> config, ConstraintCreationContext constraintCreationContext)
getConstraintMappingback to summary
protected DefaultConstraintMapping getConstraintMapping()
getConstraintsback to summary
protected Set<MetaConstraint<?>> getConstraints(ConstraintCreationContext constraintCreationContext)
getConstraintTypeback to summary
protected abstract ConstraintDescriptorImpl.ConstraintType getConstraintType()

Returns the type of constraints hosted on the element configured by this creational context.

Returns:ConstraintDescriptorImpl.ConstraintType

the type of constraints hosted on the element configured by this creational context