T
- public abstract static class AbstractRule.AbstractRuleWithSubobjectsAndSkips<T extends UmlObject> extends AbstractRule implements SimpleRule<T>
skipValidation(UmlObject)
and/or
skipSubobjectValidation(UmlObject)
. This is necessary in particular for complex
IEC61850 models, to avoid lots of noise where e.g. we don't care about a doc for something
that is just a modelling artefact, but not really part of the official specification.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 | Constructor and Description |
---|---|
protected |
AbstractRule.AbstractRuleWithSubobjectsAndSkips(org.apache.log4j.Logger extLogger,
org.apache.log4j.Level level,
Rule.Severity severity,
Rule.Category category,
java.lang.String hypothesis,
java.lang.String howToFix,
java.lang.String what) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doValidate(UmlObject o,
ModelIssues issues) |
protected java.util.List<UmlObject> |
getSubObjects(T o)
Used for validation of "sub-objects" (such as association ends and operation parameters)
that do not have their own validators, but get validated through their container.
|
protected boolean |
skipSubobjectValidation(T o)
This default implementation returns false (no skipping); override if sub-objects don't
need validation.
|
protected boolean |
skipValidation(T o)
This default implementation returns false (no skipping); override if main object doesn't
need validation.
|
void |
validate(T 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicability, getCategory, getHowToFix, getHypothesis, getLogLevel, getSeverity, logDiagnosis
protected AbstractRule.AbstractRuleWithSubobjectsAndSkips(org.apache.log4j.Logger extLogger, org.apache.log4j.Level level, Rule.Severity severity, Rule.Category category, java.lang.String hypothesis, java.lang.String howToFix, java.lang.String what)
public final void validate(T o, ModelIssues issues)
SimpleRule
obj
, and creates problems for invalid ones
and adds them to toCollect
.validate
in interface SimpleRule<T extends UmlObject>
protected abstract void doValidate(UmlObject o, ModelIssues issues)
protected java.util.List<UmlObject> getSubObjects(T o)
This default implementation returns empty list; subtypes having contained objects that need to be validated against this rule have to override this method.
protected boolean skipSubobjectValidation(T o)
protected boolean skipValidation(T o)
Copyright 2009-2015 Tatjana (Tanja) Kostic