public final class ReturnValueConstraintMappingContextImpl extends CascadableConstraintMappingContextImplBase<ReturnValueConstraintMappingContext> implements ReturnValueConstraintMappingContext
groupConversions, isCascadingmapping| Constructor and Description |
|---|
ReturnValueConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext) |
| Modifier and Type | Method and Description |
|---|---|
ReturnValueConstraintMappingContext |
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 ReturnValueConstraintMappingContext |
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.
|
addGroupConversion, convertGroup, getGroupConversions, isCascading, unwrapValidatedValue, validaddConstraint, getConstraintMapping, getConstraints, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypeconvertGroup, validunwrapValidatedValuepublic ReturnValueConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext)
protected ReturnValueConstraintMappingContext getThis()
CascadableConstraintMappingContextImplBasegetThis in class CascadableConstraintMappingContextImplBase<ReturnValueConstraintMappingContext>public ReturnValueConstraintMappingContext constraint(ConstraintDef<?,?> definition)
Constrainableconstraint in interface Constrainable<ReturnValueConstraintMappingContext>definition - The constraint to add.public ParameterConstraintMappingContext parameter(int index)
ParameterTargetparameter in interface ParameterTargetindex - The parameter index.public CrossParameterConstraintMappingContext crossParameter()
CrossParameterTargetcrossParameter in interface CrossParameterTargetpublic 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 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.protected ConstraintDescriptorImpl.ConstraintType getConstraintType()
ConstraintMappingContextImplBasegetConstraintType in class ConstraintMappingContextImplBaseCopyright © 2007-2014 Red Hat, Inc. All Rights Reserved