Class Rule
java.lang.Object
edu.hm.hafner.analysis.parser.checkstyle.Rule
Java Bean class representing a Checkstyle rule.
- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of this rule.getName()Returns the name of this rule.voidsetDescription(Topic topic) Sets the description of this rule.voidSets the name of this rule.
-
Constructor Details
-
Rule
public Rule()Instantiates a new rule. -
Rule
Instantiates a new rule.- Parameters:
name- the name of the rule
-
-
Method Details
-
getName
Returns the name of this rule.- Returns:
- the name
-
setName
Sets the name of this rule.- Parameters:
name- the name
-
getDescription
Returns the description of this rule.- Returns:
- the description
-
setDescription
Sets the description of this rule. The description is only set if the topic is a description.- Parameters:
topic- the topic that might contain the description
-