Module edu.hm.hafner.analysis.model
Class CheckStyleRules
java.lang.Object
edu.hm.hafner.analysis.parser.checkstyle.CheckStyleRules
Reads the meta data of the Checkstyle rules from the DocBook files of the Checkstyle distribution.
- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDescription(String name) Returns the description of the Checkstyle rule with the specified name.Returns the Checkstyle rule with the specified name.getRules()Returns all Checkstyle rules.
-
Constructor Details
-
CheckStyleRules
public CheckStyleRules()Loads the available rules into a map.
-
-
Method Details
-
getRules
Returns all Checkstyle rules.- Returns:
- all Checkstyle rules
-
getRule
Returns the Checkstyle rule with the specified name.- Parameters:
name- the name of the rule- Returns:
- the Checkstyle rule with the specified name.
-
getDescription
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
-