net.dpml.metro.builder
Class ComponentDecoder

java.lang.Object
  extended by net.dpml.metro.builder.ComponentDecoder

public class ComponentDecoder
extends Object

Construct a state graph.


Constructor Summary
ComponentDecoder()
           
 
Method Summary
 ComponentDirective buildComponent(Element root, Resolver resolver)
          Construct a component directive using the supplied DOM element.
protected  ValueDirective buildValueDirective(Element element)
          Build a value directive using a supplied DOM element.
 ComponentDirective loadComponentDirective(URI uri)
          Construct a component directive using the supplied uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentDecoder

public ComponentDecoder()
Method Detail

loadComponentDirective

public ComponentDirective loadComponentDirective(URI uri)
                                          throws IOException
Construct a component directive using the supplied uri. The uri must refer to an XML document containing a root component element (typically used in component data testcases).

Parameters:
uri - the part uri
Returns:
the component directive
Throws:
IOException - if an error occurs during directive creation

buildComponent

public ComponentDirective buildComponent(Element root,
                                         Resolver resolver)
                                  throws DecodingException
Construct a component directive using the supplied DOM element.

Parameters:
root - the element representing the component directive definition
resolver - build-time uri resolver
Returns:
the component directive
Throws:
DecodingException - if an error occurs during directive creation

buildValueDirective

protected ValueDirective buildValueDirective(Element element)
Build a value directive using a supplied DOM element.

Parameters:
element - the DOM element
Returns:
the value directive