|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IXMLSerializer
This interface defines the functionality a XML serialisation class must provide.
| Method Summary | |
|---|---|
boolean |
checkFileVersion()
Check if the xml version of the file matches with the one of the parser |
IInputObjectModel |
deserialize()
Generate a ch.sahits.codegen.java.internal.wizards.IGeneratedClass that also implements IInputObjectModelfrom the XML file |
java.lang.String |
getParserName()
Retrieve the name of this parser |
void |
init(java.lang.String inputFile)
Initialize the parser This method must be called before any acces to the elements in the XML file is possible. |
void |
serialize(IInputObjectModel genClass)
Serialize the GeneratedClass object into the xml file |
| Method Detail |
|---|
java.lang.String getParserName()
IInputObjectModel deserialize()
ch.sahits.codegen.java.internal.wizards.IGeneratedClass that also implements IInputObjectModelfrom the XML file
ch.sahits.codegen.java.internal.wizards.IGeneratedClassvoid serialize(IInputObjectModel genClass)
GeneratedClass object into the xml file
genClass - object to be serializedboolean checkFileVersion()
void init(java.lang.String inputFile)
throws java.lang.Exception
inputFile - Input parser
java.lang.Exception - one of the following
JDOMException - Could not create a SAX parser
java.io.IOException - Could not read from input file
java.net.MalformedURLException - malformed input file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||