net.sf.omap
Class AbstractObjectMapper

java.lang.Object
  extended bynet.sf.omap.AbstractObjectMapper
All Implemented Interfaces:
ObjectMapper

public abstract class AbstractObjectMapper
extends java.lang.Object
implements ObjectMapper


Constructor Summary
AbstractObjectMapper(MappingExpert expert)
           
 
Method Summary
 java.lang.Object map(java.lang.String category, java.lang.Object o)
          Maps the given object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.omap.ObjectMapper
getDefinition, map
 

Constructor Detail

AbstractObjectMapper

public AbstractObjectMapper(MappingExpert expert)
Method Detail

map

public java.lang.Object map(java.lang.String category,
                            java.lang.Object o)
Description copied from interface: ObjectMapper
Maps the given object.

If the mapper needs to find another mapper, it will search a mapper that belongs to the given category

Specified by:
map in interface ObjectMapper
Parameters:
category - the category in which to search for the registered mappers
o - the object to map
Returns:
the mapped object