Class DefaultElementParser
java.lang.Object
com.atlassian.bamboo.configuration.DefaultElementParser
- All Implemented Interfaces:
ElementParser
- Direct Known Subclasses:
ElementContentElementParser
,MimeTypeLoader.MimeMappingElementParser
This class provides the default SAX parsing behaviour (ie do nothing) for an xml element.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] chars, int offset, int length) Do nothing by default.void
Do nothing by default.static ElementParser
void
startElement
(Attributes attributes) Do nothing by default.
-
Constructor Details
-
DefaultElementParser
public DefaultElementParser()
-
-
Method Details
-
startElement
Do nothing by default. Override to process the start of an element.- Specified by:
startElement
in interfaceElementParser
- Parameters:
attributes
- The element's attributes
-
endElement
Do nothing by default. Override to process the end of an element.- Specified by:
endElement
in interfaceElementParser
- Throws:
ConfigurationException
- A generic parsinf failure
-
characters
public void characters(char[] chars, int offset, int length) Do nothing by default. Override to process the element textThe 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 interfaceElementParser
- Parameters:
chars
- The characters from the XML document.offset
- The start position in the array.length
- The number of characters to read from the array.
-
getInstance
-