|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.beans.FeatureDescriptor org.onemind.commons.relabean.RelationDescriptor
Describe relation between a bean and another bean
Constructor Summary | |
RelationDescriptor(java.lang.String name,
java.lang.Class type,
java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod)
Constructor {@inheritDoc} |
|
RelationDescriptor(java.lang.String name,
java.lang.Class type,
java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod,
java.lang.Class memberType,
java.lang.reflect.Method addMethod,
java.lang.reflect.Method removeMethod)
Constructor {@inheritDoc} |
Method Summary | |
void |
dump(java.lang.String prefix,
java.io.Writer writer)
Dump the property |
java.lang.reflect.Method |
getAddMethod()
Get the add method |
java.lang.Class |
getMemberType()
Get the member type |
java.lang.String |
getName()
Returns the name. |
java.lang.reflect.Method |
getReadMethod()
Returns the getMethod. |
java.lang.Class |
getRelationType()
Return relation type |
java.lang.reflect.Method |
getRemoveMethod()
Returns the removeMethod. |
java.lang.reflect.Method |
getWriteMethod()
Returns the writeMethod. |
void |
setAddMethod(java.lang.reflect.Method method)
Set the method |
void |
setMemberType(java.lang.Class c)
Set the member type |
void |
setReadMethod(java.lang.reflect.Method method)
Set the read method |
void |
setRelationType(java.lang.Class class1)
Set the relation type |
void |
setRemoveMethod(java.lang.reflect.Method method)
Set the remove method |
void |
setWriteMethod(java.lang.reflect.Method method)
Set the write method |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RelationDescriptor(java.lang.String name, java.lang.Class type, java.lang.reflect.Method readMethod, java.lang.reflect.Method writeMethod)
public RelationDescriptor(java.lang.String name, java.lang.Class type, java.lang.reflect.Method readMethod, java.lang.reflect.Method writeMethod, java.lang.Class memberType, java.lang.reflect.Method addMethod, java.lang.reflect.Method removeMethod)
Method Detail |
public java.lang.reflect.Method getReadMethod()
public java.lang.String getName()
public java.lang.reflect.Method getRemoveMethod()
public java.lang.reflect.Method getWriteMethod()
public java.lang.reflect.Method getAddMethod()
public void setAddMethod(java.lang.reflect.Method method)
method
- the set methodpublic java.lang.Class getRelationType()
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 problempublic java.lang.Class getMemberType()
public void setMemberType(java.lang.Class c)
c
- the member type to setpublic void setReadMethod(java.lang.reflect.Method method)
method
- the read methodpublic void setRelationType(java.lang.Class class1)
class1
- the typepublic void setRemoveMethod(java.lang.reflect.Method method)
method
- the methodpublic void setWriteMethod(java.lang.reflect.Method method)
method
- the method
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |