|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jlayercheck.util.XMLConfigurationParser
public class XMLConfigurationParser
Used to create XMLConfiguration objects from an xml configuration file.
| 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 |
|---|
protected static Logger logger
protected String basedir
| Constructor Detail |
|---|
public XMLConfigurationParser()
| Method Detail |
|---|
public String getBasedir()
public void setBasedir(String basedir)
public XMLConfiguration parse(File f)
throws ConfigurationException,
SAXException,
IOException,
ParserConfigurationException
is - InputStream that points to an XML configuration file
ConfigurationException
SAXException
IOException
ParserConfigurationException
public XMLConfiguration parse(InputStream is)
throws ConfigurationException,
SAXException,
IOException,
ParserConfigurationException
is - InputStream that points to an XML configuration file
ConfigurationException
SAXException
IOException
ParserConfigurationException
protected void parseArchitectureTag(Node configNode,
XMLConfiguration xmlConf)
protected void parseEntry(Node entryNode,
XMLConfiguration xmlConf)
entryNode - xmlConf -
protected void parseExclude(Node excludeNode,
XMLConfiguration xmlConf)
protected void parseModule(Node moduleNode,
XMLConfiguration xmlConf)
protected void parseSourcesTag(Node configNode,
XMLConfiguration xmlConf)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||