it.amattioli.workstate.core
Class StateMemento
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateMemento
public StateMemento(String tag,
StateMemento parent,
Map<String,Object> attributes)
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.