public class KnnProblemScriptParser extends ProblemScriptParser
KnnProblemScript,
to or from XML. It should be called indirectly through the ProblemScriptParser class.passwordHandler| Constructor and Description |
|---|
KnnProblemScriptParser(org.licas.PasswordHandler thePasswordHandler)
Create a new instance of KnnProblemScriptParser.
|
| Modifier and Type | Method and Description |
|---|---|
KnnProblemScript |
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.
|
parseFilepublic KnnProblemScriptParser(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 ProblemScriptParsertestScript - the test script to serialize. Of type KnnProblemScript.forDisplay - if true, create output for display purposes only.java.lang.Exception - any error.public KnnProblemScript parse(org.licas_xml.abs.Element scriptXml) throws java.lang.Exception
parse in class ProblemScriptParserscriptXml - the script document in XML format.java.lang.Exception - any error.