@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()
@CheckForNull public String getMessage()
public void setMessage(@Nullable String message)
@CheckForNull public String getSeverity()
public void setSeverity(@Nullable 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-1829@CheckForNull public Integer getLine()
null
if violation doesn't belong to concrete linehasLine()
public boolean hasLine()
true if violation belongs to concrete line
@Nullable public String getResourceKey()
public void setResourceKey(@Nullable String resourceKey)
@CheckForNull public String getRuleKey()
public Violation setRuleKey(@Nullable String s)
@CheckForNull public String getRuleName()
public Violation setRuleName(@Nullable String ruleName)
@CheckForNull public String getResourceName()
public Violation setResourceName(@Nullable String resourceName)
@CheckForNull public String getResourceQualifier()
public Violation setResourceQualifier(@Nullable String resourceQualifier)
@CheckForNull public Date getCreatedAt()
public Violation setCreatedAt(@Nullable Date createdAt)
public boolean isCreatedAfter(Date date)
public Violation setSwitchedOff(@Nullable Boolean b)
@Nullable public boolean isSwitchedOff()
Copyright © 2009-2014 SonarSource. All Rights Reserved.