|
||||||||||
| 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.bean.BeanClazzProperty
public class BeanClazzProperty
| Constructor Summary | |
|---|---|
BeanClazzProperty(Clazz declaringClazz,
String name)
|
|
BeanClazzProperty(Clazz declaringClazz,
String name,
String type)
|
|
| Method Summary | |
|---|---|
Object |
get(Object instance)
|
Clazz |
getClazz()
Returns the property type. |
Clazz |
getContentClazz()
Gets the type of the item if the property isCollection() or
isMap(). |
Clazz |
getKeyClazz()
Gets the type of the key if the property isMap(). |
String |
getName()
Returns the name of the property. |
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)
|
| 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 BeanClazzProperty(Clazz declaringClazz,
String name)
public BeanClazzProperty(Clazz declaringClazz,
String name,
String type)
| Method Detail |
|---|
public String getName()
ClazzProperty
getName in interface ClazzPropertyClazzProperty.getName()public Clazz getClazz()
ClazzProperty
getClazz in interface ClazzPropertyClazzProperty.getClazz()public boolean isCollection()
isCollection in interface ClazzPropertypublic boolean isMap()
isMap in interface ClazzPropertypublic Clazz getContentClazz()
ClazzPropertyisCollection() or
isMap().
getContentClazz in interface ClazzPropertyClazzProperty.getContentClazz()public Clazz getKeyClazz()
ClazzPropertyisMap().
getKeyClazz in interface ClazzPropertyClazzProperty.getKeyClazz()public boolean isReadOnly()
isReadOnly in interface ClazzPropertyClazzProperty.isReadOnly()public Object get(Object instance)
get in interface ClazzPropertyClazzProperty.get(java.lang.Object)
public void set(Object instance,
Object value)
set in interface ClazzPropertyClazzProperty.set(Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||