public class GridProblemScriptParser extends ProblemScriptParser
GridProblemScript
,
to or from XML. It should be called indirectly through the ProblemScriptParser
class.passwordHandler
Constructor and Description |
---|
GridProblemScriptParser(org.licas.PasswordHandler thePasswordHandler)
Create a new instance of GridProblemScriptParser.
|
Modifier and Type | Method and Description |
---|---|
GridProblemScript |
parse(org.licas_xml.abs.Element scriptXml)
Parse the file path to create a test script for creating the test scenario from.
|
org.licas_xml.abs.Element |
serialize(ProblemScript testScript,
boolean forDisplay)
Serialize the test script into XML.
|
parseFile
public GridProblemScriptParser(org.licas.PasswordHandler thePasswordHandler)
thePasswordHandler
- for storing passwords.public org.licas_xml.abs.Element serialize(ProblemScript testScript, boolean forDisplay) throws java.lang.Exception
serialize
in class ProblemScriptParser
testScript
- the test script to serialize. Of type GridProblemScript
.forDisplay
- if true, create output for display purposes only.java.lang.Exception
- any error.public GridProblemScript parse(org.licas_xml.abs.Element scriptXml) throws java.lang.Exception
parse
in class ProblemScriptParser
scriptXml
- the script document in XML format.java.lang.Exception
- any error.