|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.omap.AbstractMappingExpert
Constructor Summary | |
AbstractMappingExpert()
|
Method Summary | |
java.lang.Object |
map(java.lang.String category,
java.lang.Object o)
Maps the given object using the registered mapper for the object's class in the given category
If the given category doesn't contain a mapper for the object's class, tries
to find one in the default category. |
void |
register(java.lang.Class type,
ObjectMapper mapper)
Registers the mapper for the given class ( type ) in the
default mapper category. |
void |
register(java.lang.String definition)
Registers all the mappers defined by the given definition in the
default mapper category |
void |
register(java.lang.String category,
java.lang.Class type,
ObjectMapper mapper)
Registers the mapper for the given class ( type ) in the
given mapper category. |
void |
register(java.lang.String category,
java.lang.String definition)
Registers the mappers define by the given definition in the given
category |
void |
setMapperCreator(MapperCreator creator)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.omap.MappingExpert |
map, register, register |
Constructor Detail |
public AbstractMappingExpert()
Method Detail |
public void setMapperCreator(MapperCreator creator)
public void register(java.lang.String definition)
MappingExpert
definition
in the
default mapper category
register
in interface MappingExpert
definition
- the mappers definitionpublic void register(java.lang.Class type, ObjectMapper mapper)
MappingExpert
type
) in the
default mapper category.
register
in interface MappingExpert
type
- the class to register with the mappermapper
- the mapper to registerpublic void register(java.lang.String category, java.lang.String definition)
MappingExpert
definition
in the given
category
register
in interface MappingExpert
category
- the category in which to register the mapperdefinition
- the mapper definitionpublic void register(java.lang.String category, java.lang.Class type, ObjectMapper mapper)
MappingExpert
type
) in the
given mapper category.
register
in interface MappingExpert
category
- the category in which to register the mappertype
- the class to register with the mappermapper
- the mapper to registerpublic java.lang.Object map(java.lang.String category, java.lang.Object o)
MappingExpert
category
If the given category doesn't contain a mapper for the object's class, tries to find one in the default category. If no default mapper is found the returned value depends on the expert implementation (could be null, an empty string, etc.)
map
in interface MappingExpert
category
- the category in which to search for the registered mappero
- the object to map
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |