Join the Discussion

Recent site activity

Classifier Attributes Are Not Depicted

Description

<put the description here>

Reference

<put the reference here>

QVTr

top relation ClassifierAttributesAreNotDepicted {

    checkonly domain source _classifier:Classifier {};
    
    enforce domain target _c:Category {name = 'Notational Anti-Patterns',
        pattern = _p:Pattern {name = 'ClassifierAttributesAreNotDepicted',
            rootBinding  = _rb1:RoleBinding {role = 'classifier', element = _classifier
    }}};
    
    when {
        _classifier.attribute->exists(a|a.association->isEmpty());
        not _classifier.view.collect(v|v.oclAsType(notation::View)).children->exists(c|
            c.type = 'AttributeCompartment' and c.visible);
    }
}

Examples

<put text or diagrams showing the anti-pattern>
Comments