it.amattioli.workstate.core
Class StateMemento

Show UML class diagram
java.lang.Object
  extended by it.amattioli.workstate.core.StateMemento
All Implemented Interfaces:
Serializable

public class StateMemento
extends Object
implements Serializable

Capture the internal representation of a state so to persist it.

See Also:
Serialized Form

Constructor Summary
StateMemento(String tag, StateMemento parent, Map<String,Object> attributes)
           
 
Method Summary
static StateMemento fromTag(String tag)
          Reconstruct a StateMemento tree given a string obtained using getTag().
 Map<String,Object> getAttributes()
           
 Map<String,StateMemento> getChildren()
           
 String getTag()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMemento

public StateMemento(String tag,
                    StateMemento parent,
                    Map<String,Object> attributes)
Method Detail

getTag

public String getTag()

getAttributes

public Map<String,Object> getAttributes()

getChildren

public Map<String,StateMemento> getChildren()

fromTag

public static StateMemento fromTag(String tag)
Reconstruct a StateMemento tree given a string obtained using getTag(). The string does not contains attribute values so they will not be reconstructed.

Parameters:
tag -
Returns:


Copyright © 2011. All Rights Reserved.