com.lewisd.maven.lint
Class ResultCollectorImpl

java.lang.Object
  extended by com.lewisd.maven.lint.ResultCollectorImpl
All Implemented Interfaces:
ResultCollector

public class ResultCollectorImpl
extends Object
implements ResultCollector


Constructor Summary
ResultCollectorImpl(org.apache.maven.plugin.logging.Log log, ViolationSuppressor violationSuppressor, ResultWriter resultWriter)
           
 
Method Summary
 void addViolation(org.apache.maven.project.MavenProject mavenProject, Rule rule, String message, org.apache.maven.model.InputLocation inputLocation)
           
 boolean hasViolations()
           
 void writeResults(File outputFile, org.apache.maven.project.MavenProject mavenProject)
           
 void writeSummary()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultCollectorImpl

@Autowired
public ResultCollectorImpl(org.apache.maven.plugin.logging.Log log,
                                     ViolationSuppressor violationSuppressor,
                                     ResultWriter resultWriter)
Method Detail

writeSummary

public void writeSummary()
Specified by:
writeSummary in interface ResultCollector

writeResults

public void writeResults(File outputFile,
                         org.apache.maven.project.MavenProject mavenProject)
Specified by:
writeResults in interface ResultCollector

addViolation

public void addViolation(org.apache.maven.project.MavenProject mavenProject,
                         Rule rule,
                         String message,
                         org.apache.maven.model.InputLocation inputLocation)
Specified by:
addViolation in interface ResultCollector

hasViolations

public boolean hasViolations()
Specified by:
hasViolations in interface ResultCollector


Copyright © 2012. All Rights Reserved.