public interface AthosConfigModelIF
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
addService(org.w3c.dom.Element pattern,
java.lang.String name,
org.w3c.dom.NodeList appNodeList)
Add service.
|
org.w3c.dom.NodeList |
checkConsistence()
check the consistence
|
void |
extend(org.w3c.dom.Node serviceNode,
org.w3c.dom.Node application)
Extends the given product/service node is to be used for the given application node.
|
org.w3c.dom.NodeList |
getAvailableApplications()
Get an array of available application description attributes.
|
org.w3c.dom.NodeList |
getAvailableProducts()
Get an array of available product description attributes.
|
org.w3c.dom.Document |
getDocument()
Get the document.
|
GUIFactoryIF |
getFactory()
Get the factory that creates the GUI elements.
|
java.lang.String |
getFilename()
Get the filename of the configuration.
|
org.w3c.dom.Element |
getGlobal()
Get the global node.
|
org.w3c.dom.NodeList |
getNoneDriverNodes()
Get an array of non driver nodes.
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
Get a string property.
|
boolean |
isDesignedFor(org.w3c.dom.Node node,
org.w3c.dom.Node application)
Get a boolean whether the given node is designed for the given application name.
|
void |
newConfig()
Create a new configuration.
|
void |
openFile(java.io.File file)
Open an INI file.
|
void |
openFile(java.lang.String filename)
Open an INI file.
|
void |
reduce(org.w3c.dom.Node serviceNode,
org.w3c.dom.Node application,
org.w3c.dom.NodeList otherApp)
Remove the given application dependencies from given product/service node.
|
void |
saveFile(java.io.File file)
Save an INI file.
|
void |
saveFile(java.lang.String filename)
Save the INI file.
|
java.lang.String getProperty(java.lang.String key, java.lang.String def)
key
- the property keyword.def
- the default value.GUIFactoryIF getFactory()
void openFile(java.lang.String filename) throws java.lang.Exception
filename
- the name of the file to be opened.java.lang.Exception
void openFile(java.io.File file) throws java.lang.Exception
file
- the file descriptor of the file to be opened.java.lang.Exception
void saveFile(java.lang.String filename) throws java.lang.Exception
filename
- the name of the file to be saved.java.lang.Exception
void saveFile(java.io.File file) throws java.lang.Exception
file
- the file descriptor of the file to be saved.java.lang.Exception
org.w3c.dom.NodeList getAvailableProducts() throws java.lang.Exception
java.lang.Exception
org.w3c.dom.NodeList getAvailableApplications() throws java.lang.Exception
java.lang.Exception
org.w3c.dom.NodeList getNoneDriverNodes() throws java.lang.Exception
java.lang.Exception
boolean isDesignedFor(org.w3c.dom.Node node, org.w3c.dom.Node application) throws java.lang.Exception
java.lang.Exception
void extend(org.w3c.dom.Node serviceNode, org.w3c.dom.Node application)
void reduce(org.w3c.dom.Node serviceNode, org.w3c.dom.Node application, org.w3c.dom.NodeList otherApp)
org.w3c.dom.Document getDocument()
org.w3c.dom.Element getGlobal()
org.w3c.dom.Element addService(org.w3c.dom.Element pattern, java.lang.String name, org.w3c.dom.NodeList appNodeList)
java.lang.String getFilename()
void newConfig()
org.w3c.dom.NodeList checkConsistence()