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

pack-priv final Class FieldConstraintMappingContextImpl

extends AbstractPropertyConstraintMappingContextImpl<JavaBeanField>
Class Inheritance
Imports
org.hibernate.validator.cfg.ConstraintDef, org.hibernate.validator.cfg.context.PropertyConstraintMappingContext, org.hibernate.validator.internal.engine.ConstraintCreationContext, org.hibernate.validator.internal.metadata.descriptor.ConstraintDescriptorImpl.ConstraintType, org.hibernate.validator.internal.metadata.location.ConstraintLocation, org.hibernate.validator.internal.metadata.raw.ConfigurationSource, .ConstrainedElement, .ConstrainedField, org.hibernate.validator.internal.properties.javabean.JavaBeanField

Deprecated

as a consequence of AbstractPropertyConstraintMappingContextImpl being deprecated. See corresponding docs for further information.

An implementation of AbstractPropertyConstraintMappingContextImpl for a field property. Represents a constraint mapping creational context which allows to configure the constraints for one of the bean's field properties.
Author
Marko Bekhta

Constructor Summary

AccessConstructor and Description
pack-priv
FieldConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext, JavaBeanField javaBeanField)

Deprecated as a consequence of TypeConstraintMappingContextImpl being deprecated.

Method Summary

Modifier and TypeMethod and Description
pack-priv ConstrainedElement
public PropertyConstraintMappingContext
constraint(ConstraintDef<?, ?>
The constraint to add.
definition
)

Implements org.hibernate.validator.cfg.context.Constrainable.constraint.

Deprecated as a consequence of PropertyConstraintMappingContext being deprecated.
Adds a new constraint.
protected ConstraintDescriptorImpl.ConstraintType
getConstraintType()

Overrides org.hibernate.validator.internal.cfg.context.AbstractPropertyConstraintMappingContextImpl.getConstraintType.

Returns the type of constraints hosted on the element configured by this creational context.
Inherited from org.hibernate.validator.internal.cfg.context.AbstractPropertyConstraintMappingContextImpl:
constructorcontainerElementTypecontainerElementTypefieldgetPropertygettergetThisignoreAnnotationsignoreAnnotationsmethodproperty

Constructor Detail

FieldConstraintMappingContextImplback to summary
pack-priv FieldConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext, JavaBeanField javaBeanField)

Deprecated

as a consequence of TypeConstraintMappingContextImpl being deprecated. See corresponding docs for further information.

Method Detail

buildback to summary
pack-priv ConstrainedElement build(ConstraintCreationContext constraintCreationContext)

Implements abstract org.hibernate.validator.internal.cfg.context.AbstractPropertyConstraintMappingContextImpl.build.

Annotations
@Override
constraintback to summary
public PropertyConstraintMappingContext constraint(ConstraintDef<?, ?> definition)

Implements org.hibernate.validator.cfg.context.Constrainable.constraint.

Doc from org.hibernate.validator.cfg.context.Constrainable.constraint.

Deprecated

as a consequence of PropertyConstraintMappingContext being deprecated. See corresponding docs for further information.

Adds a new constraint.

Parameters
definition:ConstraintDef<?, ?>

The constraint to add.

Returns:PropertyConstraintMappingContext

The current creational context following the method chaining pattern.

Annotations
@Override
getConstraintTypeback to summary
protected ConstraintDescriptorImpl.ConstraintType getConstraintType()

Overrides org.hibernate.validator.internal.cfg.context.AbstractPropertyConstraintMappingContextImpl.getConstraintType.

Doc from org.hibernate.validator.internal.cfg.context.ConstraintMappingContextImplBase.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

Annotations
@Override