|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.FieldProperty
public class FieldProperty
An implementation of Property that proxies to a Field
| Constructor Summary | |
|---|---|
FieldProperty(java.lang.reflect.Field field)
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldProperty(java.lang.reflect.Field field)
field - The Field that we are proxying to| Method Detail |
|---|
public java.lang.String getName()
Property
getName in interface Propertypublic java.lang.Class getPropertyType()
Property
getPropertyType in interface PropertyProperty.getValue(Object)
public java.lang.Object getValue(java.lang.Object bean)
throws MarshallException
Property
getValue in interface Propertybean - The bean to introspect
MarshallException - If the reflection access fails
public void setValue(java.lang.Object bean,
java.lang.Object value)
throws MarshallException
Property
setValue in interface Propertybean - The bean to introspectvalue - The value assigned to this property of the passed in bean
MarshallException - If the reflection access failspublic java.lang.reflect.Method getSetter()
PropertyTypeHintContext 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
getSetter in interface Property
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||