org.openoffice.ide.eclipse.core.model.description
Class DescriptionHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.openoffice.ide.eclipse.core.model.description.DescriptionHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

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

Class handling the SAX events for the description.xml file.

Author:
Cédric Bosdonnat

Constructor Summary
DescriptionHandler(DescriptionModel pModel)
          The handler uses a reference to the model and only fills it.
 
Method Summary
 void characters(char[] pCh, int pStart, int pLength)
          
 void endElement(java.lang.String pUri, java.lang.String pLocalName, java.lang.String pName)
          
 void startElement(java.lang.String pUri, java.lang.String pLocalName, java.lang.String pName, org.xml.sax.Attributes pAttributes)
          
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptionHandler

public DescriptionHandler(DescriptionModel pModel)
The handler uses a reference to the model and only fills it.

Parameters:
pModel - the descriptions.xml model to fill
Method Detail

startElement

public void startElement(java.lang.String pUri,
                         java.lang.String pLocalName,
                         java.lang.String pName,
                         org.xml.sax.Attributes pAttributes)
                  throws org.xml.sax.SAXException

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] pCh,
                       int pStart,
                       int pLength)
                throws org.xml.sax.SAXException

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String pUri,
                       java.lang.String pLocalName,
                       java.lang.String pName)
                throws org.xml.sax.SAXException

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException