hudson.plugins.pmd.parser
Class PmdMessages

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

public final class PmdMessages
extends java.lang.Object

Provides access to rule descriptions and examples.

Author:
Ulli Hafner

Method Summary
static PmdMessages getInstance()
          Returns the singleton instance.
 java.lang.String getMessage(java.lang.String ruleSetName, java.lang.String ruleName)
          Returns the message for the specified PMD rule.
 void initialize()
          Initializes the rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PmdMessages getInstance()
Returns the singleton instance.

Returns:
the singleton instance

initialize

public void initialize()
Initializes the rules.


getMessage

public java.lang.String getMessage(java.lang.String ruleSetName,
                                   java.lang.String ruleName)
Returns the message for the specified PMD rule.

Parameters:
ruleSetName - PMD rule set
ruleName - PMD rule ID
Returns:
the message


Copyright © 2010. All Rights Reserved.