|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData
org.hibernate.validator.internal.metadata.aggregated.PropertyMetaData
public class PropertyMetaData
Represents the constraint related meta data for a JavaBeans property. Abstracts from the concrete physical type of the underlying Java element(s) (fields or getter methods).
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.
| Nested Class Summary | |
|---|---|
static class |
PropertyMetaData.Builder
|
| Method Summary | |
|---|---|
PropertyDescriptorImpl |
asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
Returns this meta data object's corresponding representation in the descriptor model. |
Class<?> |
convertGroup(Class<?> from)
Converts the given validation group as per the group conversion configuration for this element (as e.g. |
boolean |
equals(Object obj)
|
ElementType |
getElementType()
|
Set<GroupConversionDescriptor> |
getGroupConversionDescriptors()
Returns a set with GroupConversionDescriptors representing the
group conversions of this cascadable. |
Object |
getValue(Object parent)
Retrieves the value of this element from the given object. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class org.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData |
|---|
asDescriptors, getConstraints, getKind, getName, getType, isCascading, isConstrained, iterator |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.hibernate.validator.internal.metadata.facets.Cascadable |
|---|
getKind, getName |
| Method Detail |
|---|
public Object getValue(Object parent)
Cascadable
getValue in interface Cascadableparent - The object to retrieve the value from.
public ElementType getElementType()
getElementType in interface Cascadablepublic Class<?> convertGroup(Class<?> from)
Cascadable@ConvertGroup.
convertGroup in interface Cascadablefrom - The group to convert.
public Set<GroupConversionDescriptor> getGroupConversionDescriptors()
CascadableGroupConversionDescriptors representing the
group conversions of this cascadable.
getGroupConversionDescriptors in interface Cascadablenull.
public PropertyDescriptorImpl asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
ConstraintMetaData
asDescriptor in interface 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 String toString()
toString in class AbstractConstraintMetaDatapublic int hashCode()
hashCode in class AbstractConstraintMetaDatapublic boolean equals(Object obj)
equals in class AbstractConstraintMetaData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||