|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConversionPath<F,T>
A ConversionPath is a number of ConversionSteps from an Object of one class to an Object of another.
Method Summary | ||
---|---|---|
|
append(ConversionStep<T,X> following)
Create a new ConversionPath by adding the given ConversionStep. |
|
boolean |
contains(Class<?> from)
Test if this ConversionPath contains a conversion from the given Class. |
|
T |
convert(F from,
ArooaConverter converter)
|
|
Class<F> |
getFromClass()
Get the from Class of this ConversionPath. |
|
|
getStep(int index)
Get the conversion step for the given index. |
|
Class<T> |
getToClass()
Get the to Class of this ConversionPath. |
|
int |
length()
Get the number of Steps in this ConversionPath. |
|
|
prepend(ConversionStep<X,F> preceeding)
Create a new ConversionPath by prepending the given ConversionStep. |
Method Detail |
---|
<X> ConversionPath<F,X> append(ConversionStep<T,X> following)
following
-
<X> ConversionPath<X,T> prepend(ConversionStep<X,F> preceeding)
preceeding
-
Class<F> getFromClass()
Class<T> getToClass()
int length()
<X,Y> ConversionStep<X,Y> getStep(int index)
index
- The index.
boolean contains(Class<?> from)
from
-
T convert(F from, ArooaConverter converter) throws ConversionFailedException
from
-
ConversionFailedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |