如何约束一个刻板印象没有属性?

How to constrain a stereotype to have no attributes?

我试过使用 OCL,但这在 EA 中实际上不起作用。

有办法吗?

EA 中的唯一方法是编写一个插件来执行检查。 EA只检查OCL语法,不执行。