Class XGMMLDelegatorHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.xgmml.XGMMLDelegatorHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class XGMMLDelegatorHandler extends DefaultHandler
Delegator handler.
Handles the SAX parser events and invokes the XGMMLHandler
methods uing refection API.
This handler handles the startDocument, endDocument, startElement and
endElementEvents from SAX2 parser.
If an event was received this handler uses a second handler to process the
events. There for the second handler must implement startXElement and
endXElement where X is the tag name to be processed.
Example:
If you want to process <node> tags, your handler must implement a
startNodeElement
and a endNodeElement
method. These
method are automatically invoked using reflection API.
- Version:
- $Revision$
- Author:
- Burkhard Sell
- See Also:
XGMMLHandler
,XGMMLContentHandler
,DefaultHandler
-
Constructor Summary
Constructors Constructor Description XGMMLDelegatorHandler(XGMMLHandler handler)
Creates a XGMMLDelegatorHandler instance. -
Method Summary
Modifier and Type Method Description void
endDocument()
Handle end document event.void
endElement(String uri, String localName, String qualifiedName)
Handle end tag event.void
startDocument()
Handle start document event.void
startElement(String uri, String localName, String qualifiedName, Attributes attribs)
Handle start tag event.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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
XGMMLDelegatorHandler
Creates a XGMMLDelegatorHandler instance.- Parameters:
handler
- - handler to delegate the events to.
-
-
Method Details
-
startDocument
public void startDocument()Handle start document event.- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
-
endDocument
Handle end document event.- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
startElement
Handle start tag event.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
Handle end tag event.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-