org.hibernate.validator.internal.metadata.aggregated
Class PropertyMetaData
java.lang.Object
org.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData
org.hibernate.validator.internal.metadata.aggregated.PropertyMetaData
- All Implemented Interfaces:
- Iterable<MetaConstraint<?>>, ConstraintMetaData
public class PropertyMetaData
- extends AbstractConstraintMetaData
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.
- Author:
- Gunnar Morling
getCascadingMembers
public Set<Member> getCascadingMembers()
asDescriptor
public PropertyDescriptorImpl asDescriptor(boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
- Description copied from interface:
ConstraintMetaData
- Returns this meta data object's corresponding representation in the
descriptor model.
- Parameters:
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.
- Returns:
- This meta data object's corresponding descriptor model
representation. Implementations should return a specific sub type
of
ElementDescriptor.
toString
public String toString()
- Overrides:
toString in class AbstractConstraintMetaData
hashCode
public int hashCode()
- Overrides:
hashCode in class AbstractConstraintMetaData
equals
public boolean equals(Object obj)
- Overrides:
equals in class AbstractConstraintMetaData
Copyright © 2012 Oracle Corporation. All Rights Reserved.