|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Property
It would be nice if PropertyDescriptor
, and the various reflection
types like Member
had a common supertype, but they don't. This is it.
Method Summary | |
---|---|
java.lang.String |
getName()
Gets the name of this property |
java.lang.Class |
getPropertyType()
What type does this property |
java.lang.reflect.Method |
getSetter()
This is a nasty hack - TypeHintContext needs a Method . |
java.lang.Object |
getValue(java.lang.Object bean)
Get the value of this property of the passed in java bean |
void |
setValue(java.lang.Object bean,
java.lang.Object value)
Set the value of this property of the passed in java bean |
Method Detail |
---|
java.lang.String getName()
java.lang.Class getPropertyType()
getValue(Object)
java.lang.Object getValue(java.lang.Object bean) throws MarshallException
bean
- The bean to introspect
MarshallException
- If the reflection access failsvoid setValue(java.lang.Object bean, java.lang.Object value) throws MarshallException
bean
- The bean to introspectvalue
- The value assigned to this property of the passed in bean
MarshallException
- If the reflection access failsjava.lang.reflect.Method getSetter()
TypeHintContext
needs a Method
.
If you are implementing this and not proxying to a PropertyDescriptor
then you can probably return null
.
We should probably refactor TypeHintContext
to use Property
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |