Class SaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.arjuna.common.util.propertyservice.SaxHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Author:
- Gytis Trikleris
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Handles text content of theentry
tag.void
endElement
(String uri, String localName, String qName) Handles close tag, if its name isentry
.Returns copy of the properties read from the handled XML.void
startElement
(String uri, String localName, String qName, Attributes attributes) Handles open tag, if its name isentry
and has attributekey
.Methods inherited from class org.xml.sax.helpers.DefaultHandler
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
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SaxHandler
public SaxHandler()
-
-
Method Details
-
getProperties
Returns copy of the properties read from the handled XML.- Returns:
- Properties read from the handled XML.
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException Handles open tag, if its name isentry
and has attributekey
.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
Handles close tag, if its name isentry
.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
Handles text content of theentry
tag.- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-