|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.metadata.aggregated.MetaDataBuilder
public abstract class MetaDataBuilder
Builds ConstraintMetaData instances for the
ConstrainedElement objects representing one method or property in a
type's inheritance hierarchy.
| Field Summary | |
|---|---|
protected ConstraintHelper |
constraintHelper
|
| Constructor Summary | |
|---|---|
protected |
MetaDataBuilder(Class<?> beanClass,
ConstraintHelper constraintHelper)
|
| Method Summary | |
|---|---|
abstract boolean |
accepts(ConstrainedElement constrainedElement)
Whether this builder allows to add the given element or not. |
protected Set<MetaConstraint<?>> |
adaptOriginsAndImplicitGroups(Set<MetaConstraint<?>> constraints)
Adapts the given constraints to the given bean type. |
void |
add(ConstrainedElement constrainedElement)
Adds the given element to this builder. |
abstract ConstraintMetaData |
build()
Creates a new, read-only ConstraintMetaData object with all
constraint information related to the method or property represented by
this builder. |
protected Set<MetaConstraint<?>> |
getConstraints()
|
protected Map<Class<?>,Class<?>> |
getGroupConversions()
|
protected boolean |
isCascading()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ConstraintHelper constraintHelper
| Constructor Detail |
|---|
protected MetaDataBuilder(Class<?> beanClass,
ConstraintHelper constraintHelper)
| Method Detail |
|---|
public abstract boolean accepts(ConstrainedElement constrainedElement)
constrainedElement - The element to check.
true if the given element can be added to this
builder, false otherwise.public void add(ConstrainedElement constrainedElement)
accepts(ConstrainedElement) before, whether this is allowed or
not.
constrainedElement - The element to add.public abstract ConstraintMetaData build()
ConstraintMetaData object with all
constraint information related to the method or property represented by
this builder.
ConstraintMetaData object.protected Map<Class<?>,Class<?>> getGroupConversions()
protected Set<MetaConstraint<?>> getConstraints()
protected boolean isCascading()
protected Set<MetaConstraint<?>> adaptOriginsAndImplicitGroups(Set<MetaConstraint<?>> constraints)
ConstraintOrigin.DEFINED_IN_HIERARCHY. If a
constraint is defined on an interface, the interface type will
additionally be part of the constraint's groups (implicit grouping).
constraints - The constraints that shall be adapted. The constraints themselves
will not be altered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||