public interface BeanMetaData<T>
Modifier and Type | Method and Description |
---|---|
boolean |
defaultGroupSequenceIsRedefined() |
Set<AggregatedMethodMetaData> |
getAllMethodMetaData()
Returns the constraint-related meta data for all the methods of the type
represented by this bean meta data.
|
Class<T> |
getBeanClass() |
BeanDescriptor |
getBeanDescriptor() |
Set<Member> |
getCascadedMembers() |
List<Class<?>> |
getClassHierarchy() |
Set<PropertyDescriptor> |
getConstrainedProperties() |
List<Class<?>> |
getDefaultGroupSequence(T beanState)
Get the composition of the default group sequence.
|
Set<BeanMetaConstraint<?>> |
getDirectMetaConstraints() |
Set<BeanMetaConstraint<?>> |
getMetaConstraints() |
AggregatedMethodMetaData |
getMetaDataFor(Method method)
Returns the constraint-related meta data for the given method of the
class represented by this bean meta data.
|
PropertyDescriptor |
getPropertyDescriptor(String property)
Return
PropertyDescriptor for the given property. |
TypeDescriptor |
getTypeDescriptor() |
boolean |
isPropertyPresent(String name) |
BeanDescriptor getBeanDescriptor()
ElementDescriptor
describing the bean this meta data applies for.TypeDescriptor getTypeDescriptor()
TypeDescriptor
describing the bean this meta data applies for.Set<Member> getCascadedMembers()
List<Class<?>> getDefaultGroupSequence(T beanState)
If the bean state is given in parameter and the bean metadata has a default group sequence provider then the dynamic default group sequence composition is returned. In the other cases the default group sequence redefinition specified by BV is used.
beanState
- the bean state.boolean defaultGroupSequenceIsRedefined()
true
if the entity redefines the default group sequence, false
otherwise.Set<BeanMetaConstraint<?>> getMetaConstraints()
MetaConstraint
instances encapsulating the information of all the constraints
defined on the bean. This collection includes constraints from super classes as wellSet<BeanMetaConstraint<?>> getDirectMetaConstraints()
MetaConstraint
instances encapsulating the information of all the constraints
defined on the bean directly (including constraints defined on implemented interfaces). It does not
contain constraints from super classes or interfaces implemented by super classesAggregatedMethodMetaData getMetaDataFor(Method method)
method
- The method of interest.Set<AggregatedMethodMetaData> getAllMethodMetaData()
PropertyDescriptor getPropertyDescriptor(String property)
PropertyDescriptor
for the given property.property
- the property for which to retrieve the descriptor.PropertyDescriptor
for the given property or null
in case the
property does not have a descriptor.boolean isPropertyPresent(String name)
name
- The name of the propertySet<PropertyDescriptor> getConstrainedProperties()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.