org.codehaus.mojo.jdepend
Class JDependXMLReportParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.codehaus.mojo.jdepend.JDependXMLReportParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class JDependXMLReportParser
extends DefaultHandler


Field Summary
protected  StringBuffer buffer
           
protected  CyclePackage cyclePackage
           
protected  List cycles
           
protected  JDPackage jdpackage
           
protected  List packages
           
protected  Stack stack
           
protected  Stats stats
           
 
Constructor Summary
JDependXMLReportParser(File xmlFile)
          Creates a new instance of JDependXMLReportParser.
 
Method Summary
 void characters(char[] buff, int offset, int len)
           
 void endElement(String namespaceURI, String sName, String qName)
           
 List getPackages()
           
 Stats getStats()
           
 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
 

Field Detail

packages

protected List packages

jdpackage

protected JDPackage jdpackage

stats

protected Stats stats

buffer

protected StringBuffer buffer

stack

protected Stack stack

cycles

protected List cycles

cyclePackage

protected CyclePackage cyclePackage
Constructor Detail

JDependXMLReportParser

public JDependXMLReportParser(File xmlFile)
                       throws ParserConfigurationException,
                              SAXException,
                              IOException
Creates a new instance of JDependXMLReportParser.

Throws:
SAXException
ParserConfigurationException
IOException
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[] buff,
                       int offset,
                       int len)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

getPackages

public List getPackages()

getStats

public Stats getStats()


Copyright © 2006-2011 Codehaus. All Rights Reserved.