Package org.springframework.core.convert
Class Property
- java.lang.Object
- org.springframework.core.convert.Property
public final class Property extends Object
A description of a JavaBeans Property that allows us to avoid a dependency onjava.beans.PropertyDescriptor
. Thejava.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 builtTypeDescriptor
can then be used to convert from/to the property type.- Since:
- 3.1
- Author:
- Keith Donald, Phillip Webb
- See Also:
TypeDescriptor(Property)
,TypeDescriptor.nested(Property, int)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
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.int
hashCode()
Method Detail
getObjectType
public Class<?> getObjectType()
The object declaring this property, either directly or in a superclass the object extends.
getReadMethod
@Nullable public Method getReadMethod()
The property getter method: e.g.getFoo()
getWriteMethod
@Nullable public Method getWriteMethod()
The property setter method: e.g.setFoo(String)