net.sf.omap
Class ObjectToXMLMappingExpert
java.lang.Object
net.sf.omap.AbstractMappingExpert
net.sf.omap.ObjectToXMLMappingExpert
- All Implemented Interfaces:
- MappingExpert
- public class ObjectToXMLMappingExpert
- 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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectToXMLMappingExpert
public ObjectToXMLMappingExpert()
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
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