org.apache.maven.plugin.pmd
Class PmdReportListener

java.lang.Object
  extended by org.apache.maven.plugin.pmd.PmdReportListener
All Implemented Interfaces:
ReportListener

public class PmdReportListener
extends Object
implements ReportListener

Handle events from PMD and collect violations.


Constructor Summary
PmdReportListener()
           
 
Method Summary
 Report asReport()
          Create a new single report with all violations for further rendering into other formats than HTML.
 List<RuleViolation> getViolations()
           
 boolean hasViolations()
           
 void metricAdded(Metric metric)
          
 void ruleViolationAdded(RuleViolation ruleViolation)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmdReportListener

public PmdReportListener()
Method Detail

ruleViolationAdded

public void ruleViolationAdded(RuleViolation ruleViolation)

Specified by:
ruleViolationAdded in interface ReportListener

getViolations

public List<RuleViolation> getViolations()

hasViolations

public boolean hasViolations()

asReport

public Report asReport()
Create a new single report with all violations for further rendering into other formats than HTML.


metricAdded

public void metricAdded(Metric metric)

Specified by:
metricAdded in interface ReportListener


Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.