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