public class XMLConfigurationHandler extends org.xml.sax.helpers.DefaultHandler
A content handler for SAX, the Simple API for XML, that transforms the SAX events of serialized configurations into a configuration.
XMLReader
,
XMLConfigurationWriter
Constructor and Description |
---|
XMLConfigurationHandler(PlatformConfiguration configuration)
Instantiates this handler with an configuration that is notified about
elements read.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] characters,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public XMLConfigurationHandler(PlatformConfiguration configuration)
configuration
- the underlying configuration.public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] characters, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.