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, iterator
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public PropertyDescriptorImpl asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
ConstraintMetaData
defaultGroupSequenceRedefined
- 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)@Valid
public String toString()
toString
in class AbstractConstraintMetaData
public ElementKind getKind()
ConstraintMetaData
kind
of this meta data object.kind
of this meta data object.public int hashCode()
hashCode
in class AbstractConstraintMetaData
public boolean equals(Object obj)
equals
in class AbstractConstraintMetaData
Copyright © 2021 JBoss by Red Hat. All rights reserved.