hudson.plugins.checkstyle.rules
Class CheckStyleRules

java.lang.Object
  extended by hudson.plugins.checkstyle.rules.CheckStyleRules

public final class CheckStyleRules
extends Object

Reads the meta data of the Checkstyle rules from the DocBook files of the Checkstyle distribution.

Author:
Ulli Hafner

Method Summary
 String getDescription(String name)
          Returns the description of the Checkstyle rule with the specified name.
static CheckStyleRules getInstance()
          Returns the singleton instance.
 Rule getRule(String name)
          Returns the Checkstyle rule with the specified name.
 Collection<Rule> getRules()
          Returns all Checkstyle rules.
 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 CheckStyleRules getInstance()
Returns the singleton instance.

Returns:
the singleton instance

initialize

public void initialize()
Initializes the rules.


getRules

public Collection<Rule> getRules()
Returns all Checkstyle rules.

Returns:
all Checkstyle rules

getRule

public Rule getRule(String name)
Returns the Checkstyle rule with the specified name.

Parameters:
name - the name of the rule
Returns:
the Checkstyle rule with the specified name.

getDescription

public String getDescription(String name)
Returns the description of the Checkstyle rule with the specified name.

Parameters:
name - the name of the rule
Returns:
the description for the specified rule .


Copyright © 2004-2012 Hudson. All Rights Reserved.