|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.convert.Property
public final class Property
A description of a JavaBeans Property that allows us to avoid a dependency on
java.beans.PropertyDescriptor
. The java.beans
package
is not available in a number of environments (e.g. Android, Java ME), so this is
desirable for portability of Spring's core conversion facility.
Used to build a TypeDescriptor from a property location. The built TypeDescriptor can then be used to convert from/to the property type.
TypeDescriptor.TypeDescriptor(Property)
,
TypeDescriptor.nested(Property, int)
Constructor Summary | |
---|---|
Property(Class<?> objectType,
Method readMethod,
Method writeMethod)
|
Method Summary | |
---|---|
String |
getName()
The name of the property: e.g. |
Class<?> |
getObjectType()
The object declaring this property, either directly or in a superclass the object extends. |
Method |
getReadMethod()
The property getter method: e.g. |
Class<?> |
getType()
The property type: e.g. |
Method |
getWriteMethod()
The property setter method: e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Property(Class<?> objectType, Method readMethod, Method writeMethod)
Method Detail |
---|
public Class<?> getObjectType()
public String getName()
public Class<?> getType()
java.lang.String
public Method getReadMethod()
getFoo()
public Method getWriteMethod()
setFoo(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |