public final class ParameterConstraintMappingContextImpl extends ConstraintMappingContextImplBase implements ParameterConstraintMappingContext
beanClass, mapping| Constructor and Description |
|---|
ParameterConstraintMappingContextImpl(Class<?> beanClass,
Method method,
int parameterIndex,
ConstraintMappingContext mapping) |
| Modifier and Type | Method and Description |
|---|---|
ParameterConstraintMappingContext |
constraint(ConstraintDef<?,?> definition)
Adds a new constraint.
|
ParameterConstraintMappingContext |
parameter(int index)
Changes the parameter for which added constraints apply.
|
ReturnValueConstraintMappingContext |
returnValue()
Defines constraints on the return value of the current method.
|
ParameterConstraintMappingContext |
valid()
Marks the currently selected method parameter as cascadable.
|
method, property, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypemethodpublic ParameterConstraintMappingContextImpl(Class<?> beanClass, Method method, int parameterIndex, ConstraintMappingContext mapping)
public ParameterConstraintMappingContext constraint(ConstraintDef<?,?> definition)
Constrainableconstraint in interface Constrainable<ParameterConstraintMappingContext>definition - The constraint to add.public ParameterConstraintMappingContext valid()
valid in interface Cascadable<ParameterConstraintMappingContext>public ParameterConstraintMappingContext parameter(int index)
parameter in interface ParameterTargetindex - The parameter index.ConstraintsForTypeMethodElement instance allowing method chaining.public ReturnValueConstraintMappingContext returnValue()
returnValue in interface ReturnValueTargetConstraintsForTypeMethodElement instance allowing method chaining.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.