|
|
|
Re: Meta-model extensibility issues [message #497171 is a reply to message #497156] |
Thu, 12 November 2009 17:43 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Colin,
I'm not really sure I followed all this old and new stuff you talked
about. You definitely can't modify generated classes dynamically to add
new containment features and you can't modify an instance to become an
instance of a subclass.. For XML Schema-based models, you can use
element wildcards perhaps to do something like what you're talking
about, i.e., elements of arbitrary type defined in other models can be
used as containment references in the base model.
Colin Snook wrote:
> Hi Nirmal,
>
> Thanks, Yes, I have seen Ed's blog and I already tried Child extenders
> (it is the last sentence of item 3 in my original post). However, it
> seems to rely entirely on the new child-type subclassing the
> target-type of an existing containment. The reasons I am not rushing
> down this route are ...
>
> I want a way to make the new containment only appear on a particular
> parent. I guess I could change the old meta-model to have a different
> child-target-type for each parent.
>
> In the API and UI, I need to be able to distinguish different
> collections within the parent. I might be able to add this even though
> they are really in the same catch-all containment? I don't know much
> about feature maps, would that do it?
>
> Ideally, I would like to be able to have several different collections
> of the same target-type in one parent. However i might be able to
> achieve this by introducing different kinds of intermediate container
> objects to distinguish usage.
>
> Colin
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03061 seconds