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, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypemethodpublic ReturnValueConstraintMappingContextImpl(Class<?> beanClass, Method method, ConstraintMappingContext mapping)
public ReturnValueConstraintMappingContext constraint(ConstraintDef<?,?> definition)
Constrainableconstraint 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 ParameterTargetindex - The parameter index.ConstraintsForTypeMethodElement instance allowing method chaining.Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved