Package org.dom4j.bean
Class BeanMetaData
- java.lang.Object
-
- org.dom4j.bean.BeanMetaData
-
public class BeanMetaData extends java.lang.Object
BeanMetaData
contains metadata about a bean class.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.Object[]
NULL_ARGS
Empty arguments for reflection calls
-
Constructor Summary
Constructors Constructor Description BeanMetaData(java.lang.Class<?> beanClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
attributeCount()
DOCUMENT ME!BeanAttributeList
createAttributeList(BeanElement parent)
static BeanMetaData
get(java.lang.Class<?> beanClass)
Static helper method to find and cache meta data objects for bean typesjava.lang.Object
getData(int index, java.lang.Object bean)
int
getIndex(java.lang.String name)
int
getIndex(QName qName)
QName
getQName(int index)
protected void
handleException(java.lang.Exception e)
void
setData(int index, java.lang.Object bean, java.lang.Object data)
-
-
-
Method Detail
-
get
public static BeanMetaData get(java.lang.Class<?> beanClass)
Static helper method to find and cache meta data objects for bean types- Parameters:
beanClass
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
attributeCount
public int attributeCount()
DOCUMENT ME!- Returns:
- the number of attribtutes for this bean type
-
createAttributeList
public BeanAttributeList createAttributeList(BeanElement parent)
-
getQName
public QName getQName(int index)
-
getIndex
public int getIndex(java.lang.String name)
-
getIndex
public int getIndex(QName qName)
-
getData
public java.lang.Object getData(int index, java.lang.Object bean)
-
setData
public void setData(int index, java.lang.Object bean, java.lang.Object data)
-
handleException
protected void handleException(java.lang.Exception e)
-
-