public final class PropertyConstraintMappingContextImpl extends CascadableConstraintMappingContextImplBase<PropertyConstraintMappingContext> implements PropertyConstraintMappingContext
groupConversions, isCascadingmapping| Constructor and Description |
|---|
PropertyConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext,
Member member) |
| Modifier and Type | Method and Description |
|---|---|
ConstrainedElement |
build(ConstraintHelper constraintHelper) |
PropertyConstraintMappingContext |
constraint(ConstraintDef<?,?> definition)
Adds a new constraint.
|
ConstructorConstraintMappingContext |
constructor(Class<?>... parameterTypes)
Selects a constructor to which the next operations shall apply.
|
protected ConstraintDescriptorImpl.ConstraintType |
getConstraintType()
Returns the type of constraints hosted on the element configured by this creational context.
|
protected PropertyConstraintMappingContextImpl |
getThis()
Returns this object, narrowed down to the specific sub-type.
|
PropertyConstraintMappingContext |
ignoreAnnotations()
Specifies that annotations specified on the configured type or property should be ignored.
|
MethodConstraintMappingContext |
method(String name,
Class<?>... parameterTypes)
Selects a method to which the next operations shall apply.
|
PropertyConstraintMappingContext |
property(String property,
ElementType elementType)
Selects a property to which the next operations shall apply.
|
addGroupConversion, convertGroup, getGroupConversions, isCascading, unwrapValidatedValue, validaddConstraint, getConstraintMapping, getConstraints, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypeconvertGroup, validunwrapValidatedValuepublic PropertyConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext, Member member)
protected PropertyConstraintMappingContextImpl getThis()
CascadableConstraintMappingContextImplBasegetThis in class CascadableConstraintMappingContextImplBase<PropertyConstraintMappingContext>public PropertyConstraintMappingContext constraint(ConstraintDef<?,?> definition)
Constrainableconstraint in interface Constrainable<PropertyConstraintMappingContext>definition - The constraint to add.public PropertyConstraintMappingContext ignoreAnnotations()
AnnotationProcessingOptionsignoreAnnotations in interface AnnotationProcessingOptions<PropertyConstraintMappingContext>public PropertyConstraintMappingContext property(String property, ElementType elementType)
PropertyTargetUntil this method is called constraints apply on class level. After calling this method constraints apply on the specified property with the given access type.
A given property may only be configured once.
property in interface PropertyTargetproperty - The property on which to apply the following constraints (Java Bean notation).elementType - The access type (field/property).public ConstructorConstraintMappingContext constructor(Class<?>... parameterTypes)
ConstructorTargetUntil this method is called constraints apply on class level. After calling this method constraints apply to the specified constructor.
A given constructor may only be configured once.
constructor in interface ConstructorTargetparameterTypes - The constructor parameter types.public MethodConstraintMappingContext method(String name, Class<?>... parameterTypes)
MethodTargetUntil this method is called constraints apply on class level. After calling this method constraints apply to the specified method.
A given method may only be configured once.
method in interface MethodTargetname - The method name.parameterTypes - The method parameter types.public ConstrainedElement build(ConstraintHelper constraintHelper)
protected ConstraintDescriptorImpl.ConstraintType getConstraintType()
ConstraintMappingContextImplBasegetConstraintType in class ConstraintMappingContextImplBaseCopyright © 2007-2014 Red Hat, Inc. All Rights Reserved