| Modifier and Type | Field and Description |
|---|---|
| private final Type | configuredType
The type configured through this context.
|
| private final Set | |
| private final int | index
The index of the type parameter configured through this context. |
| private static final Log | |
| protected final Map | nestedContainerElementContexts
Contexts for configuring nested container elements, if any. |
| private final ContainerElementTarget | |
| private final ConstraintLocation | |
| private final TypeConstraintMappingContextImpl | typeContext
Deprecated
as a consequence of
TypeConstraintMappingContextImpl being deprecated.
|
| private final TypeVariable | typeParameter
The type parameter configured through this context. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ContainerElementConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext, ContainerElementTarget parentContainerElementTarget, ConstraintLocation parentLocation, int index)
Deprecated
as a consequence of
TypeConstraintMappingContextImpl being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private <A extends Annotation> MetaConstraint | asMetaConstraint(ConfiguredConstraint<A> config, ConstraintCreationContext constraintCreationContext)
Hides org. |
| pack-priv Set | |
| public ContainerElementConstraintMappingContext | 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 PropertyConstraintMappingContext | field(String
The field name that represents a property on which to apply the following constraints. property)Implements org.
Deprecated
as a consequence of
Selects a field to which the next operations shall apply.
PropertyConstraintMappingContext being deprecated.
|
| protected ConstraintDescriptorImpl. | getConstraintType()
Implements abstract org. |
| pack-priv CascadingMetaDataBuilder | |
| private Type | |
| public PropertyConstraintMappingContext | getter(String
The getter property name (using the Java Bean notation, e.g. property)name to address getName())
that represents a property on which to apply the following constraints.Implements org.
Deprecated
as a consequence of
Selects a getter to which the next operations shall apply.
PropertyConstraintMappingContext being deprecated.
|
| protected ContainerElementConstraintMappingContext | getThis()
Implements abstract org. |
| public MethodConstraintMappingContext | method(String
The method name. name, Class<?>... The method parameter types. parameterTypes)Implements org. |
| pack-priv ContainerElementConstraintMappingContext | |
| public ParameterConstraintMappingContext | parameter(int
The parameter index. index)Implements org. |
| public PropertyConstraintMappingContext | property(String
The property on which to apply the following constraints (Java Bean notation). property, ElementType The access type (field/property). elementType)Implements org.
Deprecated
Selects a property to which the next operations shall apply.
|
| public ReturnValueConstraintMappingContext | returnValue()
Implements org. |
| public String |
| configuredType | back to summary |
|---|---|
| private final Type configuredType The type configured through this context. Either a | |
| constraints | back to summary |
|---|---|
| private final Set<ConfiguredConstraint<?>> constraints Hides org. | |
| index | back to summary |
|---|---|
| private final int index The index of the type parameter configured through this context. Always 0 in case of an array type. | |
| LOG | back to summary |
|---|---|
| private static final Log LOG Hides org. | |
| nestedContainerElementContexts | back to summary |
|---|---|
| protected final Map<Integer, ContainerElementConstraintMappingContextImpl> nestedContainerElementContexts Contexts for configuring nested container elements, if any. Indexed by type parameter. | |
| parentContainerElementTarget | back to summary |
|---|---|
| private final ContainerElementTarget parentContainerElementTarget | |
| parentLocation | back to summary |
|---|---|
| private final ConstraintLocation parentLocation | |
| typeContext | back to summary |
|---|---|
| private final TypeConstraintMappingContextImpl<?> typeContext
Deprecated as a consequence of | |
| typeParameter | back to summary |
|---|---|
| private final TypeVariable<?> typeParameter The type parameter configured through this context. An instance of | |
| ContainerElementConstraintMappingContextImpl | back to summary |
|---|---|
| pack-priv ContainerElementConstraintMappingContextImpl(TypeConstraintMappingContextImpl<?> typeContext, ContainerElementTarget parentContainerElementTarget, ConstraintLocation parentLocation, int index)
Deprecated as a consequence of | |
| asMetaConstraint | back to summary |
|---|---|
| private <A extends Annotation> MetaConstraint Hides org. | |
| build | back to summary |
|---|---|
| pack-priv Set | |
| constraint | back to summary |
|---|---|
| public ContainerElementConstraintMappingContext 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.
| |
| field | back to summary |
|---|---|
| public PropertyConstraintMappingContext field(String property) Implements org. Doc from org. Deprecated as a consequence of Selects a field to which the next operations shall apply. Until this method is called constraints apply on class level. After calling this method constraints apply on the specified field property. A given field 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.
| |
| getContainerElementCascadingMetaDataBuilder | back to summary |
|---|---|
| pack-priv CascadingMetaDataBuilder getContainerElementCascadingMetaDataBuilder() | |
| getContainerElementType | back to summary |
|---|---|
| private Type getContainerElementType() | |
| getter | back to summary |
|---|---|
| public PropertyConstraintMappingContext getter(String property) Implements org. Doc from org. Deprecated as a consequence of Selects a getter to which the next operations shall apply. Until this method is called constraints apply on class level. After calling this method constraints apply on the specified getter property. A given getter may only be configured once.
| |
| getThis | back to summary |
|---|---|
| protected ContainerElementConstraintMappingContext getThis() Implements abstract org. Doc from org. Returns this object, narrowed down to the specific sub-type.
| |
| 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.
| |
| nestedContainerElement | back to summary |
|---|---|
| pack-priv ContainerElementConstraintMappingContext nestedContainerElement(int[] nestedIndexes) | |
| 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.
| |
| property | back to summary |
|---|---|
| public PropertyConstraintMappingContext property(String property, ElementType elementType) Implements org. Doc from org. Deprecated
Selects a property to which the next operations shall apply. Until this method is called constraints apply on class level. After calling this method constraints apply on the specified property with the given access type. A given property 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |