org.sonar.api.rules
Class Violation

java.lang.Object
  extended by org.sonar.api.rules.Violation

public class Violation
extends java.lang.Object


Constructor Summary
Violation(Rule rule)
           
Violation(Rule rule, Resource resource)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getLineId()
           
 java.lang.String getMessage()
           
 RulePriority getPriority()
           
 Resource getResource()
           
 Rule getRule()
           
 int hashCode()
           
 Violation setLineId(java.lang.Integer lineId)
           
 Violation setMessage(java.lang.String message)
           
 Violation setPriority(RulePriority priority)
           
 Violation setResource(Resource resource)
           
 Violation setRule(Rule rule)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Violation

public Violation(Rule rule)

Violation

public Violation(Rule rule,
                 Resource resource)
Method Detail

getResource

public Resource getResource()

setResource

public Violation setResource(Resource resource)

getRule

public Rule getRule()

setRule

public Violation setRule(Rule rule)

getMessage

public java.lang.String getMessage()

setMessage

public Violation setMessage(java.lang.String message)

getLineId

public java.lang.Integer getLineId()

setLineId

public Violation setLineId(java.lang.Integer lineId)

getPriority

public RulePriority getPriority()

setPriority

public Violation setPriority(RulePriority priority)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 SonarSource SA. All Rights Reserved.