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)
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private Annotation[] | |
| private final MethodParameter | |
| private final String | |
| private final Class | |
| private final Method | |
| private final Method |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addAnnotationsToMap(Map<Class<? extends Annotation>, Annotation> annotationMap, AnnotatedElement object)
|
| private Class | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| pack-priv Annotation[] | |
| private Field | |
| pack-priv MethodParameter | |
| public String | |
| public Class | getObjectType()
The object declaring this property, either directly or in a superclass the object extends. |
| public Method | |
| public Class | |
| public Method | |
| public int | |
| private Annotation[] | |
| private MethodParameter | |
| private String | |
| private MethodParameter | |
| private MethodParameter |
| annotationCache | back to summary |
|---|---|
| private static final Map<Property, Annotation[]> annotationCache | |
| annotations | back to summary |
|---|---|
| private Annotation[] annotations
| |
| methodParameter | back to summary |
|---|---|
| private final MethodParameter methodParameter | |
| name | back to summary |
|---|---|
| private final String name | |
| objectType | back to summary |
|---|---|
| private final Class<?> objectType | |
| readMethod | back to summary |
|---|---|
| private final Method readMethod
| |
| writeMethod | back to summary |
|---|---|
| private final Method writeMethod
| |
| Property | back to summary |
|---|---|
| public Property(Class<?> objectType, Method readMethod, Method writeMethod) | |
| Property | back to summary |
|---|---|
| public Property(Class<?> objectType, Method readMethod, Method writeMethod, String name) | |
| addAnnotationsToMap | back to summary |
|---|---|
| private void addAnnotationsToMap(Map<Class<? extends Annotation>, Annotation> annotationMap, AnnotatedElement object) | |
| declaringClass | back to summary |
|---|---|
private Class
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAnnotations | back to summary |
|---|---|
| pack-priv Annotation[] getAnnotations() | |
| getField | back to summary |
|---|---|
private Field getField()
| |
| getMethodParameter | back to summary |
|---|---|
| pack-priv MethodParameter getMethodParameter() | |
| getName | back to summary |
|---|---|
| public String getName() The name of the property: e.g. 'foo' | |
| getObjectType | back to summary |
|---|---|
| public Class The object declaring this property, either directly or in a superclass the object extends. | |
| getReadMethod | back to summary |
|---|---|
| public Method getReadMethod() The property getter method: e.g.
| |
| getType | back to summary |
|---|---|
| public Class The property type: e.g. | |
| getWriteMethod | back to summary |
|---|---|
| public Method getWriteMethod() The property setter method: e.g.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| resolveAnnotations | back to summary |
|---|---|
| private Annotation[] resolveAnnotations() | |
| resolveMethodParameter | back to summary |
|---|---|
| private MethodParameter resolveMethodParameter() | |
| resolveName | back to summary |
|---|---|
| private String resolveName() | |
| resolveReadMethodParameter | back to summary |
|---|---|
private MethodParameter resolveReadMethodParameter()
| |
| resolveWriteMethodParameter | back to summary |
|---|---|
private MethodParameter resolveWriteMethodParameter()
| |