public class JavaRuleDefinition extends Object implements RuleDefinition
| Constructor and Description |
|---|
JavaRuleDefinition(String id,
String category,
String group,
String description,
String message,
String shortMessage,
List<Example> examples)
Creates a new Java rule definition
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
rule category
|
String |
getDescription()
a description
|
List<Example> |
getExamples()
examples of this errors catch by this rule
|
String |
getGroup()
rule group
|
String |
getId()
prefixed identifier
|
String |
getMessage()
long error message generated by this rule
|
RuleType |
getRuleType()
Will always return RuleType.JAVA
|
String |
getShortMessage()
short error message generated by this rule
|
boolean |
isXMLBased()
Will allways return false
|
public JavaRuleDefinition(String id, String category, String group, String description, String message, String shortMessage, List<Example> examples)
id - prefixed identifiercategory - rule categorygroup - rule groupdescription - a descriptionmessage - long error message generated by this ruleshortMessage - short error message generated by this ruleexamples - examples of this errors catch by this rulepublic String getId()
RuleDefinitiongetId in interface RuleDefinitionpublic String getCategory()
RuleDefinitiongetCategory in interface RuleDefinitionpublic String getGroup()
RuleDefinitiongetGroup in interface RuleDefinitionpublic String getDescription()
RuleDefinitiongetDescription in interface RuleDefinitionpublic String getMessage()
RuleDefinitiongetMessage in interface RuleDefinitionpublic String getShortMessage()
RuleDefinitiongetShortMessage in interface RuleDefinitionpublic List<Example> getExamples()
RuleDefinitiongetExamples in interface RuleDefinitionpublic RuleType getRuleType()
getRuleType in interface RuleDefinitionRuleDefinition.getRuleType()public boolean isXMLBased()
isXMLBased in interface RuleDefinitionRuleDefinition.isXMLBased()Copyright © 2012–2017 CoGrOO. All rights reserved.