org.apache.maven.plugin.pmd
Class PmdReportListener
java.lang.Object
org.apache.maven.plugin.pmd.PmdReportListener
- All Implemented Interfaces:
- net.sourceforge.pmd.ReportListener
public class PmdReportListener
- extends Object
- implements net.sourceforge.pmd.ReportListener
Handle events from PMD, converting them into Doxia events.
- Version:
- $Id: PmdReportListener.java 1348197 2012-06-08 19:15:22Z olamy $
- Author:
- Brett Porter
|
Constructor Summary |
PmdReportListener(org.apache.maven.plugin.logging.Log log,
org.apache.maven.doxia.sink.Sink sink,
ResourceBundle bundle,
boolean aggregate)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PmdReportListener
public PmdReportListener(org.apache.maven.plugin.logging.Log log,
org.apache.maven.doxia.sink.Sink sink,
ResourceBundle bundle,
boolean aggregate)
ruleViolationAdded
public void ruleViolationAdded(net.sourceforge.pmd.RuleViolation ruleViolation)
-
- Specified by:
ruleViolationAdded in interface net.sourceforge.pmd.ReportListener
getViolations
public List<net.sourceforge.pmd.RuleViolation> getViolations()
metricAdded
public void metricAdded(net.sourceforge.pmd.stat.Metric metric)
-
- Specified by:
metricAdded in interface net.sourceforge.pmd.ReportListener
beginDocument
public void beginDocument()
endDocument
public void endDocument()
throws IOException
- Throws:
IOException
setFiles
public void setFiles(Map<File,PmdFileInfo> files)
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.