ch.elca.el4j.env.xml
Class EnvSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
ch.elca.el4j.env.xml.EnvSaxHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class EnvSaxHandler
- extends DefaultHandler
The main SAX handler to parse the env.xml file.
It delegates the env group sections to the handlers specified in the constructor.
- Author:
- Stefan Wismer (SWI)
- File-location:
- EnvSaxHandler
- Last check-in date:
- 2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, 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 |
EnvSaxHandler
public EnvSaxHandler(Map<String,EnvGroupHandler> handlers)
- Parameters:
handlers
- the handlers that handle a specific env group (e.g. "placeholders" -> PlaceholdersHandler).
startResource
public void startResource(Resource resource)
- Notify which resource will be parsed next.
- Parameters:
resource
- the resource that will be parsed next
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
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
-
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class DefaultHandler
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
-
- Specified by:
ignorableWhitespace
in interface ContentHandler
- Overrides:
ignorableWhitespace
in class DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String localName,
String name)
throws SAXException
-
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class DefaultHandler
- Throws:
SAXException
Copyright © 2005-2011 ELCA. All Rights Reserved.