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 |
SaxWriter
public SaxWriter(ProjectDB projectDB)
- Constructs and Initializes the object with the data passed with the parameters
- Parameters:
projectDB
- to initializethe field projectDB
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 writtenXmlCode
- XML data string to which the directory specific xml daTA
is to be writter and returnedXmlFileName
- Name of the file to which the XML data will be writtenXmlFileName
- 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)