public class KeelToXml extends Exporter
KeelToXml
This class extends from the Exporter class. It is used to read data with KEEL format and transform them to the XML format.Constructor and Description |
---|
KeelToXml()
KeelToXml class Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
NameLabelValid(java.lang.String nameLabelUser)
Transforms an attribute name given of the KEEL file to a valid xml tag.
|
void |
Save(java.lang.String pathnameOutput)
Method that creates the output file with XML format given as parameter
using all the structures built by the start method of the Exporter class.
|
void |
Start(java.lang.String pathnameInput,
java.lang.String pathnameOutput)
Method used to transform the data from the KEEL file given as parameter to
XML format file which will be stored in the second file given.
|
public KeelToXml()
public void Start(java.lang.String pathnameInput, java.lang.String pathnameOutput) throws java.lang.Exception
pathnameInput
- KEEL file path.pathnameOutput
- XML file path.java.lang.Exception
- if the files can not be read or written.public void Save(java.lang.String pathnameOutput) throws java.lang.Exception
pathnameOutput
- XML file path to generate.java.lang.Exception
- if the file can not be written.public java.lang.String NameLabelValid(java.lang.String nameLabelUser) throws java.lang.Exception
nameLabelUser
- attribute name with KEEL format.java.lang.Exception