de.bea.domingo.map
Class MapMapper

java.lang.Object
  extended by de.bea.domingo.map.BaseDMapper
      extended by de.bea.domingo.map.MapMapper
All Implemented Interfaces:
Mapper

public abstract class MapMapper
extends BaseDMapper

Class defining and performing a mapping of a map of attributes to a document.

Author:
Kurt Riede

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

MapMapper

public MapMapper()
Constructor.

Method Detail

map

public final void map(DDocument document,
                      java.lang.Object object)
               throws MappingException
Maps a domingo document to a business object.

Parameters:
document - the domingo document to map
object - the business object
Throws:
MappingException - if an error occurred during mapping
See Also:
Mapper.map(de.bea.domingo.DDocument, java.lang.Object)

map

public final void map(java.lang.Object object,
                      DDocument document)
               throws MappingException
Maps a business object to a domingo document.

Parameters:
object - the business object
document - the domingo document to map to
Throws:
MappingException - if an error occurred during mapping
See Also:
Mapper.map(java.lang.Object, de.bea.domingo.DDocument)

getMap

protected abstract java.util.Map getMap(java.lang.Object object)
derived classes implement this method and return the map that should be mapped.

Parameters:
object - the base object
Returns:
map

isNameAllowed

protected abstract boolean isNameAllowed(java.lang.String name)
Must be implemented by derived classes to select allowed names.

Parameters:
name - the name of a value to check
Returns:
true if the header name is allowed, else false


Domingo Java-API