public static class ClassValidator.CimClassesWithOldDatatypeStereotype extends AbstractRule implements SimpleRule<UmlClass>
Modifier and Type | Class 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.
|
AbstractRule.AbstractRuleWithSubobjectsAndSkips<T extends UmlObject>, AbstractRule.UmlObjectsMissingDoc<T extends UmlObject>, AbstractRule.UmlObjectsWithBadCharacterInName<T extends UmlObject>, AbstractRule.UmlObjectsWithBadDocEnd<T extends UmlObject>, AbstractRule.UmlObjectsWithBadDocStart<T extends UmlObject>, AbstractRule.UmlObjectsWithUnallowedStereotype<T extends UmlObject>, AbstractRule.UmlObjectsWithUnallowedTagNames<T extends UmlObject>
Constructor and Description |
---|
CimClassesWithOldDatatypeStereotype() |
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.
|
void |
validate(UmlClass o,
ModelIssues issues)
Applies the validation criteria to
obj , and creates problems for invalid ones
and adds them to toCollect . |
createIssue, createIssue, createIssue, getCategory, getHowToFix, getHypothesis, getLogLevel, getSeverity, logDiagnosis
public java.util.EnumSet<Nature> getApplicability()
public void validate(UmlClass o, ModelIssues issues)
SimpleRule
obj
, and creates problems for invalid ones
and adds them to toCollect
.validate
in interface SimpleRule<UmlClass>
public Rule.Category getCategory()
public Rule.Severity getSeverity()
public java.lang.String getHypothesis()
public java.lang.String getHowToFix()
public 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.public org.apache.log4j.Level getLogLevel()
getSeverity()
).Copyright 2009-2016 Tatjana (Tanja) Kostic