Note that while the validation engine works on the aggregated meta-model (which e.g. provides a unified view for properties, be them represented via fields or getter methods) most of the time, in some situations the physical element which hosts a constraint is relevant. This includes
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendTo(ExecutableParameterNameProvider parameterNameProvider, PathImpl path)
Appends a node representing this location to the given property path. |
| public static ConstraintLocation | |
| public static ConstraintLocation | |
| public static ConstraintLocation | |
| public static ConstraintLocation | |
| public static ConstraintLocation | |
| public static ConstraintLocation | |
| public static ConstraintLocation | forTypeArgument(ConstraintLocation delegate, TypeVariable<?> typeParameter, Type typeOfAnnotatedElement)
|
| public Constrainable | Returns: the member represented by this location. Will benull when this location represents a type.Returns the member represented by this location. |
| public Class | |
| public ConstraintLocation. | |
| public Type | Returns: The type to be used when resolving constraint validators for constraints at this locationReturns the type to be used when resolving constraint validators for constraints at this location. |
| public Object |
| appendTo | back to summary |
|---|---|
| public void appendTo(ExecutableParameterNameProvider parameterNameProvider, PathImpl path) Appends a node representing this location to the given property path. | |
| forClass | back to summary |
|---|---|
| public static ConstraintLocation forClass(Class<?> declaringClass) | |
| forCrossParameter | back to summary |
|---|---|
| public static ConstraintLocation forCrossParameter(Callable callable) | |
| forField | back to summary |
|---|---|
| public static ConstraintLocation forField(Field field) | |
| forGetter | back to summary |
|---|---|
| public static ConstraintLocation forGetter(Getter getter) | |
| forParameter | back to summary |
|---|---|
| public static ConstraintLocation forParameter(Callable callable, int index) | |
| forReturnValue | back to summary |
|---|---|
| public static ConstraintLocation forReturnValue(Callable callable) | |
| forTypeArgument | back to summary |
|---|---|
| public static ConstraintLocation forTypeArgument(ConstraintLocation delegate, TypeVariable<?> typeParameter, Type typeOfAnnotatedElement) | |
| getConstrainable | back to summary |
|---|---|
| public Constrainable getConstrainable() Returns the member represented by this location.
| |
| getDeclaringClass | back to summary |
|---|---|
| public Class Returns the class hosting this location. | |
| getKind | back to summary |
|---|---|
| public ConstraintLocation. Returns the nature of the constraint location. | |
| getTypeForValidatorResolution | back to summary |
|---|---|
| public Type getTypeForValidatorResolution() Returns the type to be used when resolving constraint validators for constraints at this location. Note that this is not always the same type as the type of the element described by this location; E.g. the wrapper type will is used for constraint validator resolution, if a constraint is declared in an element with a primitive type.
| |
| getValue | back to summary |
|---|---|
| public Object getValue(Object parent) Obtains the value of this location from the parent. The type of the passed parent depends on the location type,
e.g. a bean would be passed for a | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ConstraintLocation. | |
| private final ElementType | |
| public static final ConstraintLocation. | |
| public static final ConstraintLocation. | |
| public static final ConstraintLocation. | |
| public static final ConstraintLocation. | |
| public static final ConstraintLocation. | |
| public static final ConstraintLocation. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ElementType | |
| public boolean | |
| public boolean | |
| public static ConstraintLocation. | |
| public static ConstraintLocation. | |
| public static ConstraintLocation. |
| CONSTRUCTOR | back to summary |
|---|---|
| public static final ConstraintLocation. | |
| elementType | back to summary |
|---|---|
| private final ElementType elementType | |
| FIELD | back to summary |
|---|---|
| public static final ConstraintLocation. | |
| GETTER | back to summary |
|---|---|
| public static final ConstraintLocation. | |
| METHOD | back to summary |
|---|---|
| public static final ConstraintLocation. | |
| PARAMETER | back to summary |
|---|---|
| public static final ConstraintLocation. | |
| TYPE | back to summary |
|---|---|
| public static final ConstraintLocation. | |
| TYPE_USE | back to summary |
|---|---|
| public static final ConstraintLocation. | |
| ConstraintLocationKind | back to summary |
|---|---|
| private ConstraintLocationKind(ElementType elementType) | |
| getElementType | back to summary |
|---|---|
| public ElementType getElementType() | |
| isExecutable | back to summary |
|---|---|
| public boolean isExecutable() | |
| isMethod | back to summary |
|---|---|
| public boolean isMethod() | |
| of | back to summary |
|---|---|
| public static ConstraintLocation. | |
| valueOf | back to summary |
|---|---|
| public static ConstraintLocation. | |
| values | back to summary |
|---|---|
| public static ConstraintLocation. | |