org.sonar.wsclient.services
Class Violation

java.lang.Object
  extended by org.sonar.wsclient.services.Model
      extended by org.sonar.wsclient.services.Violation

Deprecated. in 3.6. Replaced by issues.

@Deprecated
public class Violation
extends Model


Constructor Summary
Violation()
          Deprecated.  
 
Method Summary
 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.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Violation

public Violation()
Deprecated. 
Method Detail

getMessage

@CheckForNull
public String getMessage()
Deprecated. 

setMessage

public void setMessage(@Nullable
                       String message)
Deprecated. 

getSeverity

@CheckForNull
public String getSeverity()
Deprecated. 
Since:
2.5

setSeverity

public void setSeverity(@Nullable
                        String severity)
Deprecated. 
Since:
2.5

getPriority

@Deprecated
public String getPriority()
Deprecated. since 2.5 use getSeverity() instead. See http://jira.codehaus.org/browse/SONAR-1829


setPriority

@Deprecated
public void setPriority(String priority)
Deprecated. since 2.5 use setSeverity(String) instead. See http://jira.codehaus.org/browse/SONAR-1829


getLine

@CheckForNull
public Integer getLine()
Deprecated. 
Returns:
line number (numeration starts from 1), or null if violation doesn't belong to concrete line
See Also:
hasLine()

setLine

public void setLine(@Nullable
                    Integer line)
Deprecated. 

hasLine

public boolean hasLine()
Deprecated. 
Returns:
true if violation belongs to concrete line
Since:
2.8

getResourceKey

@Nullable
public String getResourceKey()
Deprecated. 

setResourceKey

public void setResourceKey(@Nullable
                           String resourceKey)
Deprecated. 

getRuleKey

@CheckForNull
public String getRuleKey()
Deprecated. 

setRuleKey

public Violation setRuleKey(@Nullable
                            String s)
Deprecated. 

getRuleName

@CheckForNull
public String getRuleName()
Deprecated. 

setRuleName

public Violation setRuleName(@Nullable
                             String ruleName)
Deprecated. 

getResourceName

@CheckForNull
public String getResourceName()
Deprecated. 

setResourceName

public Violation setResourceName(@Nullable
                                 String resourceName)
Deprecated. 

getResourceQualifier

@CheckForNull
public String getResourceQualifier()
Deprecated. 

setResourceQualifier

public Violation setResourceQualifier(@Nullable
                                      String resourceQualifier)
Deprecated. 

getCreatedAt

@CheckForNull
public Date getCreatedAt()
Deprecated. 
Since:
2.5

setCreatedAt

public Violation setCreatedAt(@Nullable
                              Date createdAt)
Deprecated. 
Since:
2.5

isCreatedAfter

public boolean isCreatedAfter(Date date)
Deprecated. 
Since:
2.5

setSwitchedOff

public Violation setSwitchedOff(@Nullable
                                Boolean b)
Deprecated. 
Since:
2.8

isSwitchedOff

@Nullable
public boolean isSwitchedOff()
Deprecated. 
Since:
2.8


Copyright © 2009-2014 SonarSource. All Rights Reserved.