org.hibernate.validator.internal.metadata.core.MetaConstraint s and can be
marked for a cascaded validation. Furthermore each constrained element has a
configuration source which determines its origin.
The hierarchy of constrained elements resembles the physical structure of the represented Java types. In particular it doesn't provide the notion of properties and it doesn't aggregate meta data for overridden elements in an inheritance hierarchy.
Identity of implementations is based on the element location and constraint source. That means that for instance in a set there can be two configurations for one and the same Java field created by two different configuration sources (e.g. via annotation and XML) but not two configurations for the same field originating from one configuration source.
Implementations are strictly read-only.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ConstrainedElement.ConstrainedElementKind
The kind of a |
| Modifier and Type | Method and Description |
|---|---|
| public CascadingMetaDataBuilder | getCascadingMetaDataBuilder()
Returns the cascading metadata (e.g. |
| public Set | Returns: A set with this constrained element's constraints. May be empty, but nevernull.Returns a set containing the constraints specified for this constrained element. |
| public ConstrainedElement. | Returns: The kind of this constrained element.Returns the kind of this constrained element. |
| public ConfigurationSource | |
| public Set | |
| public boolean | Returns: True, if this element is constrained,
false otherwise.Whether this element is constrained or not. |
| getCascadingMetaDataBuilder | back to summary |
|---|---|
| public CascadingMetaDataBuilder getCascadingMetaDataBuilder() Returns the cascading metadata (e.g. | |
| getConstraints | back to summary |
|---|---|
| public Set Returns a set containing the constraints specified for this constrained element.
| |
| getKind | back to summary |
|---|---|
| public ConstrainedElement. Returns the kind of this constrained element.
| |
| getSource | back to summary |
|---|---|
| public ConfigurationSource getSource() Returns the configuration source contributing this constrained element. | |
| getTypeArgumentConstraints | back to summary |
|---|---|
| public Set Returns the type argument constraints of this element, if any. | |
| isConstrained | back to summary |
|---|---|
| public boolean isConstrained() Whether this element is constrained or not. This is the case, if this element has at least one constraint or a cascaded validation shall be performed for it.
| |
ConstrainedElement. Can be used to determine an
element's type when traversing over a collection of constrained elements.
| Modifier and Type | Field and Description |
|---|---|
| public static final ConstrainedElement. | |
| public static final ConstrainedElement. | |
| public static final ConstrainedElement. | |
| public static final ConstrainedElement. | |
| public static final ConstrainedElement. | |
| public static final ConstrainedElement. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public static ConstrainedElement. | |
| public static ConstrainedElement. |
| CONSTRUCTOR | back to summary |
|---|---|
| public static final ConstrainedElement. | |
| FIELD | back to summary |
|---|---|
| public static final ConstrainedElement. | |
| GETTER | back to summary |
|---|---|
| public static final ConstrainedElement. | |
| METHOD | back to summary |
|---|---|
| public static final ConstrainedElement. | |
| PARAMETER | back to summary |
|---|---|
| public static final ConstrainedElement. | |
| TYPE | back to summary |
|---|---|
| public static final ConstrainedElement. | |
| ConstrainedElementKind | back to summary |
|---|---|
| private ConstrainedElementKind() | |
| isExecutable | back to summary |
|---|---|
| public boolean isExecutable() | |
| isMethod | back to summary |
|---|---|
| public boolean isMethod() | |
| valueOf | back to summary |
|---|---|
| public static ConstrainedElement. | |
| values | back to summary |
|---|---|
| public static ConstrainedElement. | |