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, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
type
public CrossParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext)
public CrossParameterConstraintMappingContext constraint(ConstraintDef<?,?> definition)
Constrainable
constraint
in interface Constrainable<CrossParameterConstraintMappingContext>
definition
- The constraint to add.public ParameterConstraintMappingContext parameter(int index)
ParameterTarget
parameter
in interface ParameterTarget
index
- The parameter index.public MethodConstraintMappingContext method(String name, Class<?>... parameterTypes)
MethodTarget
Until 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 MethodTarget
name
- The method name.parameterTypes
- The method parameter types.public ConstructorConstraintMappingContext constructor(Class<?>... parameterTypes)
ConstructorTarget
Until 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 ConstructorTarget
parameterTypes
- The constructor parameter types.public ReturnValueConstraintMappingContext returnValue()
ReturnValueTarget
returnValue
in interface ReturnValueTarget
protected ConstraintDescriptorImpl.ConstraintType getConstraintType()
ConstraintMappingContextImplBase
getConstraintType
in class ConstraintMappingContextImplBase
Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved