Package org.codehaus.mojo.jdepend
Class JDependXMLReportParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.codehaus.mojo.jdepend.JDependXMLReportParser
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Author:
- Who ever this implemented first.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBuffer
protected CyclePackage
protected List<CyclePackage>
protected JDPackage
protected Stats
-
Constructor Summary
ConstructorsConstructorDescriptionJDependXMLReportParser
(File xmlFile) Creates a new instance of JDependXMLReportParser. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] buff, int offset, int len) void
endElement
(String namespaceURI, String sName, String qName) 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
-
Field Details
-
packages
-
jdpackage
-
stats
-
buffer
-
stack
-
cycles
-
cyclePackage
-
-
Constructor Details
-
JDependXMLReportParser
public JDependXMLReportParser(File xmlFile) throws ParserConfigurationException, SAXException, IOException Creates a new instance of JDependXMLReportParser.- Parameters:
xmlFile
-- Throws:
ParserConfigurationException
SAXException
IOException
-
-
Method Details
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
characters
public void characters(char[] buff, int offset, int len) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
getPackages
- Returns:
- Packages.
-
getStats
- Returns:
- stats.
-