How does "constraints" feature work?

156 views
Skip to first unread message

Manoel Campos

unread,
Nov 7, 2015, 6:32:48 AM11/7/15
to StarUML
I'm wondering how the constraint feature of classes and fields works.
The documentation only explains briefly how to add constraints but doesn't explain how it works.
I thought that this feature would be used to defined required, min, max, unique constraints, 
but I don't know exactly how to code these characteristics, because the only available
field where I could inform my constraint is the specification field (that is a text field).

I think that It would have combo boxes where I can choose the constraint type (required, max, min, etc)
and specific fields would appear to allow us defining the constraint.

StarUML

unread,
Nov 8, 2015, 11:46:20 PM11/8/15
to StarUML
Hi,

Constraint in StarUML is no more than a just textual annotation. It doesn't support any executable language like OCL (Object Constraint Language). Just enter your-own expression in "specification" field of the Constraint.

Thanks,
StarUML Team


2015년 11월 7일 토요일 오후 8시 32분 48초 UTC+9, Manoel Campos 님의 말:
Reply all
Reply to author
Forward
0 new messages