vc.xml.sax
Class SaxWriter

java.lang.Object
  |
  +--vc.xml.sax.SaxWriter

public class SaxWriter
extends java.lang.Object

SaxDataExtractor is the Template Method (pattern) class of XML subsystem which standardizes the method call sequence for generating the XML documents out of the project and the version database generated out of SAX data parsing.


Constructor Summary
SaxWriter(ProjectDB projectDB)
          Constructs and Initializes the object with the data passed with the parameters
 
Method Summary
 java.lang.String generateDirectoryCode(DirectoryContainer currentDirectoryContainer, java.lang.String XmlCode, java.lang.String FormattingTabs)
          This methods generates the XML code for representing the directory information passed as the parameter
 java.lang.String generateFileCode(DirectoryContainer currentDirectoryContainer, java.lang.String XmlCode, java.lang.String FormattingTabs)
           
 void writeToXmlFile(java.lang.String XmlFileName)
          This methods initiates the process of writing the XMl daata into a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaxWriter

public SaxWriter(ProjectDB projectDB)
Constructs and Initializes the object with the data passed with the parameters
Parameters:
projectDB - to initializethe field projectDB
Method Detail

writeToXmlFile

public void writeToXmlFile(java.lang.String XmlFileName)
This methods initiates the process of writing the XMl daata into a file. It writes the common minimum XML data into the file like headings etc. It takes the help of other methods to write the data about the elements of the project and version database
Parameters:
XmlFileName - Name of the file to which the XML data will be written

generateDirectoryCode

public java.lang.String generateDirectoryCode(DirectoryContainer currentDirectoryContainer,
                                              java.lang.String XmlCode,
                                              java.lang.String FormattingTabs)
This methods generates the XML code for representing the directory information passed as the parameter
Parameters:
currentDirectoryContainer - container of the directory whose XML data is to be written
XmlCode - XML data string to which the directory specific xml daTA is to be writter and returned
XmlFileName - Name of the file to which the XML data will be written
XmlFileName - Name of the file to which the XML data will be written

generateFileCode

public java.lang.String generateFileCode(DirectoryContainer currentDirectoryContainer,
                                         java.lang.String XmlCode,
                                         java.lang.String FormattingTabs)