vc.xml.sax
Class VersionDBWriter

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

public class VersionDBWriter
extends java.lang.Object

VersionDBWriter is the class of XML subsystem which writes the XML document corresponding to the version database.


Constructor Summary
VersionDBWriter()
           
 
Method Summary
 void saveXMLFile()
          The method that finally saves all the prepared XML code into the file
 void writeBeginDataBase(java.lang.String dbName)
          writes the XML data about the starting of the database element
 void writeBeginFile(java.lang.String id, java.lang.String letestVersionName)
          writes the XML data about the starting of the file element
 void writeBeginProject(java.lang.String id, java.lang.String letestVersionName)
          writes the XML data about the starting of the project element
 void writeEndDataBase()
          writes the XML data about the ending of the database element
 void writeEndFile()
          writes the XML data about the ending of the file element
 void writeEndProject()
          writes the XML data about the ending of the project element
 void writeHeader()
          writes the XML header required for any XML document
 void writeLabelVersionMap(java.lang.String label, java.lang.String version, java.lang.String user, java.lang.String birthTime)
          Writes the XML data about the LabelVersionMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionDBWriter

public VersionDBWriter()
Method Detail

saveXMLFile

public void saveXMLFile()
                 throws java.lang.Throwable
The method that finally saves all the prepared XML code into the file

writeHeader

public void writeHeader()
writes the XML header required for any XML document

writeBeginDataBase

public void writeBeginDataBase(java.lang.String dbName)
writes the XML data about the starting of the database element
Parameters:
dbName - name of the database

writeEndDataBase

public void writeEndDataBase()
writes the XML data about the ending of the database element

writeBeginProject

public void writeBeginProject(java.lang.String id,
                              java.lang.String letestVersionName)
writes the XML data about the starting of the project element
Parameters:
id - id of the project
letestVersionName - name of the latest version of the project

writeEndProject

public void writeEndProject()
writes the XML data about the ending of the project element

writeBeginFile

public void writeBeginFile(java.lang.String id,
                           java.lang.String letestVersionName)
writes the XML data about the starting of the file element
Parameters:
id - id of the file
letestVersionName - name of the latest version of the file

writeEndFile

public void writeEndFile()
writes the XML data about the ending of the file element

writeLabelVersionMap

public void writeLabelVersionMap(java.lang.String label,
                                 java.lang.String version,
                                 java.lang.String user,
                                 java.lang.String birthTime)
Writes the XML data about the LabelVersionMap
Parameters:
label - label of the LabelVersionMap
version - version of the LabelVersionMap
user - user of the LabelVersionMap
birthTime - birthTime of the LabelVersionMap