net.sf.omap
Class ObjectToObjectMappingExpert
java.lang.Object
net.sf.omap.AbstractMappingExpert
net.sf.omap.ObjectToObjectMappingExpert
- All Implemented Interfaces:
- MappingExpert
- public class ObjectToObjectMappingExpert
- extends AbstractMappingExpert
Method Summary |
java.lang.Object |
map(java.lang.Object o)
Maps the given object using the registered mapper for the object's class in
default category
If no mapper is found to map the given object returns null |
void |
register(java.lang.Class type,
java.lang.String definition)
Registers the mapper definition for the given type in the
default mapper category |
void |
register(java.lang.String category,
java.lang.Class type,
java.lang.String definition)
Registers the mapper definition for the given type in the given
category |
void |
register(java.lang.String category,
java.lang.Class type,
java.lang.String definition,
java.lang.Class toType)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectToObjectMappingExpert
public ObjectToObjectMappingExpert()
register
public void register(java.lang.Class type,
java.lang.String definition)
- Description copied from interface:
MappingExpert
- Registers the mapper definition for the given
type
in the
default mapper category
- Parameters:
type
- the class to register with the mapperdefinition
- the mapper definition
register
public void register(java.lang.String category,
java.lang.Class type,
java.lang.String definition)
- Description copied from interface:
MappingExpert
- Registers the mapper definition for the given
type
in the given
category
- Parameters:
category
- the category in which to register the mappertype
- the class to register with the mapperdefinition
- the mapper definition
register
public void register(java.lang.String category,
java.lang.Class type,
java.lang.String definition,
java.lang.Class toType)
map
public java.lang.Object map(java.lang.Object o)
- Description copied from interface:
MappingExpert
- Maps the given object using the registered mapper for the object's class in
default category
If no mapper is found to map the given object returns null
- Parameters:
o
- the object to map
- Returns:
- the mapped object or null if no mapper was found