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.beanspackage 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
TypeDescriptorfrom a property location. The builtTypeDescriptorcan 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 booleanequals(Object other)StringgetName()The name of the property: e.g.Class<?>getObjectType()The object declaring this property, either directly or in a superclass the object extends.MethodgetReadMethod()The property getter method: e.g.Class<?>getType()The property type: e.g.MethodgetWriteMethod()The property setter method: e.g.inthashCode()
Method Detail
getObjectType
public Class<?> getObjectType()
The object declaring this property, either directly or in a superclass the object extends.
getReadMethod
public Method getReadMethod()
The property getter method: e.g.getFoo()
getWriteMethod
public Method getWriteMethod()
The property setter method: e.g.setFoo(String)