net.dpml.state
Class StateDecoder

java.lang.Object
  extended bynet.dpml.state.StateDecoder

public class StateDecoder
extends Object

Construct a state graph.


Constructor Summary
StateDecoder()
           
 
Method Summary
 State buildStateGraph(Element element)
          Build a state graph.
 State loadState(URI uri)
          Load a state graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateDecoder

public StateDecoder()
Method Detail

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