jitas.xml.parser
Class StudentParser
java.lang.Object
jitas.xml.parser.XMLParser
jitas.xml.parser.StudentParser
public class StudentParser
- extends XMLParser
An XML parser to parse a set of Student Models from a given file.
There will be one such file for each domain.
- Version:
- 04 July 2007
- Author:
- DeathMarch (c314g2)
|
Constructor Summary |
StudentParser(java.lang.String studentPath,
java.lang.String rootPath,
java.lang.String modelsFileName)
The constructor sorts out the arguments, then hands
over the DOM work to the DOM parser; which is used to build
the DOM tree and then parse the student model docs (.xml). |
|
Method Summary |
java.util.Set<Student> |
processTree()
The root of the tree is easy to find since the document
itself implements the Node interface... |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StudentParser
public StudentParser(java.lang.String studentPath,
java.lang.String rootPath,
java.lang.String modelsFileName)
throws java.io.FileNotFoundException
- The constructor sorts out the arguments, then hands
over the DOM work to the DOM parser; which is used to build
the DOM tree and then parse the student model docs (.xml).
- Parameters:
studentPath - Path to the students XML filerootPath - The rootPathmodelsFileName - The name of the student models file
- Throws:
java.io.FileNotFoundException - If the file cannot be found
processTree
public java.util.Set<Student> processTree()
- The root of the tree is easy to find since the document
itself implements the Node interface...
- Specified by:
processTree in class XMLParser
- Returns:
- students The set of students