org.sonar.plugins.core.sensors
Class ViolationsDecorator

java.lang.Object
  extended by org.sonar.plugins.core.sensors.ViolationsDecorator
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension

public class ViolationsDecorator
extends Object
implements Decorator


Constructor Summary
ViolationsDecorator()
           
 
Method Summary
 void decorate(Resource resource, DecoratorContext context)
           
 List<Metric> generatesViolationsMetrics()
           
 boolean shouldExecuteOnProject(Project project)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViolationsDecorator

public ViolationsDecorator()
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Specified by:
shouldExecuteOnProject in interface CheckProject

generatesViolationsMetrics

public List<Metric> generatesViolationsMetrics()

decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Specified by:
decorate in interface Decorator
Parameters:
resource - resource that is currently decorated, equivalent of context.getResource()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 SonarSource. All Rights Reserved.