How to define a Constraint on a self-association

Hello,

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:
http://resource.visual-paradigm.com/tips_and_tricks/diagramming/defining_tagged_values_for_model_elements.html

Best Regards,
Jick