java.lang.Object | |
↳ | org.springframework.expression.spel.support.StandardTypeConverter |
Default implementation of the TypeConverter
interface,
delegating to a core Spring ConversionService
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return true if the type converter can convert the specified type to the desired target type.
| |||||||||||
Convert (may coerce) a value from one type to another, for example from a boolean to a string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.expression.TypeConverter
|
Return true if the type converter can convert the specified type to the desired target type.
sourceType | a type descriptor that describes the source type |
---|---|
targetType | a type descriptor that describes the requested result type |
Convert (may coerce) a value from one type to another, for example from a boolean to a string. The typeDescriptor parameter enables support for typed collections - if the caller really wishes they can have a List<Integer> for example, rather than simply a List.
value | the value to be converted |
---|---|
sourceType | a type descriptor that supplies extra information about the source object |
targetType | a type descriptor that supplies extra information about the requested result type |