|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| 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 |
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.Class type,
java.lang.String definition)
Registers the mapper definition for the given 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.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.String definition)
Registers the mappers define by the given definition in the given
category |
| Method Detail |
public java.lang.Object map(java.lang.Object o)
If no mapper is found to map the given object returns null
o - the object to map
public java.lang.Object map(java.lang.String category,
java.lang.Object o)
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.)
category - the category in which to search for the registered mappero - the object to map
MappingException - if the category does not existpublic void register(java.lang.String definition)
definition in the
default mapper category
definition - the mappers definition
public void register(java.lang.Class type,
ObjectMapper mapper)
type) in the
default mapper category.
type - the class to register with the mappermapper - the mapper to register
public void register(java.lang.Class type,
java.lang.String definition)
type in the
default mapper category
type - the class to register with the mapperdefinition - the mapper definition
public void register(java.lang.String category,
java.lang.String definition)
definition in the given
category
category - the category in which to register the mapperdefinition - the mapper definition
public void register(java.lang.String category,
java.lang.Class type,
ObjectMapper mapper)
type) in the
given mapper category.
category - the category in which to register the mappertype - the class to register with the mappermapper - the mapper to register
public void register(java.lang.String category,
java.lang.Class type,
java.lang.String definition)
type in the given
category
category - the category in which to register the mappertype - the class to register with the mapperdefinition - the mapper definition
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||