com.aurigalogic.aurigadoc.ant
Class SectionHandler

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--com.aurigalogic.aurigadoc.ant.SectionHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

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

This class implements a SAX handler for catching sax events while parsing AurigaDoc document.

Version:
$Revision: 1.2 $ $Date: 2003/09/09 15:51:20 $
Author:
Khurshidali Shaikh

Constructor Summary
SectionHandler()
           
 
Method Summary
 java.util.ArrayList getSections()
          Returns the sections list for the document.
 void startDocument()
          Handles the start of a document
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes atts)
          Handles the start of an element.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, 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
 

Constructor Detail

SectionHandler

public SectionHandler()
Method Detail

getSections

public java.util.ArrayList getSections()
Returns the sections list for the document.

Returns:
the sections list

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Handles the start of a document

Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException - in case of a parsing error.

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String rawName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Handles the start of an element.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
namespaceURI - the name space uri
localName - the local name of the element
rawName - the raw name of the element
atts - the element attributes
Throws:
org.xml.sax.SAXException - in case of a parsing error


Copyright © 2000, 2003 Auriga Logic Pvt. Ltd. All Rights Reserved.