我建议您创建和使用您自己的 ClassifierType 子概念,它指定对“分类器”引用的约束,例如:
concepts constraints MyClassifierType {
can be child <none>
can be parent <none>
can be ancestor <none>
<<property constraints>>
link {classifier}
referent set handler:<none>
scope:
(exists, referenceNode, contextNode, containingLink, linkTarget, operationContext, enclosingNode, model, position, contextRole)->Scope {
sequence<node<Classifier>> candidates = model.nodesIncludingImported(Classifier).where({~it => it.getExtendedClassifierTypes().any({~clazz => clazz.classifier :eq: node/Runnable/; }); });
new ListScope(candidates) {
public string getName(node<> child) {
child : INamedConcept.name;
}
};
}
presentation :
<no presentation>
;
default scope
<no default scope>
}