org.sonar.api.batch.sensor.measure
Interface MeasureBuilder<G extends Serializable>

All Known Implementing Classes:
DefaultMeasureBuilder

@Beta
public interface MeasureBuilder<G extends Serializable>

Builder to create new Measure

Since:
4.4

Method Summary
 Measure<G> build()
          Build the measure.
 MeasureBuilder<G> forMetric(Metric<G> metric)
          The metric this measure belong to.
 MeasureBuilder<G> onFile(InputFile file)
          The file the measure belongs to.
 MeasureBuilder<G> onProject()
          Tell that the measure is global to the project.
 MeasureBuilder<G> withValue(G value)
          Value of the measure.
 

Method Detail

onFile

MeasureBuilder<G> onFile(InputFile file)
The file the measure belongs to.


onProject

MeasureBuilder<G> onProject()
Tell that the measure is global to the project.


forMetric

MeasureBuilder<G> forMetric(Metric<G> metric)
The metric this measure belong to.


withValue

MeasureBuilder<G> withValue(G value)
Value of the measure.


build

Measure<G> build()
Build the measure. After call of this method the builder is cleaned and can be used to build another measure.



Copyright © 2009–2014 SonarSource. All rights reserved.