net.sf.jlayercheck.util
Class XMLConfigurationParser

java.lang.Object
  extended by net.sf.jlayercheck.util.XMLConfigurationParser

public class XMLConfigurationParser
extends Object

Used to create XMLConfiguration objects from an xml configuration file.

Author:
webmaster@earth3d.org

Field Summary
protected  String basedir
           
protected static Logger logger
           
 
Constructor Summary
XMLConfigurationParser()
          Creates a new parser object that can be used to create XMLConfiguration objects.
 
Method Summary
 String getBasedir()
           
 XMLConfiguration parse(File f)
          Parses the given configuration file and creates an XMLConfiguration object.
 XMLConfiguration parse(InputStream is)
          Parses the given configuration file and creates an XMLConfiguration object.
protected  void parseArchitectureTag(Node configNode, XMLConfiguration xmlConf)
           
protected  void parseEntry(Node entryNode, XMLConfiguration xmlConf)
          Parses the entry tag.
protected  void parseExclude(Node excludeNode, XMLConfiguration xmlConf)
           
protected  void parseModule(Node moduleNode, XMLConfiguration xmlConf)
           
protected  void parseSourcesTag(Node configNode, XMLConfiguration xmlConf)
           
 void setBasedir(String basedir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static Logger logger

basedir

protected String basedir
Constructor Detail

XMLConfigurationParser

public XMLConfigurationParser()
Creates a new parser object that can be used to create XMLConfiguration objects.

Method Detail

getBasedir

public String getBasedir()

setBasedir

public void setBasedir(String basedir)

parse

public XMLConfiguration parse(File f)
                       throws ConfigurationException,
                              SAXException,
                              IOException,
                              ParserConfigurationException
Parses the given configuration file and creates an XMLConfiguration object.

Parameters:
is - InputStream that points to an XML configuration file
Throws:
ConfigurationException
SAXException
IOException
ParserConfigurationException

parse

public XMLConfiguration parse(InputStream is)
                       throws ConfigurationException,
                              SAXException,
                              IOException,
                              ParserConfigurationException
Parses the given configuration file and creates an XMLConfiguration object.

Parameters:
is - InputStream that points to an XML configuration file
Throws:
ConfigurationException
SAXException
IOException
ParserConfigurationException

parseArchitectureTag

protected void parseArchitectureTag(Node configNode,
                                    XMLConfiguration xmlConf)

parseEntry

protected void parseEntry(Node entryNode,
                          XMLConfiguration xmlConf)
Parses the entry tag.

Parameters:
entryNode -
xmlConf -

parseExclude

protected void parseExclude(Node excludeNode,
                            XMLConfiguration xmlConf)

parseModule

protected void parseModule(Node moduleNode,
                           XMLConfiguration xmlConf)

parseSourcesTag

protected void parseSourcesTag(Node configNode,
                               XMLConfiguration xmlConf)


Copyright © 2007. All Rights Reserved.