org.sonar.api.profiles
Class Alert
java.lang.Object
org.sonar.api.database.BaseIdentifiable
org.sonar.api.profiles.Alert
- All Implemented Interfaces:
- java.lang.Cloneable
public class Alert
- extends BaseIdentifiable
- implements java.lang.Cloneable
Constructor Summary |
Alert()
|
Alert(RulesProfile rulesProfile,
Metric metric,
java.lang.String operator,
java.lang.String valueError,
java.lang.String valueWarning)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPERATOR_GREATER
public static final java.lang.String OPERATOR_GREATER
- See Also:
- Constant Field Values
OPERATOR_SMALLER
public static final java.lang.String OPERATOR_SMALLER
- See Also:
- Constant Field Values
OPERATOR_EQUALS
public static final java.lang.String OPERATOR_EQUALS
- See Also:
- Constant Field Values
OPERATOR_NOT_EQUALS
public static final java.lang.String OPERATOR_NOT_EQUALS
- See Also:
- Constant Field Values
Alert
public Alert()
Alert
public Alert(RulesProfile rulesProfile,
Metric metric,
java.lang.String operator,
java.lang.String valueError,
java.lang.String valueWarning)
getRulesProfile
public RulesProfile getRulesProfile()
setRulesProfile
public void setRulesProfile(RulesProfile rulesProfile)
getMetric
public Metric getMetric()
setMetric
public void setMetric(Metric metric)
getOperator
public java.lang.String getOperator()
setOperator
public void setOperator(java.lang.String operator)
getValueError
public java.lang.String getValueError()
setValueError
public void setValueError(java.lang.String valueError)
getValueWarning
public java.lang.String getValueWarning()
setValueWarning
public void setValueWarning(java.lang.String valueWarning)
isGreaterOperator
public boolean isGreaterOperator()
isSmallerOperator
public boolean isSmallerOperator()
isEqualsOperator
public boolean isEqualsOperator()
isNotEqualsOperator
public boolean isNotEqualsOperator()
getAlertLabel
public java.lang.String getAlertLabel(Metric.Level level)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
Copyright © 2009 SonarSource SA. All Rights Reserved.