jitas.xml.writer
Class AllDomainsWriter

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

public class AllDomainsWriter
extends XMLWriter

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

Version:
15 May 2007
Author:
DeathMarch (c314g2)

Constructor Summary
AllDomainsWriter(Domain d)
          Constructor.
AllDomainsWriter(Domain d, java.lang.String pathName)
          Constructor.
 
Method Summary
 void addDomain()
          Add a domain to the domains 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

AllDomainsWriter

public AllDomainsWriter(Domain d,
                        java.lang.String pathName)
Constructor. Pass the parameters to the superclass to load the XML file.

Parameters:
d - the domain needs to be added
pathName - the path to the file that contains all the domain names

AllDomainsWriter

public AllDomainsWriter(Domain d)
Constructor. Pass the parameters to the superclass to load the XML file.

Parameters:
d - the domain needs to be added
Method Detail

addDomain

public void addDomain()
Add a domain to the domains XML file.