|
jTransfo, 0.10 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jtransfo.NoConversionTypeConverter
public class NoConversionTypeConverter
Fallback type converter which does no conversion at all.
| Constructor Summary | |
|---|---|
NoConversionTypeConverter()
|
|
| Method Summary | |
|---|---|
boolean |
canConvert(Class<?> realToType,
Class<?> realDomainType)
Can this type converter handle conversions between the given transfer and domain object types? |
Object |
convert(Object object,
SyntheticField domainField,
Object domainObject,
String... tags)
Convert a transfer object field value to the value for the domain object. |
Object |
reverse(Object object,
SyntheticField toField,
Object toObject,
String... tags)
Convert a domain object field value to the value for the transfer object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoConversionTypeConverter()
| Method Detail |
|---|
public boolean canConvert(Class<?> realToType,
Class<?> realDomainType)
TypeConverter
canConvert in interface TypeConverter<Object,Object>realToType - real class for the type in the transfer objectrealDomainType - real class for the type in the domain object
public Object convert(Object object,
SyntheticField domainField,
Object domainObject,
String... tags)
throws JTransfoException
TypeConverter
convert in interface TypeConverter<Object,Object>object - object to convertdomainField - target domain fielddomainObject - target domain objecttags - tags which indicate which fields can be converted based on MapOnly annotations.
JTransfoException - problem during type conversion
public Object reverse(Object object,
SyntheticField toField,
Object toObject,
String... tags)
throws JTransfoException
TypeConverter
reverse in interface TypeConverter<Object,Object>object - object to converttoField - target transfer object fieldtoObject - target transfer objecttags - tags which indicate which fields can be converted based on MapOnly annotations.
JTransfoException - problem during type conversion
|
jTransfo, 0.10 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||