net.sf.omap
Class ObjectToObjectMappingExpert

java.lang.Object
  extended bynet.sf.omap.AbstractMappingExpert
      extended bynet.sf.omap.ObjectToObjectMappingExpert
All Implemented Interfaces:
MappingExpert

public class ObjectToObjectMappingExpert
extends AbstractMappingExpert


Constructor Summary
ObjectToObjectMappingExpert()
           
 
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 net.sf.omap.AbstractMappingExpert
map, register, register, register, register, setMapperCreator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectToObjectMappingExpert

public ObjectToObjectMappingExpert()
Method Detail

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 mapper
definition - 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 mapper
type - the class to register with the mapper
definition - 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