public class XMLConfiguration extends java.lang.Object implements ConfigurationIF
Modifier and Type | Class and Description |
---|---|
protected class |
XMLConfiguration.ReturnList |
Constructor and Description |
---|
XMLConfiguration()
The constructor.
|
XMLConfiguration(java.lang.String xmlFile)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
getDocument()
Get the XML document, that describes the contents.
|
org.w3c.dom.Node |
getKernel()
Get the node decribing the kernel.
|
org.w3c.dom.NodeList |
getPackages(java.lang.String pattern)
Get all nodes assigned to given package name.
|
java.lang.String |
getType()
Get the type of the configuration.
|
static void |
main(java.lang.String[] args)
The main testing routine.
|
protected org.w3c.dom.Document |
read()
Parse the file.
|
public XMLConfiguration()
public XMLConfiguration(java.lang.String xmlFile)
public org.w3c.dom.Document getDocument() throws java.lang.Exception
getDocument
in interface ConfigurationIF
java.lang.Exception
public java.lang.String getType() throws java.lang.Exception
getType
in interface ConfigurationIF
java.lang.Exception
public org.w3c.dom.NodeList getPackages(java.lang.String pattern) throws java.lang.Exception
pattern
- the name pattern (reg-exp) of the package to look for.java.lang.Exception
public org.w3c.dom.Node getKernel()
protected org.w3c.dom.Document read() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static void main(java.lang.String[] args)
args
- The runtime parameters.