Package org.deckfour.xes.extension
Class XExtensionParser.XExtensionHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.deckfour.xes.extension.XExtensionParser.XExtensionHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
- Enclosing class:
- XExtensionParser
protected class XExtensionParser.XExtensionHandler extends org.xml.sax.helpers.DefaultHandlerSAX handler class for extension definition files.- Author:
- Christian W. Guenther (christian@deckfour.org)
-
-
Field Summary
Fields Modifier and Type Field Description protected XAttributecurrentAttributeThe currently parsed attribute definition.protected XExtensionextensionThe extension to be parsed.protected XFactoryfactoryFactory for creating attributes.protected java.util.Collection<XAttribute>xAttributesBuffer for parsed attribute definitions.
-
Constructor Summary
Constructors Constructor Description XExtensionHandler()Constructor, resets the handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)XExtensiongetExtension()Retrieves the parsed extension after parsing.voidreset()Resets the handler to initial state.voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
-
-
-
Field Detail
-
extension
protected XExtension extension
The extension to be parsed.
-
currentAttribute
protected XAttribute currentAttribute
The currently parsed attribute definition.
-
xAttributes
protected java.util.Collection<XAttribute> xAttributes
Buffer for parsed attribute definitions.
-
factory
protected XFactory factory
Factory for creating attributes.
-
-
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(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Overrides:
endElementin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
-