| Modifier and Type | Field and Description |
|---|---|
| private final ExecutableConstraintMappingContextImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv | CrossParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext)
|
| Modifier and Type | Method and Description |
|---|---|
| public CrossParameterConstraintMappingContext | constraint(ConstraintDef<?, ?>
The constraint to add. definition)Implements org. |
| public ConstructorConstraintMappingContext | constructor(Class<?>...
The constructor parameter types. parameterTypes)Implements org. |
| protected ConstraintDescriptorImpl. | getConstraintType()
Implements abstract org. |
| public CrossParameterConstraintMappingContext | ignoreAnnotations(boolean
Whether to ignore annotation-based constraints or not. ignoreAnnotations)Implements org. |
| public MethodConstraintMappingContext | method(String
The method name. name, Class<?>... The method parameter types. parameterTypes)Implements org. |
| public ParameterConstraintMappingContext | parameter(int
The parameter index. index)Implements org. |
| public ReturnValueConstraintMappingContext | returnValue()
Implements org. |
| executableContext | back to summary |
|---|---|
| private final ExecutableConstraintMappingContextImpl executableContext | |
| CrossParameterConstraintMappingContextImpl | back to summary |
|---|---|
| pack-priv CrossParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext) | |
| constraint | back to summary |
|---|---|
| public CrossParameterConstraintMappingContext constraint(ConstraintDef<?, ?> definition) Implements org. Doc from org. Adds a new constraint.
| |
| constructor | back to summary |
|---|---|
| public ConstructorConstraintMappingContext constructor(Class<?>... parameterTypes) Implements org. Doc from org. Selects a constructor to which the next operations shall apply. 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.
| |
| getConstraintType | back to summary |
|---|---|
| protected ConstraintDescriptorImpl. Implements abstract org. Doc from org. Returns the type of constraints hosted on the element configured by this creational context.
| |
| ignoreAnnotations | back to summary |
|---|---|
| public CrossParameterConstraintMappingContext ignoreAnnotations(boolean ignoreAnnotations) Implements org. Doc from org. Specifies whether annotations at the given element should be ignored or not, overriding any setting given for parent elements. E.g. the setting given for a method parameter overrides the setting given for the method declaring that parameter.
| |
| method | back to summary |
|---|---|
| public MethodConstraintMappingContext method(String name, Class<?>... parameterTypes) Implements org. Doc from org. Selects a method to which the next operations shall apply. 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.
| |
| parameter | back to summary |
|---|---|
| public ParameterConstraintMappingContext parameter(int index) Implements org. Doc from org. Changes the parameter for which added constraints apply. A given parameter may only be configured once.
| |
| returnValue | back to summary |
|---|---|
| public ReturnValueConstraintMappingContext returnValue() Implements org. Doc from org. Selects the current method's return value as the target for the next operations. The return value of one method or constructor may only be configured more once.
| |