org.sonar.api.rules
Class Violation

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

public class Violation
extends Object


Constructor Summary
Violation(Rule rule)
           
Violation(Rule rule, Resource resource)
           
 
Method Summary
 boolean equals(Object obj)
           
 Integer getLineId()
           
 String getMessage()
           
 RulePriority getPriority()
           
 Resource getResource()
           
 Rule getRule()
           
 int hashCode()
           
 Violation setLineId(Integer lineId)
           
 Violation setMessage(String message)
           
 Violation setPriority(RulePriority priority)
           
 Violation setResource(Resource resource)
           
 Violation setRule(Rule rule)
           
 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 String getMessage()

setMessage

public Violation setMessage(String message)

getLineId

public Integer getLineId()

setLineId

public Violation setLineId(Integer lineId)

getPriority

public RulePriority getPriority()

setPriority

public Violation setPriority(RulePriority priority)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 SonarSource SA. All Rights Reserved.