net.dpml.state
Class StateDecoder
java.lang.Object
net.dpml.state.StateDecoder
public class StateDecoder
- extends Object
Construct a state graph.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateDecoder
public StateDecoder()
loadState
public State loadState(URI uri)
throws IOException
- Load a state graph.
- Parameters:
uri
- the graph uri
- Returns:
- the constructed state graph
- Throws:
IOException
- if an IO error occurs while reading the
graph data
buildStateGraph
public State buildStateGraph(Element element)
- Build a state graph.
- Parameters:
element
- a DOM element representing the root of the state graph
- Returns:
- the constructed state