|
|||||||||
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 |
---|
Fields inherited from class org.springframework.core.convert.TypeDescriptor |
---|
NULL |
Constructor Summary | |
---|---|
PropertyTypeDescriptor(PropertyDescriptor propertyDescriptor,
MethodParameter methodParameter)
Create a new BeanTypeDescriptor for the given bean property. |
|
PropertyTypeDescriptor(PropertyDescriptor propertyDescriptor,
MethodParameter methodParameter,
Class<?> type)
Create a new BeanTypeDescriptor for the given bean property. |
Method Summary | |
---|---|
TypeDescriptor |
forElementType(Class<?> elementType)
Create a copy of this type descriptor, preserving the context information but exposing the specified element type (e.g. |
Annotation[] |
getAnnotations()
Obtain the annotations associated with the wrapped parameter/field, if any. |
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 |
Constructor Detail |
---|
public PropertyTypeDescriptor(PropertyDescriptor propertyDescriptor, MethodParameter methodParameter)
propertyDescriptor
- the corresponding JavaBean PropertyDescriptormethodParameter
- the target method parameterpublic PropertyTypeDescriptor(PropertyDescriptor propertyDescriptor, MethodParameter methodParameter, 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 PropertyDescriptor getPropertyDescriptor()
public Annotation[] getAnnotations()
TypeDescriptor
getAnnotations
in class TypeDescriptor
public TypeDescriptor forElementType(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 |