class RelaxedConversionService extends java.lang.Object implements org.springframework.core.convert.ConversionService
Internal org.springframework.core.convert.ConversionService used by RelaxedDataBinder to support additional relaxed conversion.
Modifiers | Name | Description |
---|---|---|
private class |
RelaxedConversionService.StringToCharArrayConverter |
|
private static class |
RelaxedConversionService.StringToEnumIgnoringCaseConverterFactory |
Clone of Spring's package private StringToEnumConverterFactory, but ignoring the case of the source. |
Modifiers | Name | Description |
---|---|---|
private org.springframework.core.convert.support.GenericConversionService |
additionalConverters |
|
private org.springframework.core.convert.ConversionService |
conversionService |
Constructor and description |
---|
RelaxedConversionService
(org.springframework.core.convert.ConversionService conversionService) Create a new RelaxedConversionService instance. |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
canConvert(java.lang.Class<?> sourceType, java.lang.Class<?> targetType) |
|
public boolean |
canConvert(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) |
<T> |
public T |
convert(java.lang.Object source, java.lang.Class<T> targetType) |
|
public java.lang.Object |
convert(java.lang.Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new RelaxedConversionService instance.
conversionService
- and option root conversion service