net.sf.doolin.oxml.config
Class XMLOXMLConfig

java.lang.Object
  extended by net.sf.doolin.oxml.config.AbstractOXMLConfig
      extended by net.sf.doolin.oxml.config.XMLOXMLConfig
All Implemented Interfaces:
OXMLConfig

public class XMLOXMLConfig
extends AbstractOXMLConfig

Configuration based upon an XML file that complies with the http://www.doolin-guif.net/schema/oxml schema.

Author:
Damien Coraboeuf

Constructor Summary
XMLOXMLConfig()
          Default constructor.
XMLOXMLConfig(URL url)
          Constructor from a resource path.
 
Method Summary
protected  DocumentBuilder getBuilder()
          Creates a document builder for the parsing.
protected  Document parse(URL url)
          Internal parsing method
protected  void setResource(URL url)
          Sets the configuration from a resource path.
 
Methods inherited from class net.sf.doolin.oxml.config.AbstractOXMLConfig
getRootAction, setRootAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLOXMLConfig

public XMLOXMLConfig()
Default constructor. The created instance needs to be initialized.

See Also:
setResource(URL)

XMLOXMLConfig

public XMLOXMLConfig(URL url)
              throws IOException
Constructor from a resource path.

Parameters:
url - Path to the resource
Throws:
IOException - If a parsing error occurs
See Also:
setResource(URL)
Method Detail

getBuilder

protected DocumentBuilder getBuilder()
                              throws IOException
Creates a document builder for the parsing.

Returns:
Document builder
Throws:
IOException - If the DOM builder cannot be configured

parse

protected Document parse(URL url)
                  throws IOException
Internal parsing method

Parameters:
url - URL to parse
Returns:
Parsed document
Throws:
IOException - If a parsing error occurs

setResource

protected void setResource(URL url)
                    throws IOException
Sets the configuration from a resource path.

Parameters:
url - Resource path to an XML file that complies with the http://doolin-guif.sourceforge.net/schema/oxml schema.
Throws:
IOException - If the configuration cannot be parsed


Copyright © 2011. All Rights Reserved.