|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.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. |
java.lang.String |
getMessage()
Get the message to used when displaying the violation. |
java.lang.String |
getPopupMessage()
Get the popup message. |
java.lang.String |
getSeverity()
Get the severity string (NEEDS to be normalized). |
int |
getSeverityLevel()
Get the severityLevel number where the violation occurred. |
java.lang.String |
getSource()
Get the source of the violation. |
java.lang.String |
getSourceDetail()
Get the source detail message. |
java.lang.String |
getType()
Get the type. |
void |
setLine(int line)
Set the line number in that the violation occurred. |
void |
setLine(java.lang.String line)
Set the line number using a (possibly null) string. |
void |
setMessage(java.lang.String message)
Set the message to used when displaying the violation. |
void |
setPopupMessage(java.lang.String popupMessage)
Set the message to used when displaying the violation in a pop-up. |
void |
setSeverity(java.lang.String severity)
Set the severity string (NEEDS to be normalized). |
void |
setSeverityLevel(int severityLevel)
Set the severityLevel of the violation. |
void |
setSource(java.lang.String source)
Set the source of the violation. |
void |
setType(java.lang.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(java.lang.String type)
type
- the value to use.public java.lang.String getType()
public void setLine(int line)
line
- the value to use.public void setLine(java.lang.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(java.lang.String severity)
severity
- the severity string.public java.lang.String getSeverity()
public void setMessage(java.lang.String message)
message
- the value to use.public java.lang.String getMessage()
public void setPopupMessage(java.lang.String popupMessage)
popupMessage
- the value to use.public java.lang.String getPopupMessage()
public java.lang.String getSourceDetail()
public void setSource(java.lang.String source)
source
- the value to use.public java.lang.String getSource()
public int compareTo(Violation other)
compareTo
in interface java.lang.Comparable<Violation>
other
- the violation to compare to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |