In order to provide a unified access to all JavaBeans constraints also class-level constraints are represented by this meta data type.
Identity is solely based on the property name, hence sets and similar collections of this type may only be created in the scope of one Java type.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| private | PropertyMetaData(String propertyName, Type type, Set<MetaConstraint<?>> constraints, Set<MetaConstraint<?>> containerElementsConstraints, Set<Cascadable> cascadables)
|
| Modifier and Type | Method and Description |
|---|---|
| public PropertyDescriptorImpl | asDescriptor(boolean
Whether the bean hosting the represented element has a
redefined default group sequence or not. defaultGroupSequenceRedefined, List<Class<?>> The default group sequence of the bean hosting the represented
element. defaultGroupSequence)Implements org. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides org. |
| public Set | |
| public ElementKind | getKind()
Implements org. kind of this meta data object.
|
| public int | hashCode()
Overrides org. |
| public String | toString()
Overrides org. |
| cascadables | back to summary |
|---|---|
| private final Set<Cascadable> cascadables
| |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| PropertyMetaData | back to summary |
|---|---|
| private PropertyMetaData(String propertyName, Type type, Set<MetaConstraint<?>> constraints, Set<MetaConstraint<?>> containerElementsConstraints, Set<Cascadable> cascadables) | |
| asDescriptor | back to summary |
|---|---|
| public PropertyDescriptorImpl asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence) Implements org. Doc from org. Returns this meta data object's corresponding representation in the descriptor model.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides org. 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. | |
| getCascadables | back to summary |
|---|---|
| public Set Returns the cascadables of this property, if any. Often, there will be just a single element returned. Several elements may be returned in the following cases:
| |
| getKind | back to summary |
|---|---|
| public ElementKind getKind() Implements org. Doc from org. Returns the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final String | |
| private final Type | |
| private static final EnumSet |
| Access | Constructor and Description |
|---|---|
| public | Builder(Class<?> beanClass, ConstrainedField constrainedProperty, ConstraintCreationContext constraintCreationContext)
|
| public | Builder(Class<?> beanClass, ConstrainedExecutable constrainedMethod, ConstraintCreationContext constraintCreationContext)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accepts(ConstrainedElement
The element to check. constrainedElement)Implements abstract org. |
| protected Set | adaptConstraints(ConstrainedElement constrainedElement, Set<MetaConstraint<?>> constraints)
Overrides org. |
| public final void | add(ConstrainedElement
The element to add. constrainedElement)Overrides org. |
| public PropertyMetaData | build()
Implements abstract org. ConstraintMetaData object with all
constraint information related to the method or property represented by
this builder.
|
| private Property | |
| private String | |
| private MetaConstraint |
| cascadableBuilders | back to summary |
|---|---|
| private final Map<Property, Cascadable. | |
| propertyName | back to summary |
|---|---|
| private final String propertyName | |
| propertyType | back to summary |
|---|---|
| private final Type propertyType | |
| SUPPORTED_ELEMENT_KINDS | back to summary |
|---|---|
| private static final EnumSet<ConstrainedElement. | |
| Builder | back to summary |
|---|---|
| public Builder(Class<?> beanClass, ConstrainedField constrainedProperty, ConstraintCreationContext constraintCreationContext) | |
| Builder | back to summary |
|---|---|
| public Builder(Class<?> beanClass, ConstrainedExecutable constrainedMethod, ConstraintCreationContext constraintCreationContext) | |
| accepts | back to summary |
|---|---|
| public boolean accepts(ConstrainedElement constrainedElement) Implements abstract org. Doc from org. 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 Overrides org. Doc from org. Allows specific sub-classes to customize the retrieved constraints.
| |
| add | back to summary |
|---|---|
| public final void add(ConstrainedElement constrainedElement) Overrides org. Doc from org. Adds the given element to this builder. It must be checked with
| |
| build | back to summary |
|---|---|
| public PropertyMetaData build() Implements abstract org. Doc from org. Creates a new, read-only
| |
| getConstrainableFromConstrainedElement | back to summary |
|---|---|
| private Property getConstrainableFromConstrainedElement(ConstrainedElement constrainedElement) | |
| getPropertyName | back to summary |
|---|---|
| private String getPropertyName(ConstrainedElement constrainedElement) | |
| withGetterLocation | back to summary |
|---|---|
| private MetaConstraint | |