BeanMetaData contains metadata about a bean class.
| Modifier and Type | Field and Description |
|---|---|
| private Class | beanClass
The class of the bean |
| private static final DocumentFactory | |
| private Map | nameMap
Index of names and QNames to indices Keys are type of QName and String |
| protected static final Object[] | NULL_ARGS
Empty arguments for reflection calls |
| private PropertyDescriptor[] | propertyDescriptors
Property descriptors for the bean |
| private QName[] | qNames
QNames for the attributes |
| private Method[] | readMethods
Read methods used for getting properties |
| private static Map | singletonCache
Singleton cache |
| private Method[] | writeMethods
Write methods used for setting properties |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public BeanAttributeList | |
| public static BeanMetaData | |
| public Object | |
| public int | |
| public int | |
| public QName | |
| protected void | |
| public void |
| beanClass | back to summary |
|---|---|
| private Class<?> beanClass The class of the bean | |
| DOCUMENT_FACTORY | back to summary |
|---|---|
| private static final DocumentFactory DOCUMENT_FACTORY | |
| nameMap | back to summary |
|---|---|
| private Map<Object, Integer> nameMap Index of names and QNames to indices Keys are type of QName and String | |
| NULL_ARGS | back to summary |
|---|---|
| protected static final Object[] NULL_ARGS Empty arguments for reflection calls | |
| propertyDescriptors | back to summary |
|---|---|
| private PropertyDescriptor[] propertyDescriptors Property descriptors for the bean | |
| qNames | back to summary |
|---|---|
| private QName[] qNames QNames for the attributes | |
| readMethods | back to summary |
|---|---|
| private Method[] readMethods Read methods used for getting properties | |
| singletonCache | back to summary |
|---|---|
| private static Map<Class<?>, BeanMetaData> singletonCache Singleton cache | |
| writeMethods | back to summary |
|---|---|
| private Method[] writeMethods Write methods used for setting properties | |
| BeanMetaData | back to summary |
|---|---|
| public BeanMetaData(Class<?> beanClass) | |
| attributeCount | back to summary |
|---|---|
| public int attributeCount() DOCUMENT ME!
| |
| createAttributeList | back to summary |
|---|---|
| public BeanAttributeList createAttributeList(BeanElement parent) | |
| get | back to summary |
|---|---|
| public static BeanMetaData get(Class<?> beanClass) Static helper method to find and cache meta data objects for bean types
| |
| getData | back to summary |
|---|---|
| public Object getData(int index, Object bean) | |
| getIndex | back to summary |
|---|---|
| public int getIndex(String name) | |
| getIndex | back to summary |
|---|---|
| public int getIndex(QName qName) | |
| getQName | back to summary |
|---|---|
| public QName getQName(int index) | |
| handleException | back to summary |
|---|---|
| protected void handleException(Exception e) | |
| setData | back to summary |
|---|---|
| public void setData(int index, Object bean, Object data) | |