de.bea.domingo.map
Class MapperSet

java.lang.Object
  extended by de.bea.domingo.map.BaseDMapper
      extended by de.bea.domingo.map.MapperSet
All Implemented Interfaces:
Mapper
Direct Known Subclasses:
BaseMapper

public abstract class MapperSet
extends BaseDMapper

A set of mappers which itself is a mapper.

Author:
Kurt Riede

Constructor Summary
MapperSet()
           
 
Method Summary
 boolean add(Mapper mapper)
          Adds the specified element to this set if it is not already present.
 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

MapperSet

public MapperSet()
Method Detail

add

public final boolean add(Mapper mapper)
Adds the specified element to this set if it is not already present.

Parameters:
mapper - mapper to be added to the mapper set
Returns:
true if this mapper set did not already contain the specified mapper.
See Also:
Set.add(java.lang.Object)

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)


Domingo Java-API