public static class ClassValidator.CimClassesNeverUsedAsTypeForAttribute extends AbstractRule implements CrossRule<UmlClass>
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>
Rule.Category, Rule.Severity
Modifier and Type | Field and Description |
---|---|
private java.util.List<UmlAttribute> |
_scopedWrtUmlAttributes |
private static java.lang.String |
HOWTO |
private static java.lang.String |
HYPO |
Constructor and Description |
---|
ClassValidator.CimClassesNeverUsedAsTypeForAttribute(java.util.List<UmlAttribute> scopedWrtUmlAttributes) |
Modifier and Type | Method and Description |
---|---|
java.util.EnumSet<Nature> |
getApplicability()
Returns all the natures of model elements for which the rule is applicable.
|
java.util.Collection<? extends UmlObject> |
getObjsToTestAgainst()
Returns list of objects against which
CrossRule.validate(List, ModelIssues) works. |
void |
validate(java.util.List<UmlClass> classes,
ModelIssues issues)
Applies the validation criteria to a non-empty list of
objs , and creates
problems for invalid ones and adds them to toCollect . |
createIssue, createIssue, createIssue, getCategory, getHowToFix, getHypothesis, getLogLevel, getSeverity, logDiagnosis
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCategory, getHowToFix, getHypothesis, getLogLevel, getSeverity, logDiagnosis
private static final java.lang.String HYPO
private static final java.lang.String HOWTO
private final java.util.List<UmlAttribute> _scopedWrtUmlAttributes
public ClassValidator.CimClassesNeverUsedAsTypeForAttribute(java.util.List<UmlAttribute> scopedWrtUmlAttributes)
public java.util.Collection<? extends UmlObject> getObjsToTestAgainst()
CrossRule
CrossRule.validate(List, ModelIssues)
works.getObjsToTestAgainst
in interface CrossRule<UmlClass>
public java.util.EnumSet<Nature> getApplicability()
Rule
getApplicability
in interface Rule
public void validate(java.util.List<UmlClass> classes, ModelIssues issues)
CrossRule
objs
, and creates
problems for invalid ones and adds them to toCollect
.Copyright 2009-2015 Tatjana (Tanja) Kostic