|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.binding.convert.service.StaticConversionExecutor
public class StaticConversionExecutor
A command object that is parameterized with the information necessary to perform a conversion of a source input to a target output.
Specifically, encapsulates knowledge about how to convert source objects to a specific target type using a specific converter.
| Constructor Summary | |
|---|---|
StaticConversionExecutor(Class sourceClass,
Class targetClass,
Converter converter)
Creates a conversion executor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Object |
execute(Object source)
Execute the conversion for the provided source object. |
Converter |
getConverter()
Returns the converter that will perform the conversion. |
Class |
getSourceClass()
Returns the source class of conversions performed by this executor. |
Class |
getTargetClass()
Returns the target class of conversions performed by this executor. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StaticConversionExecutor(Class sourceClass,
Class targetClass,
Converter converter)
sourceClass - the source type that the converter will convert fromtargetClass - the target type that the converter will convert toconverter - the converter that will perform the conversion| Method Detail |
|---|
public Class getSourceClass()
getSourceClass in interface ConversionExecutorpublic Class getTargetClass()
getTargetClass in interface ConversionExecutorpublic Converter getConverter()
public Object execute(Object source)
throws ConversionExecutionException
ConversionExecutor
execute in interface ConversionExecutorsource - the source object to convert
ConversionExecutionExceptionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||