ConstraintMetaData instances for the
ConstrainedElement objects representing one method or property in a
type's inheritance hierarchy.
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| protected final ConstraintCreationContext | |
| private final Set | |
| private final Set | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract boolean | Returns: true if the given element can be added to this
builder, false otherwise.The element to check. constrainedElement)Whether this builder allows to add the given element or not. |
| protected Set | adaptConstraints(ConstrainedElement constrainedElement, Set<MetaConstraint<?>> constraints)
Allows specific sub-classes to customize the retrieved constraints. |
| private <A extends Annotation> MetaConstraint | |
| protected Set | Returns: A constraint adapted to the given bean type.The constraints that shall be adapted. The constraints themselves
will not be altered. constraints)Adapts the given constraints to the given bean type. |
| public void | add(ConstrainedElement
The element to add. constrainedElement)Adds the given element to this builder. |
| public abstract ConstraintMetaData | Returns: AConstraintMetaData object.Creates a new, read-only |
| private ConstraintOrigin | Returns: ReturnsConstraintOrigin.DEFINED_LOCALLY if the
constraint was defined on the root bean,
ConstraintOrigin.DEFINED_IN_HIERARCHY otherwise.The root class. That is the class for which we currently
create a rootClass, Class<?> BeanMetaDataThe class on which the current constraint is defined on hierarchyClass)
|
| protected Class | |
| public Set | |
| protected Set | |
| protected boolean |
| beanClass | back to summary |
|---|---|
| private final Class<?> beanClass | |
| constraintCreationContext | back to summary |
|---|---|
| protected final ConstraintCreationContext constraintCreationContext | |
| containerElementsConstraints | back to summary |
|---|---|
| private final Set<MetaConstraint<?>> containerElementsConstraints | |
| directConstraints | back to summary |
|---|---|
| private final Set<MetaConstraint<?>> directConstraints | |
| isCascading | back to summary |
|---|---|
| private boolean isCascading | |
| MetaDataBuilder | back to summary |
|---|---|
| protected MetaDataBuilder(Class<?> beanClass, ConstraintCreationContext constraintCreationContext) | |
| accepts | back to summary |
|---|---|
| public abstract boolean accepts(ConstrainedElement constrainedElement) Whether this builder allows to add the given element or not. This is the case if the specified element relates to the same property or method with which this builder was instantiated.
| |
| adaptConstraints | back to summary |
|---|---|
| protected Set Allows specific sub-classes to customize the retrieved constraints. | |
| adaptOriginAndImplicitGroup | back to summary |
|---|---|
| private <A extends Annotation> MetaConstraint | |
| adaptOriginsAndImplicitGroups | back to summary |
|---|---|
| protected Set Adapts the given constraints to the given bean type. In case a constraint
is defined locally at the bean class the original constraint will be
returned without any modifications. If a constraint is defined in the
hierarchy (interface or super class) a new constraint will be returned
with an origin of
| |
| add | back to summary |
|---|---|
| public void add(ConstrainedElement constrainedElement) Adds the given element to this builder. It must be checked with
| |
| build | back to summary |
|---|---|
| public abstract ConstraintMetaData build() Creates a new, read-only
| |
| definedIn | back to summary |
|---|---|
private ConstraintOrigin definedIn(Class<?> rootClass, Class<?> hierarchyClass)
| |
| getBeanClass | back to summary |
|---|---|
| protected Class | |
| getContainerElementConstraints | back to summary |
|---|---|
| public Set | |
| getDirectConstraints | back to summary |
|---|---|
| protected Set | |
| isCascading | back to summary |
|---|---|
| protected boolean isCascading() | |