|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Property
Describes some way to get or set a bit of data on an object.
There are obvious Properties for a getter/setter pair
PropertyDescriptorProperty, for a field FieldProperty and
also for a constructor parameter ConstructorProperty. There is a
PlainProperty for when we have a collection of Properties of a bean,
but need to augment it in some way and NestedProperty which is used
when we're digging into nested generic type info.
It would be nice if PropertyDescriptor, and the various reflection
types like Member had a common supertype, but they don't. In a way
this is it.
| Method Summary | |
|---|---|
Property |
createChild(int index)
Properties may have children where we have nested generic type info. |
java.lang.String |
getName()
Gets the name of this property |
java.lang.Class<?> |
getPropertyType()
What type does this property |
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 ConversionException
bean - The bean to introspect
ConversionException - If the reflection access fails
void setValue(java.lang.Object bean,
java.lang.Object value)
throws ConversionException
bean - The bean to introspectvalue - The value assigned to this property of the passed in bean
ConversionException - If the reflection access fails
Property createChild(int index)
throws ConversionException
setFoo(List<Map<String, Class<?>> x) we can
find type information about the nested bits of generic data.
If calling this method then you almost certainly want to check for an
overridden property as defined by the ConverterManager by calling
ConverterManager.checkOverride(Property)
index - Generally the parameter offset.
ConversionException
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||