org.apache.maven.plugin.jira
Class JiraXML

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.maven.plugin.jira.JiraXML
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class JiraXML
extends DefaultHandler

XML parser for JiraIssues. This works on an XML file downloaded from JIRA and creates a List of issues that is exposed to the user of the class.

Version:
$Id: JiraXML.html 816592 2012-05-08 12:40:21Z hboutemy $

Constructor Summary
JiraXML(File xmlPath)
           
 
Method Summary
 void characters(char[] buf, int offset, int len)
           
 void endElement(String namespaceURI, String sName, String qName)
           
 List getIssueList()
           
static List getReleases(List issues)
           
 void startElement(String namespaceURI, String sName, String qName, Attributes attrs)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraXML

public JiraXML(File xmlPath)
Method Detail

startElement

public void startElement(String namespaceURI,
                         String sName,
                         String qName,
                         Attributes attrs)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String sName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

characters

public void characters(char[] buf,
                       int offset,
                       int len)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

getIssueList

public List getIssueList()

getReleases

public static List getReleases(List issues)


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.