|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.faban.common.ParamReader
public class ParamReader
The ParamReader reads the run parameter file (usually run.xml) and provides the caller with a document node. It is making sure that older parameter file formats get converted to the latest format. This conversion happens in the DOM tree. All access to the parameter file should go through the ParamReader to ensure backwards compatibility.
Field Summary | |
---|---|
static String |
FABANURI
The base Faban namespace URI. |
Constructor Summary | |
---|---|
ParamReader(String fileName,
boolean warnDeprecated)
Constructs a ParamReader for the given configuration file. |
Method Summary | |
---|---|
Document |
getDocument()
Obtains the Document object for this param file. |
XPath |
getXPath()
Obtains the preconfigured XPath object. |
static void |
main(String[] args)
Invokes the ParamReader in conversion mode and actually saves the conversion output to a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FABANURI
Constructor Detail |
---|
public ParamReader(String fileName, boolean warnDeprecated) throws Exception
fileName
- The configuration filewarnDeprecated
- Log warnings if config file is deprecated format
Exception
- If reading this file does not succeedMethod Detail |
---|
public Document getDocument()
public XPath getXPath()
public static void main(String[] args) throws Exception
args
- The input and output file
Exception
- If anything goes wrong with the conversion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |