public class ProblemScriptParser
extends java.lang.Object
ProblemScript or derived
classes, to or from XML.| Modifier and Type | Field and Description |
|---|---|
protected org.licas.PasswordHandler |
passwordHandler
For storing passwords
|
| Constructor and Description |
|---|
ProblemScriptParser(org.licas.PasswordHandler thePasswordHandler)
Create a new instance of ProblemScriptParser.
|
| Modifier and Type | Method and Description |
|---|---|
ProblemScript |
parse(org.licas_xml.abs.Element scriptXml)
Parse the file path to create a test script for creating the test scenario from.
|
ProblemScript |
parseFile(java.lang.String filePath)
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.
|
protected org.licas.PasswordHandler passwordHandler
public ProblemScriptParser(org.licas.PasswordHandler thePasswordHandler)
thePasswordHandler - for storing passwords.public org.licas_xml.abs.Element serialize(ProblemScript testScript, boolean forDisplay) throws java.lang.Exception
testScript - the test script to serialize.forDisplay - if true, create output for display purposes only.java.lang.Exception - any error.public ProblemScript parseFile(java.lang.String filePath) throws java.lang.Exception
filePath - the script file path.java.lang.Exception - any error.public ProblemScript parse(org.licas_xml.abs.Element scriptXml) throws java.lang.Exception
scriptXml - the script document in XML format.java.lang.Exception - any error.