public class JiraXML extends org.xml.sax.helpers.DefaultHandler
Issue
s from JIRA. This works on an XML file downloaded from JIRA and creates a
List
of issues that is exposed to the user of the class.Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len) |
void |
endElement(String namespaceURI,
String sName,
String qName) |
List<Issue> |
getIssueList() |
String |
getJiraVersion() |
void |
parseXML(File xmlPath)
Parse the given xml file.
|
void |
startElement(String namespaceURI,
String sName,
String qName,
Attributes attrs) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public void parseXML(File xmlPath) throws MojoExecutionException
getIssueList()
.xmlPath
- the file to pares.MojoExecutionException
public void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String namespaceURI, String sName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] buf, int offset, int len) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public String getJiraVersion()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.