public class ServiceSpecParser
extends java.lang.Object
ServiceSpec object,
or serialize back into XML again. You would typically use a BehaviourScript and
related parser, so this is just for convenience.| Modifier and Type | Field and Description |
|---|---|
protected PasswordHandler |
passwordHandler
For storing passwords
|
| Constructor and Description |
|---|
ServiceSpecParser(PasswordHandler thePasswordHandler)
Create a new instance of ServiceSpecParser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
parse(org.licas_xml.abs.Element scriptXml,
ServiceSpec serviceSpec)
Parse the file path to create a base service script specification.
|
org.licas_xml.abs.Element |
serialize(ServiceSpec testScript,
boolean forDisplay)
Serialize the base service script specification into XML.
|
protected PasswordHandler passwordHandler
public ServiceSpecParser(PasswordHandler thePasswordHandler)
thePasswordHandler - for storing passwords.public org.licas_xml.abs.Element serialize(ServiceSpec 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 void parse(org.licas_xml.abs.Element scriptXml,
ServiceSpec serviceSpec)
throws java.lang.Exception
scriptXml - the script document in XML format.serviceSpec - the service script specification object.java.lang.Exception - any error.