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, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
type
method
public ParameterConstraintMappingContextImpl(Class<?> beanClass, Method method, int parameterIndex, ConstraintMappingContext mapping)
public ParameterConstraintMappingContext constraint(ConstraintDef<?,?> definition)
Constrainable
constraint
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 ParameterTarget
index
- The parameter index.ConstraintsForTypeMethodElement
instance allowing method chaining.public ReturnValueConstraintMappingContext returnValue()
returnValue
in interface ReturnValueTarget
ConstraintsForTypeMethodElement
instance allowing method chaining.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.