public interface BeanMetaData<T>
Modifier and Type | Method and Description |
---|---|
boolean |
defaultGroupSequenceIsRedefined() |
Set<MethodMetaData> |
getAllMethodMetaData()
Returns the constraint-related meta data for all the methods of the type
represented by this bean meta data.
|
Set<PropertyMetaData> |
getAllPropertyMetaData() |
Class<T> |
getBeanClass() |
BeanDescriptor |
getBeanDescriptor() |
Set<Member> |
getCascadedMembers() |
List<Class<?>> |
getClassHierarchy() |
List<Class<?>> |
getDefaultGroupSequence(T beanState)
Get the composition of the default group sequence.
|
Set<MetaConstraint<?>> |
getDirectMetaConstraints() |
Set<MetaConstraint<?>> |
getMetaConstraints() |
MethodMetaData |
getMetaDataFor(Method method)
Returns the constraint-related meta data for the given method of the
class represented by this bean meta data.
|
PropertyMetaData |
getMetaDataFor(String propertyName)
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<MetaConstraint<?>> getMetaConstraints()
MetaConstraint
instances encapsulating the information of all the constraints
defined on the bean. This collection includes constraints from super classes as wellSet<MetaConstraint<?>> 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 classesMethodMetaData getMetaDataFor(Method method)
method
- The method of interest.Set<MethodMetaData> getAllMethodMetaData()
PropertyMetaData getMetaDataFor(String propertyName)
PropertyDescriptor
for the given property.propertyName
- the name of 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<PropertyMetaData> getAllPropertyMetaData()
Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved