|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.finalist.jaggenerator.ConfigManager
The ConfigManager deals with loading / saving JAG configuraton information to/from an XML config file.
Field Summary | |
protected static java.lang.String |
XMLTAG_GUI
The name of the XML tag that contains the GUI configuration properties. |
Method Summary | |
org.w3c.dom.Document |
getDocument()
Gets the config information, parsed as an XML document. |
static ConfigManager |
getInstance()
The ConfigManager is a singleton - this method obtains the one and only instance. |
java.util.Map |
retrievePropertiesFromXML(java.lang.String rootElementName)
Creates a Map that contains key-value pairs representing the XML elements / text nodes that fall underneath the node with the supplied name. |
void |
save()
Saves the configurations to the XML JAG_CONFIG_FILE. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String XMLTAG_GUI
Method Detail |
public static ConfigManager getInstance()
public org.w3c.dom.Document getDocument()
public java.util.Map retrievePropertiesFromXML(java.lang.String rootElementName)
rootElementName
- The name of the parent node whose children we want making into a Properties object.
null
) if there are no nodes with the name
specified in rootElementName
.public void save()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |