|
jTransfo, 0.14 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jtransfo.internal.ConverterHelper
public class ConverterHelper
Helper class for building the converters for a pair of classes.
| Constructor Summary | |
|---|---|
ConverterHelper()
|
|
| Method Summary | |
|---|---|
ToConverter |
getToConverter(Class toClass,
Class domainClass)
Build the descriptor for conversion between given object types. |
void |
setTypeConvertersInOrder(Collection<TypeConverter> typeConverters)
Set the list of type converters. |
String |
withPath(String[] path)
Convert path array to a readable representation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConverterHelper()
| Method Detail |
|---|
public ToConverter getToConverter(Class toClass,
Class domainClass)
throws JTransfoException
toClass - transfer object class, contains the annotations for the conversiondomainClass - domain class as other side of conversion
JTransfoException - cannot build converterpublic String withPath(String[] path)
path - array of path elements
public void setTypeConvertersInOrder(Collection<TypeConverter> typeConverters)
typeConverters - ordered list of type converters, the first converter in the list which can do the
conversion is used.
|
jTransfo, 0.14 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||