|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.ProcessDOM
public class ProcessDOM
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 |
---|
public ProcessDOM()
Method Detail |
---|
public java.util.HashMap<java.lang.String,java.lang.String> processUndergraduate(org.w3c.dom.Node undergraduateNode)
undergraduateNode
- The undergraduate Node from the XML document.
public java.util.HashMap<java.lang.String,java.lang.String> processGraduate(org.w3c.dom.Node graduateNode)
graduateNode
- The graduate Node from the XML document.
public java.util.HashMap<java.lang.String,java.lang.String> processPerson(org.w3c.dom.Node personNode)
personNode
- The personNode of the xml document.
public java.util.HashMap<java.lang.String,java.lang.String> processSharedElements(org.w3c.dom.Node personNode)
personNode
- A node contianing all of the elements that are
shared by all of the object derived from person.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |