|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.onemind.commons.relabean.RelationalBeanModel
A RelationalBeanModel describe a set of inter-related beans in terms of their properties and relation to each others.
| Constructor Summary | |
RelationalBeanModel(RelationalBeanModelDescriptor desc)
Constructor {@inheritDoc} |
|
| Method Summary | |
void |
addBeanInfo(RelationalBeanInfo info)
Add a bean info |
void |
dump(java.lang.String prefix,
java.io.Writer writer)
Dump the property |
RelationalBeanInfo |
getBeanInfo(java.lang.Class beanClass)
Get a bean info |
java.util.Collection |
getBeanInfos()
Get all the bean infos |
RelationalBeanModelDescriptor |
getDescriptor()
The descriptor |
java.lang.Object |
readProperty(java.lang.Object obj,
java.lang.String propName)
Read the value of the property of bean |
void |
setDesc(RelationalBeanModelDescriptor descriptor)
Set the descriptor |
java.lang.Object |
writeProperty(java.lang.Object obj,
java.lang.String propName,
java.lang.Object value)
Write the property to the bean |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RelationalBeanModel(RelationalBeanModelDescriptor desc)
| Method Detail |
public void addBeanInfo(RelationalBeanInfo info)
info - the relational bean infopublic RelationalBeanInfo getBeanInfo(java.lang.Class beanClass)
beanClass - the class
public java.util.Collection getBeanInfos()
public RelationalBeanModelDescriptor getDescriptor()
public void setDesc(RelationalBeanModelDescriptor descriptor)
descriptor - the descriptor
public void dump(java.lang.String prefix,
java.io.Writer writer)
throws java.io.IOException
prefix - the prefixwriter - the writer
java.io.IOException - if there's IO problem
public java.lang.Object readProperty(java.lang.Object obj,
java.lang.String propName)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
obj - the beanpropName - the property
java.lang.IllegalAccessException - if there's access problem
java.lang.reflect.InvocationTargetException - if there's exception invoking method
public java.lang.Object writeProperty(java.lang.Object obj,
java.lang.String propName,
java.lang.Object value)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
obj - the beanpropName - the property namevalue - the bean value to set/write
java.lang.IllegalAccessException - if there's access problem
java.lang.reflect.InvocationTargetException - if there's exception invoking method
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||