Class DefaultElementParser

  extended by com.atlassian.bamboo.configuration.DefaultElementParser
All Implemented Interfaces:
Direct Known Subclasses:
ElementContentElementParser, MimeTypeLoader.MimeMappingElementParser

public class DefaultElementParser
extends java.lang.Object
implements ElementParser

This class provides the default SAX parsing behaviour (ie do nothing) for an xml element.

Constructor Summary
Method Summary
 void characters(char[] chars, int offset, int length)
          Do nothing by default.
 void endElement()
          Do nothing by default.
 void startElement(org.xml.sax.Attributes attributes)
          Do nothing by default.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DefaultElementParser()
Method Detail


public void startElement(org.xml.sax.Attributes attributes)
Do nothing by default. Override to process the start of an element.

Specified by:
startElement in interface ElementParser
attributes - The element's attributes


public void endElement()
                throws ConfigurationException
Do nothing by default. Override to process the end of an element.

Specified by:
endElement in interface ElementParser
ConfigurationException - A generic parsinf failure


public void characters(char[] chars,
                       int offset,
                       int length)
Do nothing by default. Override to process the element text

The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks.

Specified by:
characters in interface ElementParser
chars - The characters from the XML document.
offset - The start position in the array.
length - The number of characters to read from the array.

Copyright © 2010 Atlassian. All Rights Reserved.