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.| Constructor and Description |
|---|
JiraXML(org.apache.maven.plugin.logging.Log log,
String datePattern) |
| 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 JiraXML(org.apache.maven.plugin.logging.Log log,
String datePattern)
log - not null.datePattern - may be null.public void parseXML(File xmlPath) throws org.apache.maven.plugin.MojoExecutionException
getIssueList().xmlPath - the file to pares.org.apache.maven.plugin.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-2014 The Apache Software Foundation. All Rights Reserved.