uk.ac.ic.doc.automed.p2p.tree
Class TreeBuilder

java.lang.Object
  extended by uk.ac.ic.doc.automed.p2p.tree.TreeBuilder

public class TreeBuilder
extends java.lang.Object

Author:
Charis TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
(package private)  org.w3c.dom.Element rootElement
           
 
Constructor Summary
TreeBuilder(org.w3c.dom.Document document)
           
TreeBuilder(org.w3c.dom.Element root)
           
 
Method Summary
private  AutoMedObject buildAutoMedObject(org.w3c.dom.Element element, java.lang.Class objectClass)
           
private  ObjectCollection buildCollection(org.w3c.dom.Element element)
           
 void buildCollectionSet(org.w3c.dom.Element set, Root root)
           
private  Field buildField(org.w3c.dom.Element element)
           
 void buildMainObjectClasses(org.w3c.dom.Element classes, Root root)
           
private  Value buildReference(org.w3c.dom.Element element)
           
 Root buildTree()
           
private  Value buildValue(org.w3c.dom.Element element)
           
private  Value buildValueList(org.w3c.dom.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rootElement

org.w3c.dom.Element rootElement
Constructor Detail

TreeBuilder

public TreeBuilder(org.w3c.dom.Element root)

TreeBuilder

public TreeBuilder(org.w3c.dom.Document document)
Method Detail

buildTree

public Root buildTree()
               throws AutoMedTreeException
Throws:
AutoMedTreeException

buildMainObjectClasses

public void buildMainObjectClasses(org.w3c.dom.Element classes,
                                   Root root)
                            throws AutoMedTreeException
Throws:
AutoMedTreeException

buildCollectionSet

public void buildCollectionSet(org.w3c.dom.Element set,
                               Root root)
                        throws AutoMedTreeException
Throws:
AutoMedTreeException

buildCollection

private ObjectCollection buildCollection(org.w3c.dom.Element element)
                                  throws AutoMedTreeException
Parameters:
element -
Returns:
Throws:
AutoMedTreeException

buildAutoMedObject

private AutoMedObject buildAutoMedObject(org.w3c.dom.Element element,
                                         java.lang.Class objectClass)
                                  throws AutoMedTreeException
Parameters:
objectElement -
Returns:
Throws:
AutoMedTreeException
AutoMedException

buildField

private Field buildField(org.w3c.dom.Element element)
                  throws AutoMedTreeException
Parameters:
fieldElement -
Returns:
Throws:
AutoMedTreeException

buildValue

private Value buildValue(org.w3c.dom.Element element)
                  throws AutoMedTreeException
Parameters:
valueElement -
Returns:
Throws:
AutoMedTreeException

buildValueList

private Value buildValueList(org.w3c.dom.Element element)
                      throws AutoMedTreeException
Parameters:
element -
Returns:
Throws:
AutoMedTreeException

buildReference

private Value buildReference(org.w3c.dom.Element element)
                      throws AutoMedTreeException
Parameters:
element -
Returns:
Throws:
AutoMedTreeException