org.qsos.transformation
Interface IXMLizer

All Known Implementing Classes:
XMLizer

public interface IXMLizer

This interface should be implemented by the class JDomImpl. It allows to convert the modelisation in java into a String which contains the xml.

Author:
Romain Pelisse

Method Summary
 java.lang.String docToString(org.jdom.Document doc)
          This method converts a document (org.jdom.Document) into a String.
 java.lang.String transformToXml(ISheet sheet)
          This method takes an ISheet, which contains the root element of the java modelisation and returns a String representation of the xml
 void transformToXml(ISheet sheet, java.lang.String path)
          This method takes an ISheet, which contains the root element of the java modelisation and create the xml file given by the path
 

Method Detail

transformToXml

java.lang.String transformToXml(ISheet sheet)
This method takes an ISheet, which contains the root element of the java modelisation and returns a String representation of the xml

Parameters:
sheet - the ISheet in the java modelisation.
Returns:
String the string representation of the xml.

transformToXml

void transformToXml(ISheet sheet,
                    java.lang.String path)
This method takes an ISheet, which contains the root element of the java modelisation and create the xml file given by the path

Parameters:
sheet - the ISheet in the java modelisation.
path - the path of the file to create.

docToString

java.lang.String docToString(org.jdom.Document doc)
This method converts a document (org.jdom.Document) into a String.

Parameters:
doc - the document to convert.
Returns:
String the string representation of the doc.