|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrj.tools.jcsc.Violation
Violation - a violation and its information
| Constructor Summary | |
Violation(Rule rule,
java.lang.String sourcePath,
java.lang.String className,
java.lang.String packageName,
java.lang.String message,
int line,
int column)
Creates a Violation instance |
|
| Method Summary | |
java.lang.String |
getClassName()
getClassName |
int |
getColumn()
getColumn |
int |
getLine()
getLine |
java.lang.String |
getMessage()
getMessage |
java.lang.String |
getPackageName()
getPackageName |
Rule |
getRule()
getRule |
java.lang.String |
getSource()
getSource |
void |
setClassName(java.lang.String className)
setClassName |
void |
setColumn(int column)
setColumn |
void |
setLine(int line)
setLine |
void |
setMessage(java.lang.String message)
setMessage |
void |
setPackageName(java.lang.String packageName)
setPackageName |
void |
setRule(Rule rule)
setRule |
void |
setSource(java.lang.String source)
setSource |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Violation(Rule rule,
java.lang.String sourcePath,
java.lang.String className,
java.lang.String packageName,
java.lang.String message,
int line,
int column)
rule - which was violatedsourcePath - full qualified path to fileclassName - name of classpackageName - package of classmessage - violation messageline - of violationcolumn - of violation| Method Detail |
public void setRule(Rule rule)
setRule
rule - a Rule valuepublic Rule getRule()
getRule
Rule valuepublic void setSource(java.lang.String source)
setSource
source - a String valuepublic java.lang.String getSource()
getSource
String valuepublic void setClassName(java.lang.String className)
setClassName
className - a String valuepublic java.lang.String getClassName()
getClassName
String valuepublic void setPackageName(java.lang.String packageName)
setPackageName
packageName - a String valuepublic java.lang.String getPackageName()
getPackageName
String valuepublic void setMessage(java.lang.String message)
setMessage
message - a String valuepublic java.lang.String getMessage()
getMessage
String valuepublic void setLine(int line)
setLine
line - an int valuepublic int getLine()
getLine
int valuepublic void setColumn(int column)
setColumn
column - an int valuepublic int getColumn()
getColumn
int valuepublic java.lang.String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||