How to define a Constraint on a self-association


I’m evaluating VP-UML, and working on Class Diagrams. What I’m looking for is a way to define a constraint on a self association.

eg.“a container can not contain itself”.

thanks in advance for any help.

Dear Therry,

Thank you for your enquiry. I suggest you use tagged value to define the constraint of a self association. For more inforamtion about the use of tagged value, please read:

Best Regards,