| Modifier and Type | Class and Description |
|---|---|
| public static interface | ElementDescriptor.ConstraintFinder
Declares restrictions on retrieved constraints. |
| Modifier and Type | Method and Description |
|---|---|
| public ElementDescriptor. | Returns: ConstraintFinder objectFinds constraints and potentially restricts them to certain criteria. |
| public Set | Returns: Set of constraint descriptors for this elementReturns all constraint descriptors for this element in the class hierarchy
or an empty |
| public Class | |
| public boolean | Returns: returnstrue if at least one constraint declaration is present
for this element in the class hierarchy, false otherwise
|
| findConstraints | back to summary |
|---|---|
| public ElementDescriptor. Finds constraints and potentially restricts them to certain criteria.
| |
| getConstraintDescriptors | back to summary |
|---|---|
| public Set Returns all constraint descriptors for this element in the class hierarchy
or an empty
| |
| getElementClass | back to summary |
|---|---|
public Class
| |
| hasConstraints | back to summary |
|---|---|
public boolean hasConstraints()
| |
A ConstraintFinder is not thread-safe. The set of matching
ConstraintDescriptor is.
| Modifier and Type | Method and Description |
|---|---|
| public ElementDescriptor. | Returns: this following the chaining method patterntargeted types types)Restricts to the constraints hosted on the listed |
| public Set | Returns: matching constraint descriptorsRetrieves the constraint descriptors following the defined
restrictions and hosted on the element described by
|
| public boolean | Returns: true if there is at least one constraintReturns |
| public ElementDescriptor. | |
| public ElementDescriptor. | Returns: this following the chaining method patterngroups targeted groups)Restricts to the constraints matching a given set of groups for this element. |
| declaredOn | back to summary |
|---|---|
| public ElementDescriptor. Restricts to the constraints hosted on the listed Defaults to all possible types of the element.
Typically used to restrict to fields (
| |
| getConstraintDescriptors | back to summary |
|---|---|
| public Set Retrieves the constraint descriptors following the defined
restrictions and hosted on the element described by
| |
| hasConstraints | back to summary |
|---|---|
| public boolean hasConstraints() Returns
| |
| lookingAt | back to summary |
|---|---|
| public ElementDescriptor. Restricts to the constraints matching the provided scope for this element.
Defaults to
| |
| unorderedAndMatchingGroups | back to summary |
|---|---|
| public ElementDescriptor. 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
| |