public final class CrossParameterConstraintMappingContextImpl extends ConstraintMappingContextImplBase implements CrossParameterConstraintMappingContext
mapping| Constructor and Description |
|---|
CrossParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext) |
| Modifier and Type | Method and Description |
|---|---|
CrossParameterConstraintMappingContext |
constraint(ConstraintDef<?,?> definition)
Adds a new constraint.
|
ConstructorConstraintMappingContext |
constructor(Class<?>... parameterTypes)
Selects a constructor to which the next operations shall apply.
|
protected ConstraintDescriptorImpl.ConstraintType |
getConstraintType()
Returns the type of constraints hosted on the element configured by this creational context.
|
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.
|
ReturnValueConstraintMappingContext |
returnValue()
Selects the current method's return value as the target for the next operations.
|
addConstraint, getConstraintMapping, getConstraints, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittypepublic CrossParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext)
public CrossParameterConstraintMappingContext constraint(ConstraintDef<?,?> definition)
Constrainableconstraint in interface Constrainable<CrossParameterConstraintMappingContext>definition - The constraint to add.public ParameterConstraintMappingContext parameter(int index)
ParameterTargetparameter in interface ParameterTargetindex - The parameter index.public 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.public ReturnValueConstraintMappingContext returnValue()
ReturnValueTargetreturnValue in interface ReturnValueTargetprotected ConstraintDescriptorImpl.ConstraintType getConstraintType()
ConstraintMappingContextImplBasegetConstraintType in class ConstraintMappingContextImplBaseCopyright © 2007-2014 Red Hat, Inc. All Rights Reserved