|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjitas.xml.writer.XMLWriter
jitas.xml.writer.StudentModelWriter
public class StudentModelWriter
A class that provides functions for users to write to student-models.xml. Future enhancements could include bulk processing of persisting student models which would mean that the student models xml file wouldn't need to be opened and closed multiple times.
Constructor Summary | |
---|---|
StudentModelWriter(StudentModel sm,
java.lang.String pathName)
Constructor. |
Method Summary | |
---|---|
void |
addStudentModel()
Add a student model to the student-model XML file. |
void |
persistStudentModel()
Saves all the current information stored in the Student Model given to the constructor to the student models xml file. |
void |
removeStudentModel()
Removes a student model from the student-model XML file. |
Methods inherited from class jitas.xml.writer.XMLWriter |
---|
loadXML, writeToXML |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StudentModelWriter(StudentModel sm, java.lang.String pathName)
Method Detail |
---|
public void addStudentModel()
public void removeStudentModel() throws UserNotFoundException
UserNotFoundException
public void persistStudentModel() throws UserNotFoundException
UserNotFoundException
- if there is no student model for the student
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |