public class LicasConfigParser
extends java.lang.Object
LicasConfig
object that contains all configuration information,
including service types with related GUI interface classnames.Constructor and Description |
---|
LicasConfigParser()
Create a new instance of LicasConfigParser
|
Modifier and Type | Method and Description |
---|---|
LicasConfig |
parse(org.licas_xml.abs.Element toParse)
Parse the XML element back into the appropriate Object.
|
LicasConfig |
parseFromFile()
Parse an XML file back into the gui config model.
|
LicasConfig |
parseFromFile(java.lang.String filePath)
Parse an XML file back into the gui config model.
|
org.licas_xml.abs.Element |
serialize(LicasConfig licasConfig)
Serialize the object into an XML element.
|
void |
writeToFile(LicasConfig licasConfig)
Write the gui config model to a file.
|
void |
writeToFile(LicasConfig licasConfig,
java.lang.String filePath)
Write the gui config model to a file.
|
public LicasConfigParser()
public org.licas_xml.abs.Element serialize(LicasConfig licasConfig) throws java.lang.Exception
licasConfig
- the licas configuration information.java.lang.Exception
- any error.public void writeToFile(LicasConfig licasConfig) throws java.lang.Exception
licasConfig
- the licas configuration to write.java.lang.Exception
- any error.public void writeToFile(LicasConfig licasConfig, java.lang.String filePath) throws java.lang.Exception
licasConfig
- the licas configuration to write.filePath
- the path to the file to parse.java.lang.Exception
- any error.public LicasConfig parseFromFile() throws java.lang.Exception
java.lang.Exception
- any error.public LicasConfig parseFromFile(java.lang.String filePath) throws java.lang.Exception
filePath
- the path to the file to parse.java.lang.Exception
- any error.public LicasConfig parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception
toParse
- the element to parse.java.lang.Exception
- any error.