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.
Author
Keith Donald
Author
Phillip Webb
Since
3.1
See Also
TypeDescriptor#TypeDescriptor(Property)TypeDescriptor#nested(Property, int)
Property(objectType: Class<*>, readMethod: Method, writeMethod: Method)Property(objectType: Class<*>, readMethod: Method, writeMethod: Method, name: String) |
fun equals(other: Any?): Boolean |
|
fun getName(): String
The name of the property: e.g. 'foo' |
|
fun getObjectType(): Class<*>
The object declaring this property, either directly or in a superclass the object extends. |
|
fun getReadMethod(): Method
The property getter method: e.g. |
|
fun getType(): Class<*>
The property type: e.g. |
|
fun getWriteMethod(): Method
The property setter method: e.g. |
|
fun hashCode(): Int |