Class ElementContentElementParser
- java.lang.Object
-
- com.atlassian.bamboo.configuration.DefaultElementParser
-
- com.atlassian.bamboo.configuration.ElementContentElementParser
-
- All Implemented Interfaces:
ElementParser
- Direct Known Subclasses:
MimeTypeLoader.ExtensionElementParser,MimeTypeLoader.MimeTypeElementParser
public class ElementContentElementParser extends DefaultElementParser
This simply extracts the content between two xml tags.
-
-
Constructor Summary
Constructors Constructor Description ElementContentElementParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] chars, int offset, int length)Do nothing by default.StringgetElementContent()voidstartElement(Attributes attributes)Do nothing by default.-
Methods inherited from class com.atlassian.bamboo.configuration.DefaultElementParser
endElement, getInstance
-
-
-
-
Method Detail
-
startElement
public void startElement(Attributes attributes)
Description copied from class:DefaultElementParserDo nothing by default. Override to process the start of an element.- Specified by:
startElementin interfaceElementParser- Overrides:
startElementin classDefaultElementParser- Parameters:
attributes- The element's attributes
-
characters
public void characters(char[] chars, int offset, int length)Description copied from class:DefaultElementParserDo 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:
charactersin interfaceElementParser- Overrides:
charactersin classDefaultElementParser- 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.
-
getElementContent
public String getElementContent()
-
-