public abstract class MapMapper extends BaseDMapper
| Constructor and Description |
|---|
MapMapper()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Map |
getMap(Object object)
derived classes implement this method and return the map that should be mapped.
|
protected abstract boolean |
isNameAllowed(String name)
Must be implemented by derived classes to select allowed names.
|
void |
map(DDocument document,
Object object)
Maps a domingo document to a business object.
|
void |
map(Object object,
DDocument document)
Maps a business object to a domingo document.
|
getCalendar, getValue, getValue, getValueDate, getValueDateRange, getValueDouble, getValueInteger, getValueString, hasMethod, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, setValuepublic final void map(DDocument document, Object object) throws MappingException
document - the domingo document to mapobject - the business objectMappingException - if an error occurred during mappingMapper.map(DDocument, java.lang.Object)public final void map(Object object, DDocument document) throws MappingException
object - the business objectdocument - the domingo document to map toMappingException - if an error occurred during mappingMapper.map(java.lang.Object, DDocument)protected abstract Map getMap(Object object)
object - the base objectprotected abstract boolean isNameAllowed(String name)
name - the name of a value to checktrue if the header name is allowed, else falseCopyright © 2005–2020. All rights reserved.