| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final List | |
| private final boolean | |
| private final Class | type
The type of the element |
| Access | Constructor and Description |
|---|---|
| public | ElementDescriptorImpl(Type type, Set<ConstraintDescriptorImpl<?>> constraintDescriptors, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
|
| Modifier and Type | Method and Description |
|---|---|
| public final ElementDescriptor. | findConstraints()
Implements jakarta. |
| public final Set | getConstraintDescriptors()
Implements jakarta. Set if none are present.
|
| public final Class | |
| public final boolean |
| constraintDescriptors | back to summary |
|---|---|
| private final Set<ConstraintDescriptorImpl<?>> constraintDescriptors
| |
| defaultGroupSequence | back to summary |
|---|---|
| private final List<Class<?>> defaultGroupSequence
| |
| defaultGroupSequenceRedefined | back to summary |
|---|---|
| private final boolean defaultGroupSequenceRedefined | |
| type | back to summary |
|---|---|
| private final Class<?> type The type of the element | |
| ElementDescriptorImpl | back to summary |
|---|---|
| public ElementDescriptorImpl(Type type, Set<ConstraintDescriptorImpl<?>> constraintDescriptors, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence) | |
| findConstraints | back to summary |
|---|---|
| public final ElementDescriptor. Implements jakarta. Doc from jakarta. Finds constraints and potentially restricts them to certain criteria.
| |
| getConstraintDescriptors | back to summary |
|---|---|
| public final Set Implements jakarta. Doc from jakarta. Returns all constraint descriptors for this element in the class hierarchy
or an empty
| |
| getElementClass | back to summary |
|---|---|
| public final Class Implements jakarta.
| |
| hasConstraints | back to summary |
|---|---|
| public final boolean hasConstraints() Implements jakarta.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final EnumSet | |
| private final EnumSet | |
| private List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public ElementDescriptor. | declaredOn(ElementType...
targeted types elementTypes)Implements jakarta. types
for a given element.
|
| private void | |
| public Set | getConstraintDescriptors()
Implements jakarta. ElementDescriptor.
|
| public boolean | hasConstraints()
Implements jakarta. true if at least one constraint declaration
matching the restrictions is present on the element,
false otherwise.
|
| public ElementDescriptor. | lookingAt(Scope
expected scope visibility)Implements jakarta. |
| public ElementDescriptor. | unorderedAndMatchingGroups(Class<?>...
groups targeted classes)Implements jakarta. |
| definedInSet | back to summary |
|---|---|
| private final EnumSet<ConstraintOrigin> definedInSet | |
| elementTypes | back to summary |
|---|---|
| private final EnumSet<ElementType> elementTypes | |
| groups | back to summary |
|---|---|
| private List<Class<?>> groups | |
| ConstraintFinderImpl | back to summary |
|---|---|
| pack-priv ConstraintFinderImpl() | |
| addMatchingDescriptorsForGroup | back to summary |
|---|---|
| private void addMatchingDescriptorsForGroup(Class<?> group, Set<ConstraintDescriptor<?>> matchingDescriptors) | |
| declaredOn | back to summary |
|---|---|
| public ElementDescriptor. Implements jakarta. Doc from jakarta. Restricts to the constraints hosted on the listed Defaults to all possible types of the element.
Typically used to restrict to fields (
| |
| findMatchingDescriptors | back to summary |
|---|---|
| private void findMatchingDescriptors(Set<ConstraintDescriptor<?>> matchingDescriptors) | |
| getConstraintDescriptors | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Retrieves the constraint descriptors following the defined
restrictions and hosted on the element described by
| |
| hasConstraints | back to summary |
|---|---|
| public boolean hasConstraints() Implements jakarta. Doc from jakarta. Returns
| |
| lookingAt | back to summary |
|---|---|
| public ElementDescriptor. Implements jakarta. Doc from jakarta. Restricts to the constraints matching the provided scope for this element.
Defaults to
| |
| unorderedAndMatchingGroups | back to summary |
|---|---|
| public ElementDescriptor. Implements jakarta. Doc from jakarta. Restricts to the constraints matching a given set of groups for this element.
This method respects group conversion, group sequences
and group inheritance (including class-level
| |