|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.clazz.common.ClazzElementSupport org.apache.commons.clazz.common.ClazzFeatureSupport org.apache.commons.clazz.reflect.common.ReflectedAccessorPairProperty org.apache.commons.clazz.reflect.extended.ReflectedMappedProperty
public class ReflectedMappedProperty
Constructor Summary | |
---|---|
ReflectedMappedProperty(Clazz declaringClazz,
String name)
Constructor for ReflectedMappedProperty. |
Method Summary | |
---|---|
Object |
get(Object instance)
|
Class |
getContentType()
Returns the contentType. |
Method |
getGetMethod()
Returns the getMethod. |
Method |
getKeySetMethod()
Returns the keySetMethod. |
Class |
getKeyType()
Returns the keyType. |
Map |
getMap(Object instance)
|
Method |
getPutMethod()
Returns the putMethod. |
Method |
getRemoveMethod()
Returns the removeMethod. |
boolean |
isMap()
Returns true if the property is a map. |
void |
set(Object instance,
Object value)
|
void |
setContentType(Class valueType)
Sets the contentType. |
void |
setGetMethod(Method getMethod)
Sets the getMethod. |
void |
setKeySetMethod(Method keySetMethod)
Sets the keySetMethod. |
void |
setKeyType(Class keyType)
Sets the keyType. |
void |
setPutMethod(Method putMethod)
Sets the putMethod. |
void |
setRemoveMethod(Method removeMethod)
Sets the removeMethod. |
String |
toString()
|
Methods inherited from class org.apache.commons.clazz.reflect.common.ReflectedAccessorPairProperty |
---|
getAliases, getClazz, getContentClazz, getField, getKeyClazz, getName, getReadMethod, getType, getWriteMethod, isCollection, isReadOnly, setAliases, setField, setReadMethod, setType, setWriteMethod |
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, 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 ReflectedMappedProperty(Clazz declaringClazz, String name)
declaringClazz
- name
- Method Detail |
---|
public boolean isMap()
ClazzProperty
isMap
in interface ClazzProperty
isMap
in class ReflectedAccessorPairProperty
ClazzProperty.isMap()
public Class getKeyType()
public void setKeyType(Class keyType)
keyType
- The keyType to setpublic Class getContentType()
public void setContentType(Class valueType)
contentType
- The contentType to setpublic Method getGetMethod()
public void setGetMethod(Method getMethod)
getMethod
- The getMethod to setpublic Method getPutMethod()
public void setPutMethod(Method putMethod)
putMethod
- The putMethod to setpublic Method getRemoveMethod()
public void setRemoveMethod(Method removeMethod)
removeMethod
- The removeMethod to setpublic Method getKeySetMethod()
public void setKeySetMethod(Method keySetMethod)
keySetMethod
- The keySetMethod to setpublic String toString()
toString
in class Object
public Object get(Object instance)
get
in interface ClazzProperty
get
in class ReflectedAccessorPairProperty
ClazzProperty.get(java.lang.Object)
public Map getMap(Object instance)
public void set(Object instance, Object value)
set
in interface ClazzProperty
set
in class ReflectedAccessorPairProperty
ClazzProperty.set(Object, Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |