|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.converter.DoubleDispatchConverter
public class DoubleDispatchConverter
Double dispatch converter.
This is the result of the first stage in the conversion process. A
IConverter that bundles all IConverter instances that can
create a dedicated target type. Amongst the sub-converters the one is
selected that most closely supports the source object type.
| Constructor Summary | |
|---|---|
DoubleDispatchConverter(Class targetType)
|
|
| Method Summary | |
|---|---|
Object |
convert(Object source)
Convert the actual source object. |
Class<?> |
getSourceType()
The source type the converter supports. |
Class<?> |
getTargetType()
The target type the converter supports. |
void |
registerConverter(IConverter converter)
|
void |
unregisterConverter(IConverter converter)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleDispatchConverter(Class targetType)
| Method Detail |
|---|
public Object convert(Object source)
throws ConversionException
IConverter
convert in interface IConverter<Object,Object>ConversionExceptionpublic Class<?> getSourceType()
IConverter
getSourceType in interface IConverter<Object,Object>public Class<?> getTargetType()
IConverter
getTargetType in interface IConverter<Object,Object>public void registerConverter(IConverter converter)
public void unregisterConverter(IConverter converter)
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||