com.atlassian.bamboo.configuration
Class DefaultContentHandler
java.lang.Object
com.atlassian.bamboo.configuration.DefaultContentHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler
- Direct Known Subclasses:
- AntXmlTestResultsParser, MimeTypeLoader
public class DefaultContentHandler
- extends java.lang.Object
- implements org.xml.sax.ContentHandler
This class provides some common SAX parsing behaviour
Method Summary |
void |
characters(char[] chars,
int start,
int end)
|
void |
endDocument()
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String buildName)
|
void |
ignorableWhitespace(char[] chars,
int i,
int i1)
|
void |
processingInstruction(java.lang.String buildName,
java.lang.String buildName1)
|
protected void |
registerElementParser(java.lang.String elementName,
ElementParser elementParser)
Add an ElementParser to process an element with the given elementName |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
skippedEntity(java.lang.String buildName)
|
void |
startDocument()
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
void |
startPrefixMapping(java.lang.String buildName,
java.lang.String buildName1)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PARSER
protected static final java.lang.String DEFAULT_PARSER
- See Also:
- Constant Field Values
DefaultContentHandler
public DefaultContentHandler()
registerElementParser
protected void registerElementParser(java.lang.String elementName,
ElementParser elementParser)
- Add an
ElementParser
to 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(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator
in interface org.xml.sax.ContentHandler
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
startPrefixMapping
public void startPrefixMapping(java.lang.String buildName,
java.lang.String buildName1)
throws org.xml.sax.SAXException
- Specified by:
startPrefixMapping
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
endPrefixMapping
public void endPrefixMapping(java.lang.String buildName)
throws org.xml.sax.SAXException
- Specified by:
endPrefixMapping
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] chars,
int start,
int end)
throws org.xml.sax.SAXException
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] chars,
int i,
int i1)
throws org.xml.sax.SAXException
- Specified by:
ignorableWhitespace
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
processingInstruction
public void processingInstruction(java.lang.String buildName,
java.lang.String buildName1)
throws org.xml.sax.SAXException
- Specified by:
processingInstruction
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
skippedEntity
public void skippedEntity(java.lang.String buildName)
throws org.xml.sax.SAXException
- Specified by:
skippedEntity
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
Copyright © 2010 Atlassian. All Rights Reserved.