|
|
|
Re: restriction of child elements [message #1068087 is a reply to message #1068044] |
Fri, 12 July 2013 04:32 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Phil,
Given that you made such things modeled via a type attribute on Hw,
you've not modeled it a way where you have Core, Memory, and Quartz
classes so just changing that attribute value can lead to an invalid
model. If you modeled actual classes for these things, you'd have the
support of the type system to enforce validity.
On 11/07/2013 9:21 PM, Phil H wrote:
> Thx Ed,
>
> this seems to be a possible solution for my usecase.
>
> But I would prefer a solution where the user has no chance to model
> something wrong.
>
> For example when adding a child to Core, only Memory and Quartz will
> be offered. Is it possible to modify the generated emf code in order
> to reach this?
>
> Cheers,
> Phil
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02764 seconds