|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.rkcheck.XMLFile
org.spaceroots.rkcheck.RungeKuttaFile
This class reads or write an XML file containing a Runge-Kutta method description.
| Field Summary |
| Fields inherited from class org.spaceroots.rkcheck.XMLFile |
uri |
| Constructor Summary | |
RungeKuttaFile(RungeKuttaMethod method)
Simple constructor. |
|
| Method Summary | |
void |
analyze(org.w3c.dom.Document document,
java.lang.String uri)
Analyze the DOM tree. |
void |
build(org.w3c.dom.Document document,
java.lang.String uri)
Build the DOM tree. |
protected java.lang.String |
getPublicId()
Get the public ID of the DTD. |
protected java.lang.String |
getSystemId()
Get the system ID of the DTD. |
| Methods inherited from class org.spaceroots.rkcheck.XMLFile |
error, fatalError, getAttribute, getContent, getElement, read, warning, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RungeKuttaFile(RungeKuttaMethod method)
throws RKCheckException
Build a file reader/writer for a Runge-Kutta method instance.
method - Runge-Kutta method instance to initialize by file
reading or to store by file writing
RKCheckException - if no parser can be built| Method Detail |
public void analyze(org.w3c.dom.Document document,
java.lang.String uri)
throws RKCheckException,
java.lang.NumberFormatException
This method is called by the read method after
having build the DOM tree. Its purpose is to analyze the tree and
store the contained information in application-specific ways.
analyze in class XMLFiledocument - DOM tree to analyzeuri - URI from which the project document was read (useful
mainly for error messages)
RKCheckException - if some data cannot be found in the tree
or if there is a dimension mismatch
java.lang.NumberFormatException - if some number cannot be parsed
public void build(org.w3c.dom.Document document,
java.lang.String uri)
throws RKCheckException
This method is called by the write method
before writing the DOM tree. Its purpose is to build the DOM tree
in application-specific ways.
build in class XMLFiledocument - empty DOM tree to builduri - URI where the project document will be written (useful
mainly for error messages)
RKCheckException - if some problem occurs while building
the treeprotected java.lang.String getPublicId()
getPublicId in class XMLFileprotected java.lang.String getSystemId()
getSystemId in class XMLFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||