Class DefaultContentHandler
java.lang.Object
com.atlassian.bamboo.configuration.DefaultContentHandler
- All Implemented Interfaces:
ContentHandler
- Direct Known Subclasses:
JunitTestResultsParser
,MimeTypeLoader
This class provides some common SAX parsing behaviour
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] chars, int start, int end) void
void
endElement
(String uri, String localName, String qName) void
endPrefixMapping
(String buildName) protected boolean
hasParserFor
(@NotNull String key) void
ignorableWhitespace
(char[] chars, int i, int i1) void
processingInstruction
(String buildName, String buildName1) protected void
registerElementParser
(String elementName, ElementParser elementParser) Add anElementParser
to process an element with the given elementNamevoid
setDocumentLocator
(Locator locator) void
skippedEntity
(String buildName) void
void
startElement
(String uri, String localName, String qName, Attributes attributes) void
startPrefixMapping
(String buildName, String buildName1) 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
-
DefaultContentHandler
public DefaultContentHandler()
-
-
Method Details
-
registerElementParser
Add anElementParser
to process an element with the given elementName- Parameters:
elementName
- The name of the element to processelementParser
- How to process an elementName element
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
hasParserFor
-