|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.map.BaseDMapper de.bea.domingo.map.MapMapper
public abstract class MapMapper
Class defining and performing a mapping of a map of attributes to a document.
Constructor Summary | |
---|---|
MapMapper()
Constructor. |
Method Summary | |
---|---|
protected abstract java.util.Map |
getMap(java.lang.Object object)
derived classes implement this method and return the map that should be mapped. |
protected abstract boolean |
isNameAllowed(java.lang.String name)
Must be implemented by derived classes to select allowed names. |
void |
map(DDocument document,
java.lang.Object object)
Maps a domingo document to a business object. |
void |
map(java.lang.Object object,
DDocument document)
Maps a business object to a domingo document. |
Methods inherited from class de.bea.domingo.map.BaseDMapper |
---|
getCalendar, getValue, getValue, getValueDate, getValueDateRange, getValueDouble, getValueInteger, getValueString, hasMethod, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapMapper()
Method Detail |
---|
public final void map(DDocument document, java.lang.Object object) throws MappingException
document
- the domingo document to mapobject
- the business object
MappingException
- if an error occurred during mappingMapper.map(de.bea.domingo.DDocument, java.lang.Object)
public final void map(java.lang.Object object, DDocument document) throws MappingException
object
- the business objectdocument
- the domingo document to map to
MappingException
- if an error occurred during mappingMapper.map(java.lang.Object, de.bea.domingo.DDocument)
protected abstract java.util.Map getMap(java.lang.Object object)
object
- the base object
protected abstract boolean isNameAllowed(java.lang.String name)
name
- the name of a value to check
true
if the header name is allowed, else false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |