|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcvm.model.handlers.schema.ControlSchemaParser
public class ControlSchemaParser
This class handles the parsing of the control schema.
The control schema as of now has
| Method Summary | |
|---|---|
static ControlSchemaParser |
getInstance()
Implementation of the singleton design pattern. |
com.thoughtworks.xstream.XStream |
getXStreamParser()
This function initializes the XStream parser for parsing the ControlSchema/userSchema. |
ControlSchema |
openControlSchemaFromXML(java.lang.String xmlFilePath)
|
java.lang.String |
parseSchemaToXML(ControlSchema schema)
This function takes a control schema object and converts it into XML format. |
ControlSchema |
parseXMLToSchema(java.lang.String xmlString)
This function parses an xml string in the format of a ControlSchema/userSchem XML and creates a ControlSchema object. |
boolean |
saveControlSchemaToFile(ControlSchema schema,
java.lang.String fileDestDir,
java.lang.String fileName)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ControlSchemaParser getInstance()
public com.thoughtworks.xstream.XStream getXStreamParser()
XStreampublic ControlSchema parseXMLToSchema(java.lang.String xmlString)
xmlString - userSchema in XML
public java.lang.String parseSchemaToXML(ControlSchema schema)
schema - ControlSchema Object
public boolean saveControlSchemaToFile(ControlSchema schema,
java.lang.String fileDestDir,
java.lang.String fileName)
public ControlSchema openControlSchemaFromXML(java.lang.String xmlFilePath)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||