hudson.plugins.pmd.parser
Class Violation

java.lang.Object
  extended by hudson.plugins.pmd.parser.Violation

public class Violation
extends java.lang.Object

Java Bean class for a violation of the PMD format.

Author:
Ulli Hafner

Constructor Summary
Violation()
           
 
Method Summary
 int getBeginline()
          Returns the beginline.
 int getEndline()
          Returns the endline.
 java.lang.String getExternalInfoUrl()
          Returns the externalInfoUrl.
 java.lang.String getMessage()
          Returns the message.
 java.lang.String getPackage()
          Returns the javaPackage.
 int getPriority()
          Returns the priority.
 java.lang.String getRule()
          Returns the rule.
 java.lang.String getRuleset()
          Returns the ruleset.
 void setBeginline(int beginline)
          Sets the beginline to the specified value.
 void setEndline(int endline)
          Sets the endline to the specified value.
 void setExternalInfoUrl(java.lang.String externalInfoUrl)
          Sets the externalInfoUrl to the specified value.
 void setMessage(java.lang.String message)
          Sets the message to the specified value.
 void setPackage(java.lang.String packageName)
          Sets the javaPackage to the specified value.
 void setPriority(int priority)
          Sets the priority to the specified value.
 void setRule(java.lang.String rule)
          Sets the rule to the specified value.
 void setRuleset(java.lang.String ruleset)
          Sets the ruleset to the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Violation

public Violation()
Method Detail

getRule

public java.lang.String getRule()
Returns the rule.

Returns:
the rule

setRule

public void setRule(java.lang.String rule)
Sets the rule to the specified value.

Parameters:
rule - the value to set

getRuleset

public java.lang.String getRuleset()
Returns the ruleset.

Returns:
the ruleset

setRuleset

public void setRuleset(java.lang.String ruleset)
Sets the ruleset to the specified value.

Parameters:
ruleset - the value to set

getExternalInfoUrl

public java.lang.String getExternalInfoUrl()
Returns the externalInfoUrl.

Returns:
the externalInfoUrl

setExternalInfoUrl

public void setExternalInfoUrl(java.lang.String externalInfoUrl)
Sets the externalInfoUrl to the specified value.

Parameters:
externalInfoUrl - the value to set

getPackage

public java.lang.String getPackage()
Returns the javaPackage.

Returns:
the javaPackage

setPackage

public void setPackage(java.lang.String packageName)
Sets the javaPackage to the specified value.

Parameters:
packageName - the value to set

getPriority

public int getPriority()
Returns the priority.

Returns:
the priority

setPriority

public void setPriority(int priority)
Sets the priority to the specified value.

Parameters:
priority - the value to set

getMessage

public java.lang.String getMessage()
Returns the message.

Returns:
the message

setMessage

public void setMessage(java.lang.String message)
Sets the message to the specified value.

Parameters:
message - the value to set

getBeginline

public int getBeginline()
Returns the beginline.

Returns:
the beginline

setBeginline

public void setBeginline(int beginline)
Sets the beginline to the specified value.

Parameters:
beginline - the value to set

getEndline

public int getEndline()
Returns the endline.

Returns:
the endline

setEndline

public void setEndline(int endline)
Sets the endline to the specified value.

Parameters:
endline - the value to set


Copyright © 2009. All Rights Reserved.