org.sonar.api.rules
Class Violation
java.lang.Object
org.sonar.api.rules.Violation
public class Violation
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Violation
public Violation(Rule rule)
Violation
public Violation(Rule rule,
Resource resource)
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.