Constrain edges to be unique [message #1835709] |
Thu, 10 December 2020 14:50 |
Eclipse User |
|
|
|
Hi,
I am trying to add constraints to my editor using the Validation specification available in Sirius. I have multiple different classes for edges (composition, aggregation, association, inheritance). I want to set up constraints so that between two nodes you can't have more than one edge. Say a node cannot have an association to another node and be a parent of that node as shown in the picture.

Right now I'm using self.incomingEdges and self.outgoingEdges only returns a sequence of DEdge classes and I have no idea how to parse the sequence to check for the edge class to check to make sure that they are all the same class. Any ideas would be welcome.
|
|
|
Powered by
FUDForum. Page generated in 0.04639 seconds