org.qsos.transformation
Class DesXMLizer

java.lang.Object
  extended by org.qsos.transformation.DesXMLizer
All Implemented Interfaces:
IDesXMLizer

public class DesXMLizer
extends java.lang.Object
implements IDesXMLizer

The aim of this class is to do the conversion between a xml document and the java modelisation. In order to do the conversion, the library jdom is used.

This class implements IDesXMLizer.

Author:
Arthur Clerfeuille

Constructor Summary
DesXMLizer()
           
 
Method Summary
 IElement transformAnElement(org.jdom.Element target)
           This method is private due to the fact that it is a recursive auxilary method of transformFromXML
 ISheet transformFromXML(java.net.URL url)
           This method transforms an xml file given by is url (use "file:///path/toto.xml" if local) and returns an IElement which is the root element of the xml file in the java modelisation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesXMLizer

public DesXMLizer()
Method Detail

transformFromXML

public ISheet transformFromXML(java.net.URL url)
                        throws org.jdom.JDOMException,
                               java.io.IOException

This method transforms an xml file given by is url (use "file:///path/toto.xml" if local) and returns an IElement which is the root element of the xml file in the java modelisation.

Specified by:
transformFromXML in interface IDesXMLizer
Parameters:
url - the url of the xml file.
Returns:
ISheet the ISheet in the java modelisation.
Throws:
JDOMException.
org.jdom.JDOMException
java.io.IOException

transformAnElement

public IElement transformAnElement(org.jdom.Element target)

This method is private due to the fact that it is a recursive auxilary method of transformFromXML

Parameters:
target - the IElement root of the branch.
Returns:
item a root of another branch.