Class DefaultContentHandler
- java.lang.Object
-
- com.atlassian.bamboo.configuration.DefaultContentHandler
-
- All Implemented Interfaces:
ContentHandler
- Direct Known Subclasses:
JunitTestResultsParser,MimeTypeLoader
public class DefaultContentHandler extends Object implements ContentHandler
This class provides some common SAX parsing behaviour
-
-
Constructor Summary
Constructors Constructor Description DefaultContentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] chars, int start, int end)voidendDocument()voidendElement(String uri, String localName, String qName)voidendPrefixMapping(String buildName)protected booleanhasParserFor(@NotNull String key)voidignorableWhitespace(char[] chars, int i, int i1)voidprocessingInstruction(String buildName, String buildName1)protected voidregisterElementParser(String elementName, ElementParser elementParser)Add anElementParserto process an element with the given elementNamevoidsetDocumentLocator(Locator locator)voidskippedEntity(String buildName)voidstartDocument()voidstartElement(String uri, String localName, String qName, Attributes attributes)voidstartPrefixMapping(String buildName, String buildName1)
-
-
-
Method Detail
-
registerElementParser
protected void registerElementParser(String elementName, ElementParser elementParser)
Add anElementParserto process an element with the given elementName- Parameters:
elementName- The name of the element to processelementParser- How to process an elementName element
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String buildName, String buildName1) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String buildName) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
characters
public void characters(char[] chars, int start, int end) throws SAXException- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] chars, int i, int i1) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String buildName, String buildName1) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String buildName) throws SAXException
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
hasParserFor
protected boolean hasParserFor(@NotNull @NotNull String key)
-
-