com.compoundtheory.dynamic
Class Memento

java.lang.Object
  extended by com.compoundtheory.dynamic.Memento

public class Memento
extends java.lang.Object

Builds the tree structure for building mementos for TransferObject population

Author:
mark

Constructor Summary
Memento(java.util.Map valueMap)
          Constructor
 
Method Summary
 void addChild(java.lang.String compositeName, java.lang.Boolean isArray, Memento child)
          Adds a child set of values to this memento
 java.util.Map getMemento()
          Returns the map value of this memento and its children
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Memento

public Memento(java.util.Map valueMap)
Constructor

Parameters:
valueMap - The map of values for this memento part
Method Detail

addChild

public void addChild(java.lang.String compositeName,
                     java.lang.Boolean isArray,
                     Memento child)
Adds a child set of values to this memento

Parameters:
compositeName - The name of the composite structure
isArray - if it is an array or not
child - The child to add

getMemento

public java.util.Map getMemento()
Returns the map value of this memento and its children

Returns:
Map the memento map