public abstract class TypeConverterSupport extends PropertyEditorRegistrySupport implements TypeConverter
TypeConverter interface, using a package-private delegate.
 Mainly serves as base class for BeanWrapperImpl.SimpleTypeConverter| Constructor and Description | 
|---|
| TypeConverterSupport() | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | convertIfNecessary(Object value,
                  Class<T> requiredType)Convert the value to the required type (if necessary from a String). | 
| <T> T | convertIfNecessary(Object value,
                  Class<T> requiredType,
                  Field field)Convert the value to the required type (if necessary from a String). | 
| <T> T | convertIfNecessary(Object value,
                  Class<T> requiredType,
                  org.springframework.core.MethodParameter methodParam)Convert the value to the required type (if necessary from a String). | 
| <T> T | convertIfNecessary(Object value,
                  Class<T> requiredType,
                  org.springframework.core.convert.TypeDescriptor typeDescriptor)Convert the value to the required type (if necessary from a String). | 
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getConversionService, getDefaultEditor, getPropertyType, guessPropertyTypeFromEditors, hasCustomEditorForElement, overrideDefaultEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, setConversionService, useConfigValueEditors@Nullable
public <T> T convertIfNecessary(@Nullable
                                          Object value,
                                          @Nullable
                                          Class<T> requiredType)
                                   throws TypeMismatchException
TypeConverterConversions from String to any type will typically use the setAsText
 method of the PropertyEditor class, or a Spring Converter in a ConversionService.
convertIfNecessary in interface TypeConvertervalue - the value to convertrequiredType - the type we must convert to
 (or null if not known, for example in case of a collection element)TypeMismatchException - if type conversion failedPropertyEditor.setAsText(String), 
PropertyEditor.getValue(), 
ConversionService, 
org.springframework.core.convert.converter.Converter@Nullable
public <T> T convertIfNecessary(@Nullable
                                          Object value,
                                          @Nullable
                                          Class<T> requiredType,
                                          @Nullable
                                          org.springframework.core.MethodParameter methodParam)
                                   throws TypeMismatchException
TypeConverterConversions from String to any type will typically use the setAsText
 method of the PropertyEditor class, or a Spring Converter in a ConversionService.
convertIfNecessary in interface TypeConvertervalue - the value to convertrequiredType - the type we must convert to
 (or null if not known, for example in case of a collection element)methodParam - the method parameter that is the target of the conversion
 (for analysis of generic types; may be null)TypeMismatchException - if type conversion failedPropertyEditor.setAsText(String), 
PropertyEditor.getValue(), 
ConversionService, 
org.springframework.core.convert.converter.Converter@Nullable
public <T> T convertIfNecessary(@Nullable
                                          Object value,
                                          @Nullable
                                          Class<T> requiredType,
                                          @Nullable
                                          Field field)
                                   throws TypeMismatchException
TypeConverterConversions from String to any type will typically use the setAsText
 method of the PropertyEditor class, or a Spring Converter in a ConversionService.
convertIfNecessary in interface TypeConvertervalue - the value to convertrequiredType - the type we must convert to
 (or null if not known, for example in case of a collection element)field - the reflective field that is the target of the conversion
 (for analysis of generic types; may be null)TypeMismatchException - if type conversion failedPropertyEditor.setAsText(String), 
PropertyEditor.getValue(), 
ConversionService, 
org.springframework.core.convert.converter.Converter@Nullable
public <T> T convertIfNecessary(@Nullable
                                          Object value,
                                          @Nullable
                                          Class<T> requiredType,
                                          @Nullable
                                          org.springframework.core.convert.TypeDescriptor typeDescriptor)
                                   throws TypeMismatchException
TypeConverterConversions from String to any type will typically use the setAsText
 method of the PropertyEditor class, or a Spring Converter in a ConversionService.
convertIfNecessary in interface TypeConvertervalue - the value to convertrequiredType - the type we must convert to
 (or null if not known, for example in case of a collection element)typeDescriptor - the type descriptor to use (may be null))TypeMismatchException - if type conversion failedPropertyEditor.setAsText(String), 
PropertyEditor.getValue(), 
ConversionService, 
org.springframework.core.convert.converter.Converter