xml
Class JDOM2XMLParser

java.lang.Object
  extended by xml.JDOM2XMLParser

public class JDOM2XMLParser
extends java.lang.Object

Author:
puginca

Field Summary
private  org.jdom.Document doc
           
 
Constructor Summary
JDOM2XMLParser(org.jdom.Document doc)
          Creates a new instance of JDOMParser
 
Method Summary
 XMLDocument constructAbstractTree()
          Creates the Abstract Tree
private  XMLAttribute constructAttribute(org.jdom.Attribute attribute)
          Creates an Attribute
private  java.util.ArrayList<XMLAttribute> constructAttributes(java.util.List list)
          Creates a list of attributes
private  XMLElement constructElement(org.jdom.Element elt, XMLElement father)
          Creates an element
private  XMLHeader constructHeader()
          Creates the header
private  XMLIdentifier constructIdentifier(java.lang.String str)
          Creates an Identifier
private  java.util.ArrayList<XMLNode> constructNodes(java.util.List list, XMLElement father)
          Creates a node.
private  java.util.ArrayList divideText(java.lang.String str, XMLElement father)
          Divide a JDOM text node in several XMLText nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

private org.jdom.Document doc
Constructor Detail

JDOM2XMLParser

public JDOM2XMLParser(org.jdom.Document doc)
Creates a new instance of JDOMParser

Method Detail

constructAbstractTree

public XMLDocument constructAbstractTree()
Creates the Abstract Tree


constructHeader

private XMLHeader constructHeader()
Creates the header


constructElement

private XMLElement constructElement(org.jdom.Element elt,
                                    XMLElement father)
Creates an element


constructAttributes

private java.util.ArrayList<XMLAttribute> constructAttributes(java.util.List list)
Creates a list of attributes


constructNodes

private java.util.ArrayList<XMLNode> constructNodes(java.util.List list,
                                                    XMLElement father)
Creates a node. XMLNode is of type XMLElement or XMLText


constructIdentifier

private XMLIdentifier constructIdentifier(java.lang.String str)
Creates an Identifier


constructAttribute

private XMLAttribute constructAttribute(org.jdom.Attribute attribute)
Creates an Attribute


divideText

private java.util.ArrayList divideText(java.lang.String str,
                                       XMLElement father)
Divide a JDOM text node in several XMLText nodes. [...] is one node.