|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javalite.activejdbc.conversion.ConverterAdapter<S,T>
S - Source typeT - Destination typepublic abstract class ConverterAdapter<S,T>
Converts instances of S to T.
| Constructor Summary | |
|---|---|
ConverterAdapter()
|
|
| Method Summary | |
|---|---|
boolean |
canConvert(Class aSourceClass,
Class aDestinationClass)
Returns true if this converter can convert instances of sourceClass to destinationClass. |
T |
convert(S source)
Converts instance of S to T. |
protected abstract Class<T> |
destinationClass()
|
protected abstract T |
doConvert(S source)
Converts instance of S to T. |
protected abstract Class<S> |
sourceClass()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConverterAdapter()
| Method Detail |
|---|
public boolean canConvert(Class aSourceClass,
Class aDestinationClass)
Converter
canConvert in interface Converter<S,T>aSourceClass - source ClassaDestinationClass - destination Class
protected abstract Class<S> sourceClass()
protected abstract Class<T> destinationClass()
public T convert(S source)
Converter
convert in interface Converter<S,T>source - instance of S
protected abstract T doConvert(S source)
throws Exception
source - instance of S, can be null
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||