public final class ParameterConstraintMappingContextImpl extends CascadableConstraintMappingContextImplBase<ParameterConstraintMappingContext> implements ParameterConstraintMappingContext
groupConversions, isCascadingmapping| Constructor and Description |
|---|
ParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext,
int parameterIndex) |
| Modifier and Type | Method and Description |
|---|---|
ConstrainedParameter |
build(ConstraintHelper constraintHelper,
ParameterNameProvider parameterNameProvider) |
ParameterConstraintMappingContext |
constraint(ConstraintDef<?,?> definition)
Adds a new constraint.
|
ConstructorConstraintMappingContext |
constructor(Class<?>... parameterTypes)
Selects a constructor to which the next operations shall apply.
|
CrossParameterConstraintMappingContext |
crossParameter()
Selects the cross-parameter element of a method or constructor as target for the next constraint declaration
operations.
|
protected ConstraintDescriptorImpl.ConstraintType |
getConstraintType()
Returns the type of constraints hosted on the element configured by this creational context.
|
protected ParameterConstraintMappingContext |
getThis()
Returns this object, narrowed down to the specific sub-type.
|
MethodConstraintMappingContext |
method(String name,
Class<?>... parameterTypes)
Selects a method to which the next operations shall apply.
|
ParameterConstraintMappingContext |
parameter(int index)
Changes the parameter for which added constraints apply.
|
ReturnValueConstraintMappingContext |
returnValue()
Selects the current method's return value as the target for the next operations.
|
addGroupConversion, convertGroup, getGroupConversions, isCascading, unwrapValidatedValue, validaddConstraint, getConstraintMapping, getConstraints, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypeconvertGroup, validunwrapValidatedValuepublic ParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext, int parameterIndex)
protected ParameterConstraintMappingContext getThis()
CascadableConstraintMappingContextImplBasegetThis in class CascadableConstraintMappingContextImplBase<ParameterConstraintMappingContext>public ParameterConstraintMappingContext constraint(ConstraintDef<?,?> definition)
Constrainableconstraint in interface Constrainable<ParameterConstraintMappingContext>definition - The constraint to add.public ParameterConstraintMappingContext parameter(int index)
ParameterTargetparameter in interface ParameterTargetindex - The parameter index.public CrossParameterConstraintMappingContext crossParameter()
CrossParameterTargetcrossParameter in interface CrossParameterTargetpublic ReturnValueConstraintMappingContext returnValue()
ReturnValueTargetreturnValue in interface ReturnValueTargetpublic 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 ConstrainedParameter build(ConstraintHelper constraintHelper, ParameterNameProvider parameterNameProvider)
protected ConstraintDescriptorImpl.ConstraintType getConstraintType()
ConstraintMappingContextImplBasegetConstraintType in class ConstraintMappingContextImplBaseCopyright © 2007-2014 Red Hat, Inc. All Rights Reserved