public interface ConversionPath<F,T>
Modifier and Type | Method and Description |
---|---|
<X> ConversionPath<F,X> |
append(ConversionStep<T,X> following)
Create a new ConversionPath by adding the given ConversionStep.
|
boolean |
contains(java.lang.Class<?> from)
Test if this ConversionPath contains a conversion
from the given Class.
|
T |
convert(F from,
ArooaConverter converter) |
java.lang.Class<F> |
getFromClass()
Get the from Class of this ConversionPath.
|
<X,Y> ConversionStep<X,Y> |
getStep(int index)
Get the conversion step for the given index.
|
java.lang.Class<T> |
getToClass()
Get the to Class of this ConversionPath.
|
int |
length()
Get the number of Steps in this ConversionPath.
|
<X> ConversionPath<X,T> |
prepend(ConversionStep<X,F> preceeding)
Create a new ConversionPath by prepending the given ConversionStep.
|
<X> ConversionPath<F,X> append(ConversionStep<T,X> following)
following
- <X> ConversionPath<X,T> prepend(ConversionStep<X,F> preceeding)
preceeding
- java.lang.Class<F> getFromClass()
java.lang.Class<T> getToClass()
int length()
<X,Y> ConversionStep<X,Y> getStep(int index)
index
- The index.boolean contains(java.lang.Class<?> from)
from
- T convert(F from, ArooaConverter converter) throws ConversionFailedException
from
- ConversionFailedException