ConstraintMetaData with attributes common
to all type of meta data.
| Modifier and Type | Class and Description |
|---|---|
| private static class | AbstractConstraintMetaData.ContainerElementMetaDataTree
This data structure is used to join the cascading metadata information with the constraint violations. |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final Set | |
| private final Set | |
| private final boolean | |
| private final boolean | |
| private final String | |
| private final Type |
| Access | Constructor and Description |
|---|---|
| public | AbstractConstraintMetaData(String name, Type type, Set<MetaConstraint<?>> directConstraints, Set<MetaConstraint<?>> containerElementsConstraints, boolean isCascading, boolean isConstrained)
|
| Modifier and Type | Method and Description |
|---|---|
| protected Set | asContainerElementTypeDescriptors(Set<MetaConstraint<?>> containerElementsConstraints, CascadingMetaData cascadingMetaData, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
|
| private Set | asContainerElementTypeDescriptors(Type type, AbstractConstraintMetaData.
|
| protected Set | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public Set | |
| public Set | |
| public Set | |
| public String | getName()
Implements org. |
| public Type | getType()
Implements org. |
| public int | |
| public final boolean | isCascading()
Implements org. |
| public boolean | isConstrained()
Implements org. |
| public Iterator | |
| public String |
| allConstraints | back to summary |
|---|---|
| private final Set<MetaConstraint<?>> allConstraints
| |
| containerElementsConstraints | back to summary |
|---|---|
| private final Set<MetaConstraint<?>> containerElementsConstraints
| |
| directConstraints | back to summary |
|---|---|
| private final Set<MetaConstraint<?>> directConstraints
| |
| isCascading | back to summary |
|---|---|
| private final boolean isCascading | |
| isConstrained | back to summary |
|---|---|
| private final boolean isConstrained | |
| name | back to summary |
|---|---|
| private final String name | |
| type | back to summary |
|---|---|
| private final Type type | |
| AbstractConstraintMetaData | back to summary |
|---|---|
| public AbstractConstraintMetaData(String name, Type type, Set<MetaConstraint<?>> directConstraints, Set<MetaConstraint<?>> containerElementsConstraints, boolean isCascading, boolean isConstrained) | |
| asContainerElementTypeDescriptors | back to summary |
|---|---|
| protected Set | |
| asContainerElementTypeDescriptors | back to summary |
|---|---|
| private Set | |
| asDescriptors | back to summary |
|---|---|
| protected Set | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAllConstraints | back to summary |
|---|---|
| public Set | |
| getContainerElementsConstraints | back to summary |
|---|---|
| public Set | |
| getDirectConstraints | back to summary |
|---|---|
| public Set | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Returns the name of this meta data object. | |
| getType | back to summary |
|---|---|
| public Type getType() Implements org. Doc from org. Returns the data type of this meta data object, e.g. the type of a bean property or the return type of a method. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isCascading | back to summary |
|---|---|
| public final boolean isCascading() Implements org. Doc from org. Whether this meta data object is marked for cascaded validation or not.
| |
| isConstrained | back to summary |
|---|---|
| public boolean isConstrained() Implements org. Doc from org. Whether this meta data object is constrained by any means or not.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
We might consider in the future having a common tree structure for the cascading metadata and the constraint violations that would be built earlier and shared. This class shouldn't be taken as a model as this data structure should be made immutable.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Set | |
| private Class | |
| private Type | |
| private Set | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private static AbstractConstraintMetaData. |
| cascading | back to summary |
|---|---|
| private boolean cascading | |
| constraints | back to summary |
|---|---|
| private final Set<MetaConstraint<?>> constraints | |
| containerClass | back to summary |
|---|---|
| private Class<?> containerClass | |
| elementType | back to summary |
|---|---|
| private Type elementType | |
| groupConversionDescriptors | back to summary |
|---|---|
| private Set<GroupConversionDescriptor> groupConversionDescriptors | |
| nodes | back to summary |
|---|---|
| private final Map<TypeVariable<?>, AbstractConstraintMetaData. | |
| ContainerElementMetaDataTree | back to summary |
|---|---|
| private ContainerElementMetaDataTree() | |
| addCascadingMetaData | back to summary |
|---|---|
| private void addCascadingMetaData(List<TypeVariable<?>> path, ContainerCascadingMetaData cascadingMetaData) | |
| addConstraint | back to summary |
|---|---|
| private void addConstraint(List<TypeVariable<?>> path, MetaConstraint<?> constraint) | |
| of | back to summary |
|---|---|
| private static AbstractConstraintMetaData. | |