public class

PropertyTypeDescriptor

extends TypeDescriptor
java.lang.Object
   ↳ org.springframework.core.convert.TypeDescriptor
     ↳ org.springframework.core.convert.support.PropertyTypeDescriptor

Class Overview

TypeDescriptor extension that exposes additional annotations as conversion metadata: namely, annotations on other accessor methods (getter/setter) and on the underlying field, if found.

Summary

[Expand]
Inherited Fields
From class org.springframework.core.convert.TypeDescriptor
Public Constructors
PropertyTypeDescriptor(MethodParameter methodParameter, PropertyDescriptor propertyDescriptor)
Create a new type descriptor for the given bean property.
Public Methods
static PropertyTypeDescriptor forNestedType(MethodParameter methodParameter, PropertyDescriptor propertyDescriptor)
Create a new type descriptor for a nested type declared on an array, collection, or map-based property.
static PropertyTypeDescriptor forNestedType(Class<?> nestedType, MethodParameter methodParameter, PropertyDescriptor propertyDescriptor)
Create a new type descriptor for a nested type declared on an array, collection, or map-based property.
PropertyDescriptor getPropertyDescriptor()
Return the underlying PropertyDescriptor.
Protected Methods
TypeDescriptor newNestedTypeDescriptor(Class<?> nestedType, MethodParameter nested)
Annotation[] resolveAnnotations()
[Expand]
Inherited Methods
From class org.springframework.core.convert.TypeDescriptor
From class java.lang.Object

Public Constructors

public PropertyTypeDescriptor (MethodParameter methodParameter, PropertyDescriptor propertyDescriptor)

Also: SpringCore

Create a new type descriptor for the given bean property.

Parameters
methodParameter the target method parameter
propertyDescriptor the corresponding JavaBean PropertyDescriptor

Public Methods

public static PropertyTypeDescriptor forNestedType (MethodParameter methodParameter, PropertyDescriptor propertyDescriptor)

Also: SpringCore

Create a new type descriptor for a nested type declared on an array, collection, or map-based property. Use this factory method when you've resolved a nested source object such as a collection element or map value and wish to have it converted. Builds in protection for increasing the nesting level of the provided MethodParameter if the nestedType is itself a collection.

Parameters
methodParameter the method parameter
Returns
  • the property descriptor

public static PropertyTypeDescriptor forNestedType (Class<?> nestedType, MethodParameter methodParameter, PropertyDescriptor propertyDescriptor)

Also: SpringCore

Create a new type descriptor for a nested type declared on an array, collection, or map-based property. Use this factory method when you've resolved a nested source object such as a collection element or map value and wish to have it converted. Builds in protection for increasing the nesting level of the provided MethodParameter if the nestedType is itself a collection.

Parameters
nestedType the nested type
methodParameter the method parameter
Returns
  • the property descriptor

public PropertyDescriptor getPropertyDescriptor ()

Also: SpringCore

Return the underlying PropertyDescriptor.

Protected Methods

protected TypeDescriptor newNestedTypeDescriptor (Class<?> nestedType, MethodParameter nested)

Also: SpringCore

protected Annotation[] resolveAnnotations ()

Also: SpringCore