vc.xml.sax
Class SaxEventHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--vc.xml.sax.SaxEventHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class SaxEventHandler
extends org.xml.sax.helpers.DefaultHandler

* SaxDataExtractor is the main class for XML SAX subsystem which deals with parsing the XML files and handling the SAX events thrown by the parser. Then it will delegate to the data extraction classes to extract the complete data.


Field Summary
 boolean parsingCompleted
          Flag to repesent the completion of the SAx parsing
 SaxDataExtractor saxDataExtractor
          SaxDataExtractor extracts the data from the elements and builds the project and version database out of that data
 
Constructor Summary
SaxEventHandler(SaxDataExtractor saxDataExtractor)
          Constructs and Initializes the object with the data passed with the parameters
 
Method Summary
 void endDocument()
          SAX Event handler telling that the parser has encountered the ending of the document
 void endElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName)
          SAX Event handler telling that the parser has encountered the ending of the element
 void startDocument()
          SAX Event handler telling that the parser has encountered the starting of the document
 void startElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs)
          SAX Event handler telling that the parser has encountered the starting of the element
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parsingCompleted

public boolean parsingCompleted
Flag to repesent the completion of the SAx parsing

saxDataExtractor

public SaxDataExtractor saxDataExtractor
SaxDataExtractor extracts the data from the elements and builds the project and version database out of that data
Constructor Detail

SaxEventHandler

public SaxEventHandler(SaxDataExtractor saxDataExtractor)
Constructs and Initializes the object with the data passed with the parameters
Parameters:
saxDataExtractor - to initializethe field saxDataExtractor
Method Detail

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
SAX Event handler telling that the parser has encountered the starting of the document
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
SAX Event handler telling that the parser has encountered the ending of the document
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String lName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
SAX Event handler telling that the parser has encountered the starting of the element
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String lName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
SAX Event handler telling that the parser has encountered the ending of the element
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler