jitas.xml.writer
Class StudentWriter

java.lang.Object
  extended by jitas.xml.writer.XMLWriter
      extended by jitas.xml.writer.StudentWriter

public class StudentWriter
extends XMLWriter

A class that provides functions for users to write to students.xml.

Version:
05 August 2007
Author:
DeathMarch (c314g2)

Constructor Summary
StudentWriter(Student student, java.lang.String pathName)
          Constructor.
 
Method Summary
 void addAllowedDomain(java.lang.String domainName)
          Adds a domain to the set of Allowed domains which a student may log into.
 void addStudent()
          Add a student to the student XML file.
 void changePassword()
          Save the new password that student changed to xml file
 void removeDomain(java.lang.String domainName)
          Removes a single domain name from the allowed domains set
 void removeStudent()
          Removes a student to the student 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

StudentWriter

public StudentWriter(Student student,
                     java.lang.String pathName)
Constructor. Pass the parameters to the superclass to load the XML file. If you only want to change the password, then pass in an empty domainName.

Method Detail

addStudent

public void addStudent()
Add a student to the student XML file.


removeStudent

public void removeStudent()
Removes a student to the student XML file.


changePassword

public void changePassword()
Save the new password that student changed to xml file


addAllowedDomain

public void addAllowedDomain(java.lang.String domainName)
Adds a domain to the set of Allowed domains which a student may log into. We are given the domain name in the constructor.


removeDomain

public void removeDomain(java.lang.String domainName)
Removes a single domain name from the allowed domains set

Parameters:
domainName -