public class PropertyMetaData extends AbstractConstraintMetaData
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 |
|---|---|
static class |
PropertyMetaData.Builder |
| Modifier and Type | Method and Description |
|---|---|
PropertyDescriptorImpl |
asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
Returns this meta data object's corresponding representation in the
descriptor model.
|
boolean |
equals(Object obj) |
Set<Cascadable> |
getCascadables()
Returns the cascadables of this property, if any.
|
ElementKind |
getKind()
Returns the
kind of this meta data object. |
int |
hashCode() |
String |
toString() |
asContainerElementTypeDescriptors, asDescriptors, getAllConstraints, getContainerElementsConstraints, getDirectConstraints, getName, getType, isCascading, isConstrained, iteratorclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic PropertyDescriptorImpl asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
ConstraintMetaDatadefaultGroupSequenceRedefined - Whether the bean hosting the represented element has a
redefined default group sequence or not.defaultGroupSequence - The default group sequence of the bean hosting the represented
element.ElementDescriptor.public Set<Cascadable> getCascadables()
@Valid but type-level constraints have been given on the
getter@Valid on the field (e.g. a map's key) but
another type parameter has been marked with @Valid on the property (e.g. the map's value)@Validpublic String toString()
toString in class AbstractConstraintMetaDatapublic ElementKind getKind()
ConstraintMetaDatakind of this meta data object.kind of this meta data object.public int hashCode()
hashCode in class AbstractConstraintMetaDatapublic boolean equals(Object obj)
equals in class AbstractConstraintMetaDataCopyright © 2019 JBoss by Red Hat. All rights reserved.