| Modifier and Type | Field and Description |
|---|---|
| private final ExecutableConstraintMappingContextImpl | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | ParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext, int parameterIndex)
|
| Modifier and Type | Method and Description |
|---|---|
| public ConstrainedParameter | |
| public ParameterConstraintMappingContext | constraint(ConstraintDef<?, ?>
The constraint to add. definition)Implements org. |
| public ConstructorConstraintMappingContext | constructor(Class<?>...
The constructor parameter types. parameterTypes)Implements org. |
| public ContainerElementConstraintMappingContext | containerElementType()
Implements org. |
| public ContainerElementConstraintMappingContext | containerElementType(int
The index of the type argument to configure. Pass 0 when navigating into an array type. index, int... the nested index(es) in case the container element to configure is a generic type within
another generic type, e.g. nestedIndexes)List<Map<String, String>>, a multi-dimensional array or a combination of
(nested) parameterized and array types.Implements org. |
| public CrossParameterConstraintMappingContext | crossParameter()
Implements org. |
| protected ConstraintDescriptorImpl. | getConstraintType()
Implements abstract org. |
| protected ParameterConstraintMappingContext | getThis()
Implements abstract org. |
| public ParameterConstraintMappingContext | 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 | |
| parameterIndex | back to summary |
|---|---|
| private final int parameterIndex | |
| ParameterConstraintMappingContextImpl | back to summary |
|---|---|
| pack-priv ParameterConstraintMappingContextImpl(ExecutableConstraintMappingContextImpl executableContext, int parameterIndex) | |
| build | back to summary |
|---|---|
| public ConstrainedParameter build(ConstraintCreationContext constraintCreationContext) | |
| constraint | back to summary |
|---|---|
| public ParameterConstraintMappingContext 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.
| |
| containerElementType | back to summary |
|---|---|
| public ContainerElementConstraintMappingContext containerElementType() Implements org. Doc from org. Selects the single type argument of the current element's generic type as the target for the next operations. Selects the component type if the current element is of an array type.
| |
| containerElementType | back to summary |
|---|---|
| public ContainerElementConstraintMappingContext containerElementType(int index, int... nestedIndexes) Implements org. Doc from org. Selects the single type argument of the current element's generic type as the target for the next operations. Selects the component type if the current element is of an array type.
| |
| crossParameter | back to summary |
|---|---|
| public CrossParameterConstraintMappingContext crossParameter() Implements org. Doc from org. Selects the cross-parameter element of a method or constructor as target for the next constraint declaration operations. May only be configured once for a given method or constructor.
| |
| 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.
| |
| getThis | back to summary |
|---|---|
| protected ParameterConstraintMappingContext getThis() Implements abstract org. Doc from org. Returns this object, narrowed down to the specific sub-type.
| |
| ignoreAnnotations | back to summary |
|---|---|
| public ParameterConstraintMappingContext 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.
| |