org.deckfour.xes.extension
Class XExtensionParser.XExtensionHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.deckfour.xes.extension.XExtensionParser.XExtensionHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Enclosing class:
XExtensionParser

protected class XExtensionParser.XExtensionHandler
extends DefaultHandler

SAX handler class for extension definition files.

Author:
Christian W. Guenther (christian@deckfour.org)

Field Summary
protected  XAttribute currentAttribute
          The currently parsed attribute definition.
protected  XExtension extension
          The extension to be parsed.
protected  XFactory factory
          Factory for creating attributes.
protected  Collection<XAttribute> xAttributes
          Buffer for parsed attribute definitions.
 
Constructor Summary
XExtensionParser.XExtensionHandler()
          Constructor, resets the handler.
 
Method Summary
 void endElement(String uri, String localName, String qName)
           
 XExtension getExtension()
          Retrieves the parsed extension after parsing.
 void reset()
          Resets the handler to initial state.
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, 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
 

Field Detail

extension

protected XExtension extension
The extension to be parsed.


currentAttribute

protected XAttribute currentAttribute
The currently parsed attribute definition.


xAttributes

protected Collection<XAttribute> xAttributes
Buffer for parsed attribute definitions.


factory

protected XFactory factory
Factory for creating attributes.

Constructor Detail

XExtensionParser.XExtensionHandler

public XExtensionParser.XExtensionHandler()
Constructor, resets the handler.

Method Detail

reset

public void reset()
Resets the handler to initial state.


getExtension

public XExtension getExtension()
Retrieves the parsed extension after parsing.

Returns:
The parsed extension.

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException