org.sonar.wsclient.services
Class Measure
java.lang.Object
org.sonar.wsclient.services.Model
org.sonar.wsclient.services.Measure
public class Measure
- extends Model
Measure
public Measure()
getMetricKey
@CheckForNull
public String getMetricKey()
setMetricKey
public Measure setMetricKey(@Nullable
String metricKey)
getMetricName
@CheckForNull
public String getMetricName()
setMetricName
public Measure setMetricName(@Nullable
String metricName)
getValue
@CheckForNull
public Double getValue()
getIntValue
@CheckForNull
public Integer getIntValue()
getLongValue
@CheckForNull
public Long getLongValue()
setValue
public Measure setValue(@Nullable
Double value)
getFormattedValue
@CheckForNull
public String getFormattedValue()
getFormattedValue
@CheckForNull
public String getFormattedValue(@Nullable
String defaultValue)
setFormattedValue
public Measure setFormattedValue(@Nullable
String formattedValue)
getAlertStatus
@CheckForNull
public String getAlertStatus()
setAlertStatus
public Measure setAlertStatus(@Nullable
String alertStatus)
getAlertText
@CheckForNull
public String getAlertText()
setAlertText
public Measure setAlertText(@Nullable
String alertText)
getData
@CheckForNull
public String getData()
getDataAsMap
@CheckForNull
public Map<String,String> getDataAsMap()
getDataAsMap
@CheckForNull
public Map<String,String> getDataAsMap(String separator)
setData
public Measure setData(@Nullable
String data)
getTrend
@CheckForNull
public Integer getTrend()
setTrend
public Measure setTrend(@Nullable
Integer trend)
getVar
@CheckForNull
public Integer getVar()
setVar
public Measure setVar(@Nullable
Integer var)
getRuleKey
@CheckForNull
public String getRuleKey()
setRuleKey
public Measure setRuleKey(@Nullable
String ruleKey)
getRuleName
@CheckForNull
public String getRuleName()
setRuleName
public Measure setRuleName(@Nullable
String ruleName)
getRuleCategory
@Deprecated
@CheckForNull
public String getRuleCategory()
- Deprecated. since 2.5 See http://jira.codehaus.org/browse/SONAR-2007
setRuleCategory
@Deprecated
public Measure setRuleCategory(@Nullable
String ruleCategory)
- Deprecated. since 2.5 See http://jira.codehaus.org/browse/SONAR-2007
setRuleSeverity
public Measure setRuleSeverity(@Nullable
String ruleSeverity)
- Since:
- 2.5
getRuleSeverity
@CheckForNull
public String getRuleSeverity()
- Since:
- 2.5
getRulePriority
@Deprecated
@CheckForNull
public String getRulePriority()
- Deprecated. since 2.5 use
getRuleSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829
setRulePriority
@Deprecated
public Measure setRulePriority(@Nullable
String rulePriority)
- Deprecated. since 2.5 use
setRuleSeverity(String) instead. See http://jira.codehaus.org/browse/SONAR-1829
getCharacteristicKey
@CheckForNull
public String getCharacteristicKey()
getCharacteristicName
@CheckForNull
public String getCharacteristicName()
setCharacteristicKey
public Measure setCharacteristicKey(@Nullable
String s)
setCharacteristicName
public Measure setCharacteristicName(@Nullable
String s)
getVariation1
@CheckForNull
public Double getVariation1()
- Variation value on period 1. The value is loaded if ResourceQuery#setIncludeTrends() is set to true.
- Since:
- 2.5
setVariation1
public Measure setVariation1(@Nullable
Double variation1)
- Since:
- 2.5
getVariation2
@CheckForNull
public Double getVariation2()
- Variation value on period 2. The value is loaded if ResourceQuery#setIncludeTrends() is set to true.
- Since:
- 2.5
setVariation2
public Measure setVariation2(@Nullable
Double variation2)
- Since:
- 2.5
getVariation3
@CheckForNull
public Double getVariation3()
- Variation value on period 3. The value is loaded if ResourceQuery#setIncludeTrends() is set to true.
- Since:
- 2.5
setVariation3
public Measure setVariation3(@Nullable
Double variation3)
- Since:
- 2.5
getVariation4
@CheckForNull
public Double getVariation4()
- Variation value on period 4. The value is loaded if ResourceQuery#setIncludeTrends() is set to true.
- Since:
- 2.5
setVariation4
public Measure setVariation4(@Nullable
Double variation4)
- Since:
- 2.5
getVariation5
@CheckForNull
public Double getVariation5()
- Variation value on period 5. The value is loaded if ResourceQuery#setIncludeTrends() is set to true.
- Since:
- 2.5
setVariation5
public Measure setVariation5(@Nullable
Double variation5)
- Since:
- 2.5
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009–2015 SonarSource. All rights reserved.