|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qsos.transformation.XMLizer
public class XMLizer
The aim of this class is to do the conversion into a xml document of the java modelisation. In order to do the conversion, the library jdom is used.
Constructor Summary | |
---|---|
XMLizer()
|
Method Summary | |
---|---|
java.lang.String |
docToString(org.jdom.Document doc)
This method converts a document (org.jdom.Document) into a String. |
org.jdom.Element |
transformAnIElement(IElement item)
This method is a recursive method which allows to create all the xml node corresponding to the elemnt in the java representation. |
java.lang.String |
transformToXml(ISheet sheet)
This method takes an ISheet, representing the xml file and convert it into a string which is the content of an xml file. |
void |
transformToXml(ISheet target,
java.lang.String path)
This method takes a Sheet and create the xml file given by the path |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLizer()
Method Detail |
---|
public java.lang.String transformToXml(ISheet sheet)
transformToXml
in interface IXMLizer
sheet
- the sheet in the java modelisation.
public void transformToXml(ISheet target, java.lang.String path)
transformToXml
in interface IXMLizer
target
- the sheet in the java modelisation.path
- the path of the file to create.public java.lang.String docToString(org.jdom.Document doc)
docToString
in interface IXMLizer
doc
- the document to convert.
public org.jdom.Element transformAnIElement(IElement item)
item
- the IElement to convert.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |