@Deprecated public class Violation extends Model
Constructor and Description |
---|
Violation()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCreatedAt()
Deprecated.
|
Integer |
getLine()
Deprecated.
|
String |
getMessage()
Deprecated.
|
String |
getPriority()
Deprecated.
since 2.5 use
getSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829 |
String |
getResourceKey()
Deprecated.
|
String |
getResourceName()
Deprecated.
|
String |
getResourceQualifier()
Deprecated.
|
String |
getRuleKey()
Deprecated.
|
String |
getRuleName()
Deprecated.
|
String |
getSeverity()
Deprecated.
|
boolean |
hasLine()
Deprecated.
|
boolean |
isCreatedAfter(Date date)
Deprecated.
|
boolean |
isSwitchedOff()
Deprecated.
|
Violation |
setCreatedAt(Date createdAt)
Deprecated.
|
void |
setLine(Integer line)
Deprecated.
|
void |
setMessage(String message)
Deprecated.
|
void |
setPriority(String priority)
Deprecated.
since 2.5 use
setSeverity(String) instead. See http://jira.codehaus.org/browse/SONAR-1829 |
void |
setResourceKey(String resourceKey)
Deprecated.
|
Violation |
setResourceName(String resourceName)
Deprecated.
|
Violation |
setResourceQualifier(String resourceQualifier)
Deprecated.
|
Violation |
setRuleKey(String s)
Deprecated.
|
Violation |
setRuleName(String ruleName)
Deprecated.
|
void |
setSeverity(String severity)
Deprecated.
|
Violation |
setSwitchedOff(Boolean b)
Deprecated.
|
public Violation()
public String getMessage()
public void setMessage(String message)
public String getSeverity()
public void setSeverity(String severity)
@Deprecated public String getPriority()
getSeverity()
instead. See http://jira.codehaus.org/browse/SONAR-1829@Deprecated public void setPriority(String priority)
setSeverity(String)
instead. See http://jira.codehaus.org/browse/SONAR-1829public Integer getLine()
null
if violation doesn't belong to concrete linehasLine()
public boolean hasLine()
true if violation belongs to concrete line
public String getResourceKey()
public void setResourceKey(String resourceKey)
public String getRuleKey()
public Violation setRuleKey(String s)
public String getRuleName()
public Violation setRuleName(String ruleName)
public String getResourceName()
public Violation setResourceName(String resourceName)
public String getResourceQualifier()
public Violation setResourceQualifier(String resourceQualifier)
public Date getCreatedAt()
public Violation setCreatedAt(Date createdAt)
public boolean isCreatedAfter(Date date)
public Violation setSwitchedOff(Boolean b)
public boolean isSwitchedOff()
Copyright © 2009-2013 SonarSource. All Rights Reserved.