|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpmp.Macroprocessor.Component
pmp.xml.XMLConfig
public class XMLConfig
Loads XML configuration files.
Title: PMP: Macroprocessor
Description: Java macroprocessor
Copyright: Copyright (c) 2005
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CONFIG
Location of default configuration file. |
Constructor Summary | |
---|---|
XMLConfig(Macroprocessor mp,
boolean loaddef)
Reads configuration from default configuration file bundled with macroprocessor. |
|
XMLConfig(Macroprocessor mp,
java.lang.String xmlConfig)
Reads configuration from file. |
Method Summary | |
---|---|
protected void |
importConfig(java.lang.String url)
Imports configuration data from file given by url into
this configuration. |
boolean |
parseXMLDocument(org.w3c.dom.Document doc)
Parses XML document. |
void |
reset()
Clears the content of lists of macros and projects |
void |
writeToMacroList(MacroList ml)
Writes list of macros into given MacroList . |
Methods inherited from class pmp.Macroprocessor.Component |
---|
error, getMP, getMPAnalyzer, getMPIO, getMPIQ, getMPMacros, notice, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_CONFIG
Constructor Detail |
---|
public XMLConfig(Macroprocessor mp, boolean loaddef)
mp
- instance of macroprocessorpublic XMLConfig(Macroprocessor mp, java.lang.String xmlConfig) throws FatalParserException
mp
- instance of macroprocessorxmlConfig
- name of configuration file
FatalParserException
- if file opening of file failsMethod Detail |
---|
public boolean parseXMLDocument(org.w3c.dom.Document doc) throws FatalParserException
doc
- DOM Document
true
if successful
FatalParserException
public void reset()
protected void importConfig(java.lang.String url)
url
into
this configuration.
url
- location of source filepublic void writeToMacroList(MacroList ml)
MacroList
.
ml
- destination MacroList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |