|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.convert.PlainProperty
public class PlainProperty
An implementation of Property
that simply uses stored values.
Constructor Summary | |
---|---|
PlainProperty(java.lang.String name,
java.lang.Object value)
|
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 PlainProperty(java.lang.String name, java.lang.Object value)
name
- The property namevalue
- The property value irrespective of the object that we read it onMethod Detail |
---|
public java.lang.String getName()
Property
getName
in interface Property
public java.lang.Class getPropertyType()
Property
getPropertyType
in interface Property
Property.getValue(Object)
public java.lang.reflect.Method getSetter()
Property
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
getSetter
in interface Property
public java.lang.Object getValue(java.lang.Object bean) throws MarshallException
Property
getValue
in interface Property
bean
- The bean to introspect
MarshallException
- If the reflection access failspublic void setValue(java.lang.Object bean, java.lang.Object value) throws MarshallException
Property
setValue
in interface Property
bean
- The bean to introspectvalue
- The value assigned to this property of the passed in bean
MarshallException
- If the reflection access fails
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |