org.sonar.plugins.core.sensors
Class ViolationSeverityUpdater

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

public class ViolationSeverityUpdater
extends Object
implements Decorator

Severity of violations can be explicitely changed by end-users. In this case the severity is fixed and must not be changed by rule engines.

Since:
2.13

Constructor Summary
ViolationSeverityUpdater(ReviewDao reviewDao)
           
 
Method Summary
 void decorate(Resource resource, DecoratorContext context)
           
 Class dependsUponViolationTracking()
           
 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

ViolationSeverityUpdater

public ViolationSeverityUpdater(ReviewDao reviewDao)
Method Detail

shouldExecuteOnProject

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

dependsUponViolationTracking

public Class dependsUponViolationTracking()

decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Specified by:
decorate in interface Decorator

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 SonarSource. All Rights Reserved.