public class BeanMetaData extends Object
BeanMetaData
contains metadata about a bean class.
Modifier and Type | Field and Description |
---|---|
private Class |
beanClass
The class of the bean
|
private static DocumentFactory |
DOCUMENT_FACTORY |
private Map |
nameMap
Index of names and QNames to indices
|
protected static 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
|
Constructor and Description |
---|
BeanMetaData(Class beanClass) |
Modifier and Type | Method and Description |
---|---|
int |
attributeCount() |
BeanAttributeList |
createAttributeList(BeanElement parent) |
static BeanMetaData |
get(Class beanClass)
Static helper method to find and cache meta data objects for bean types
|
Object |
getData(int index,
Object bean) |
int |
getIndex(QName qName) |
int |
getIndex(String name) |
QName |
getQName(int index) |
protected void |
handleException(Exception e) |
void |
setData(int index,
Object bean,
Object data) |
private static Map singletonCache
private static final DocumentFactory DOCUMENT_FACTORY
private PropertyDescriptor[] propertyDescriptors
private Method[] readMethods
private Method[] writeMethods
public BeanMetaData(Class beanClass)
public static BeanMetaData get(Class beanClass)
public int attributeCount()
public BeanAttributeList createAttributeList(BeanElement parent)
protected void handleException(Exception e)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses