|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.convert.TypeDescriptor org.springframework.core.convert.support.PropertyTypeDescriptor
public class PropertyTypeDescriptor
TypeDescriptor
extension that exposes additional annotations
as conversion metadata: namely, annotations on other accessor methods
(getter/setter) and on the underlying field, if found.
Field Summary | |
---|---|
private java.lang.annotation.Annotation[] |
cachedAnnotations
|
private java.beans.PropertyDescriptor |
propertyDescriptor
|
Fields inherited from class org.springframework.core.convert.TypeDescriptor |
---|
NULL |
Constructor Summary | |
---|---|
PropertyTypeDescriptor(java.beans.PropertyDescriptor propertyDescriptor,
MethodParameter methodParameter)
Create a new BeanTypeDescriptor for the given bean property. |
|
PropertyTypeDescriptor(java.beans.PropertyDescriptor propertyDescriptor,
MethodParameter methodParameter,
java.lang.Class<?> type)
Create a new BeanTypeDescriptor for the given bean property. |
Method Summary | |
---|---|
TypeDescriptor |
forElementType(java.lang.Class<?> elementType)
Create a copy of this type descriptor, preserving the context information but exposing the specified element type (e.g. |
java.lang.annotation.Annotation[] |
getAnnotations()
Obtain the annotations associated with the wrapped parameter/field, if any. |
java.beans.PropertyDescriptor |
getPropertyDescriptor()
Return the underlying PropertyDescriptor. |
Methods inherited from class org.springframework.core.convert.TypeDescriptor |
---|
asString, equals, forObject, getAnnotation, getElementType, getElementTypeDescriptor, getElementTypeDescriptor, getField, getMapKeyType, getMapKeyTypeDescriptor, getMapKeyTypeDescriptor, getMapValueType, getMapValueTypeDescriptor, getMapValueTypeDescriptor, getMethodParameter, getName, getObjectType, getType, hashCode, isArray, isAssignableTo, isCollection, isMap, isMapEntryTypeKnown, isPrimitive, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.beans.PropertyDescriptor propertyDescriptor
private java.lang.annotation.Annotation[] cachedAnnotations
Constructor Detail |
---|
public PropertyTypeDescriptor(java.beans.PropertyDescriptor propertyDescriptor, MethodParameter methodParameter)
propertyDescriptor
- the corresponding JavaBean PropertyDescriptormethodParameter
- the target method parameterpublic PropertyTypeDescriptor(java.beans.PropertyDescriptor propertyDescriptor, MethodParameter methodParameter, java.lang.Class<?> type)
propertyDescriptor
- the corresponding JavaBean PropertyDescriptormethodParameter
- the target method parametertype
- the specific type to expose (may be an array/collection element)Method Detail |
---|
public java.beans.PropertyDescriptor getPropertyDescriptor()
public java.lang.annotation.Annotation[] getAnnotations()
TypeDescriptor
getAnnotations
in class TypeDescriptor
public TypeDescriptor forElementType(java.lang.Class<?> elementType)
TypeDescriptor
forElementType
in class TypeDescriptor
elementType
- the desired type to expose
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |