public class JiraXML extends org.xml.sax.helpers.DefaultHandler
Issues 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, warningpublic void parseXML(File xmlPath) throws MojoExecutionException
getIssueList().xmlPath - the file to pares.MojoExecutionExceptionpublic void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String namespaceURI, String sName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] buf,
int offset,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic String getJiraVersion()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.