|
|||||||||||
| 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)
MappingExpertdefinition in the
default mapper category
register in interface MappingExpertdefinition - the mappers definition
public void register(java.lang.Class type,
ObjectMapper mapper)
MappingExperttype) in the
default mapper category.
register in interface MappingExperttype - the class to register with the mappermapper - the mapper to register
public void register(java.lang.String category,
java.lang.String definition)
MappingExpertdefinition in the given
category
register in interface MappingExpertcategory - the category in which to register the mapperdefinition - the mapper definition
public void register(java.lang.String category,
java.lang.Class type,
ObjectMapper mapper)
MappingExperttype) in the
given mapper category.
register in interface MappingExpertcategory - the category in which to register the mappertype - the class to register with the mappermapper - the mapper to register
public java.lang.Object map(java.lang.String category,
java.lang.Object o)
MappingExpertcategory
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 MappingExpertcategory - 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 | ||||||||||