org.apache.maven.plugin.jira
Class JiraXML

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.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 816584 2012-05-08 12:33:35Z 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
Throws:
SAXException

endElement

public void endElement(String namespaceURI,
                       String sName,
                       String qName)
                throws SAXException
Throws:
SAXException

characters

public void characters(char[] buf,
                       int offset,
                       int len)
                throws SAXException
Throws:
SAXException

getIssueList

public List getIssueList()

getReleases

public static List getReleases(List issues)


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