org.codenarc.rule
Class Violation

java.lang.Object
  extended by org.codenarc.rule.Violation
All Implemented Interfaces:
groovy.lang.GroovyObject

public class Violation
extends java.lang.Object
implements groovy.lang.GroovyObject


Constructor Summary
Violation()
           
 
Method Summary
 java.lang.Integer getLineNumber()
           
 java.lang.String getMessage()
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String property)
           
 Rule getRule()
           
 java.lang.String getSourceLine()
           
 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
           
 void setLineNumber(java.lang.Integer value)
           
 void setMessage(java.lang.String value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(java.lang.String property, java.lang.Object value)
           
 void setRule(Rule value)
           
 void setSourceLine(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Violation

public Violation()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public java.lang.Object invokeMethod(java.lang.String method,
                                     java.lang.Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

getRule

public Rule getRule()

setRule

public void setRule(Rule value)

getLineNumber

public java.lang.Integer getLineNumber()

setLineNumber

public void setLineNumber(java.lang.Integer value)

getSourceLine

public java.lang.String getSourceLine()

setSourceLine

public void setSourceLine(java.lang.String value)

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.