public static class DiagramValidator.DiagramsWithBadOrientation extends AbstractRule implements SimpleRule<UmlDiagram>
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 static java.lang.String |
HOWTO |
private static java.lang.String |
HYPO |
Constructor and Description |
---|
DiagramValidator.DiagramsWithBadOrientation() |
Modifier and Type | Method and Description |
---|---|
java.util.EnumSet<Nature> |
getApplicability()
Returns all the natures of model elements for which the rule is applicable.
|
void |
validate(UmlDiagram d,
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
getCategory, getHowToFix, getHypothesis, getLogLevel, getSeverity, logDiagnosis
private static final java.lang.String HYPO
private static final java.lang.String HOWTO
public DiagramValidator.DiagramsWithBadOrientation()
public java.util.EnumSet<Nature> getApplicability()
Rule
getApplicability
in interface Rule
public void validate(UmlDiagram d, ModelIssues issues)
obj
, and creates problems for invalid ones
and adds them to toCollect
.
Matches if diagram orientation is not portrait.
validate
in interface SimpleRule<UmlDiagram>
Copyright 2009-2015 Tatjana (Tanja) Kostic