|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjitas.xml.parser.XMLParser
jitas.xml.parser.StudentParser
public class StudentParser
An XML parser to parse a set of Student Models from a given file. There will be one such file for each domain.
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 jitas.xml.parser.XMLParser |
---|
checkWeCanWriteToFile, documentIsEmpty, isFileEmpty, loadXML, writeToXML |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StudentParser(java.lang.String studentPath, java.lang.String rootPath, java.lang.String modelsFileName) throws java.io.FileNotFoundException
studentPath
- Path to the students XML filerootPath
- The rootPathmodelsFileName
- The name of the student models file
java.io.FileNotFoundException
- If the file cannot be foundMethod Detail |
---|
public java.util.Set<Student> processTree()
processTree
in class XMLParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |