university
Class ProcessDOM

java.lang.Object
  extended by university.ProcessDOM

public class ProcessDOM
extends java.lang.Object

ProcessDOM processes the nodes that are contained in the XML document. The class can use DOM to process node for a Person, an Undergraduate student and a Graduate student.


Constructor Summary
ProcessDOM()
          Creates a new instance of ProcessXML
 
Method Summary
 java.util.HashMap<java.lang.String,java.lang.String> processGraduate(org.w3c.dom.Node graduateNode)
          processGraduate processes a graduate Node of the XML document reading all the information for the student and returning HashMap of the values read.
 java.util.HashMap<java.lang.String,java.lang.String> processPerson(org.w3c.dom.Node personNode)
          processPerson processes a person Node of the xml document by reading in all the values of the person and inserting the values into a HashMap and then return the HashMp.
 java.util.HashMap<java.lang.String,java.lang.String> processSharedElements(org.w3c.dom.Node personNode)
          processSharedElements process the personNode by processing all the elemements that are shared by all objects
 java.util.HashMap<java.lang.String,java.lang.String> processUndergraduate(org.w3c.dom.Node undergraduateNode)
          processUndergraduate process a undergraduate Node of the XML document by reading all the information for the student and the return a HashMap of all the values read.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessDOM

public ProcessDOM()
Creates a new instance of ProcessXML

Method Detail

processUndergraduate

public java.util.HashMap<java.lang.String,java.lang.String> processUndergraduate(org.w3c.dom.Node undergraduateNode)
processUndergraduate process a undergraduate Node of the XML document by reading all the information for the student and the return a HashMap of all the values read.

Parameters:
undergraduateNode - The undergraduate Node from the XML document.
Returns:
HashMap A HashMap of all the values read in from the XML node for an undergraduate student.

processGraduate

public java.util.HashMap<java.lang.String,java.lang.String> processGraduate(org.w3c.dom.Node graduateNode)
processGraduate processes a graduate Node of the XML document reading all the information for the student and returning HashMap of the values read.

Parameters:
graduateNode - The graduate Node from the XML document.
Returns:
HashMap A HashMap of all the values read in from the XML node for an undergraduate student.

processPerson

public java.util.HashMap<java.lang.String,java.lang.String> processPerson(org.w3c.dom.Node personNode)
processPerson processes a person Node of the xml document by reading in all the values of the person and inserting the values into a HashMap and then return the HashMp.

Parameters:
personNode - The personNode of the xml document.
Returns:
HashMap A HashMap of all the values read in from the XML node for a person.

processSharedElements

public java.util.HashMap<java.lang.String,java.lang.String> processSharedElements(org.w3c.dom.Node personNode)
processSharedElements process the personNode by processing all the elemements that are shared by all objects

Parameters:
personNode - A node contianing all of the elements that are shared by all of the object derived from person.
Returns:
HashMap A HashMap contain all of the values read in from the xml node.