|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.violations.model.Violation
public class Violation
A class contains information on a violation.
| Constructor Summary | |
|---|---|
Violation()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Violation other)
Compare to another violation. |
int |
getLine()
Get the line number where the violation occurred. |
String |
getMessage()
Get the message to used when displaying the violation. |
String |
getPopupMessage()
Get the popup message. |
String |
getSeverity()
Get the severity string (NEEDS to be normalized). |
int |
getSeverityLevel()
Get the severityLevel number where the violation occurred. |
String |
getSource()
Get the source of the violation. |
String |
getSourceDetail()
Get the source detail message. |
String |
getType()
Get the type. |
void |
setLine(int line)
Set the line number in that the violation occurred. |
void |
setLine(String line)
Set the line number using a (possibly null) string. |
void |
setMessage(String message)
Set the message to used when displaying the violation. |
void |
setPopupMessage(String popupMessage)
Set the message to used when displaying the violation in a pop-up. |
void |
setSeverity(String severity)
Set the severity string (NEEDS to be normalized). |
void |
setSeverityLevel(int severityLevel)
Set the severityLevel of the violation. |
void |
setSource(String source)
Set the source of the violation. |
void |
setType(String type)
Set the type of violation ('checkstyle', 'pmd' etc). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Violation()
| Method Detail |
|---|
public void setType(String type)
type - the value to use.public String getType()
public void setLine(int line)
line - the value to use.public void setLine(String line)
line - the value to use.public int getLine()
public void setSeverityLevel(int severityLevel)
severityLevel - the value to use.public int getSeverityLevel()
public void setSeverity(String severity)
severity - the severity string.public String getSeverity()
public void setMessage(String message)
message - the value to use.public String getMessage()
public void setPopupMessage(String popupMessage)
popupMessage - the value to use.public String getPopupMessage()
public String getSourceDetail()
public void setSource(String source)
source - the value to use.public String getSource()
public int compareTo(Violation other)
compareTo in interface Comparable<Violation>other - the violation to compare to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||