public class ConverterHelper extends Object
| Constructor and Description |
|---|
ConverterHelper() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 conversionJTransfoException - cannot build converterpublic String withPath(String[] path)
path - array of path elementspublic void setTypeConvertersInOrder(Collection<TypeConverter> typeConverters)
typeConverters - ordered list of type converters, the first converter in the list which can do the
conversion is used.Copyright © 2017. All rights reserved.