interface Rule
Modifier and Type | Interface and Description |
---|---|
static class |
Rule.Category
Category of the rule; usefull to classify problems.
|
static class |
Rule.Severity
How severe the violation of this rule is; useful to prioritise problems.
|
Modifier and Type | Method and Description |
---|---|
java.util.EnumSet<Nature> |
getApplicability()
Returns all the natures of model elements for which the rule is applicable.
|
Rule.Category |
getCategory()
Returns rule category.
|
java.lang.String |
getHowToFix()
Returns the suggestion on how to fix the problem.
|
java.lang.String |
getHypothesis()
Returns what this rule is enforcing (and what was violated).
|
org.apache.log4j.Level |
getLogLevel()
Returns log level to use (likely: related with
getSeverity() ). |
Rule.Severity |
getSeverity()
Returns severity if this rule is violated.
|
void |
logDiagnosis(boolean verbose,
ModelIssues issues)
Logs the diagnosis.
|
Rule.Category getCategory()
Rule.Severity getSeverity()
java.lang.String getHypothesis()
java.lang.String getHowToFix()
void logDiagnosis(boolean verbose, ModelIssues issues)
verbose
- whether to log on console also validation steps with no errors.issues
- "collecting" parameter, to be filled within the method.org.apache.log4j.Level getLogLevel()
getSeverity()
).java.util.EnumSet<Nature> getApplicability()
Copyright 2009-2015 Tatjana (Tanja) Kostic