org.sonar.core.consolidation.rules
Class AbstractRciService

java.lang.Object
  extended by org.sonar.core.consolidation.AbstractService
      extended by org.sonar.core.consolidation.rules.AbstractRciService
All Implemented Interfaces:
Service
Direct Known Subclasses:
RciErrorService, RciStrictService, RciWarningService

public abstract class AbstractRciService
extends AbstractService


Field Summary
 
Fields inherited from class org.sonar.core.consolidation.AbstractService
log
 
Constructor Summary
protected AbstractRciService(DaoFacade dao)
           
 
Method Summary
 void execute(Node node)
           
protected abstract  Metric getCountMetric()
           
protected  int getNbLinesOfOneError()
           
protected  double getPercentage(java.lang.Double numberOfFailures, java.lang.Double numberOfLines, int nbLinesForOneError)
           
protected abstract  Metric getRciMetric()
           
protected  void setNbLinesOfOneError(int i)
           
 boolean shouldExecuteOn(Node node)
           
 
Methods inherited from class org.sonar.core.consolidation.AbstractService
getDao, getMeasureKey, getMetric, getMetrics, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRciService

protected AbstractRciService(DaoFacade dao)
Method Detail

setNbLinesOfOneError

protected void setNbLinesOfOneError(int i)

getNbLinesOfOneError

protected int getNbLinesOfOneError()

getCountMetric

protected abstract Metric getCountMetric()

getRciMetric

protected abstract Metric getRciMetric()

shouldExecuteOn

public boolean shouldExecuteOn(Node node)

execute

public void execute(Node node)

getPercentage

protected double getPercentage(java.lang.Double numberOfFailures,
                               java.lang.Double numberOfLines,
                               int nbLinesForOneError)


Copyright © 2007-2008 hortis. All Rights Reserved.