|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.clazz.common.ClazzElementSupport
org.apache.commons.clazz.common.ClazzFeatureSupport
org.apache.commons.clazz.reflect.common.ReflectedAccessorPairProperty
| Constructor Summary | |
ReflectedAccessorPairProperty(org.apache.commons.clazz.Clazz declaringClazz,
String name)
Constructor for ReflectedClazzProperty. |
|
| Method Summary | |
Object |
get(Object instance)
|
String[] |
getAliases()
Returns the aliases. |
org.apache.commons.clazz.Clazz |
getClazz()
Returns the property type. |
org.apache.commons.clazz.Clazz |
getContentClazz()
Gets the type of the item if the property isCollection() or
isMap(). |
Field |
getField()
Returns the field. |
org.apache.commons.clazz.Clazz |
getKeyClazz()
Gets the type of the key if the property isMap(). |
String |
getName()
Returns the name of the property. |
Method |
getReadMethod()
Returns the readMethod. |
Class |
getType()
Returns the type. |
Method |
getWriteMethod()
Returns the writeMethod. |
boolean |
isCollection()
Returns true if the property is a collection. |
boolean |
isMap()
Returns true if the property is a map. |
boolean |
isReadOnly()
|
void |
set(Object instance,
Object value)
|
void |
setAliases(String[] aliases)
Sets the aliases. |
void |
setField(Field field)
Sets the field. |
void |
setReadMethod(Method readMethod)
Sets the readMethod. |
void |
setType(Class type)
Sets the type. |
void |
setWriteMethod(Method writeMethod)
Sets the writeMethod. |
| Methods inherited from class org.apache.commons.clazz.common.ClazzFeatureSupport |
getDeclaringClazz |
| Methods inherited from class org.apache.commons.clazz.common.ClazzElementSupport |
getAttribute, getAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.clazz.ClazzFeature |
getDeclaringClazz |
| Methods inherited from interface org.apache.commons.clazz.ClazzElement |
getAttribute, getAttributes |
| Constructor Detail |
public ReflectedAccessorPairProperty(org.apache.commons.clazz.Clazz declaringClazz,
String name)
| Method Detail |
public String getName()
org.apache.commons.clazz.ClazzProperty
getName in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.getName()public String[] getAliases()
getAliases in interface ReflectedPropertypublic void setAliases(String[] aliases)
aliases - The aliases to setpublic org.apache.commons.clazz.Clazz getClazz()
org.apache.commons.clazz.ClazzProperty
getClazz in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.getClazz()public org.apache.commons.clazz.Clazz getContentClazz()
org.apache.commons.clazz.ClazzPropertyisCollection() or
isMap().
getContentClazz in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.getContentClazz()public org.apache.commons.clazz.Clazz getKeyClazz()
org.apache.commons.clazz.ClazzPropertyisMap().
getKeyClazz in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.getKeyClazz()public boolean isReadOnly()
isReadOnly in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.isReadOnly()public Field getField()
public Method getReadMethod()
public void setField(Field field)
field - The field to setpublic void setReadMethod(Method readMethod)
readMethod - The readMethod to setpublic Method getWriteMethod()
public void setWriteMethod(Method writeMethod)
writeMethod - The writeMethod to setpublic Object get(Object instance)
get in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.get(java.lang.Object)
public void set(Object instance,
Object value)
set in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.set(Object, Object)public Class getType()
public void setType(Class type)
type - The type to setpublic boolean isCollection()
org.apache.commons.clazz.ClazzProperty
isCollection in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.isCollection()public boolean isMap()
org.apache.commons.clazz.ClazzProperty
isMap in interface org.apache.commons.clazz.ClazzPropertyClazzProperty.isMap()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||