Hello Darius,
thanks for your quick answer.
Darius Jockel wrote:
what about to overwrite the extension:
org::fornax::cartridges::uml::javabasic::m2t::DataType::isSet(uml::MultiplicityElement element)
If the new implementation return false allways a list should be generated.
You probably mean ...::uml2::... or? Thanks for the hint, I didn't know that there is this extension.
You can do this in a non invasive way by using aop.
The advantage of using aop would be that I don't have to change the code (of the extension) every time I'm updating the cartridge version (under the assumption that it uses a new version of the javabasic cartridge as well) right? I've seen uses of aop in cartridges at some places, but I have to get a bit more familiar with it in order to do it on my own ;) Wouldn't that approach include writing my own cartridge, which basically "wraps" the existing (javabasic) cartridge?
Or you can use the preProcessor (or a own component) to write a model to model transformation.
Set all relevant order or unique properties.
Thats what I meant with the transformation (my second thought), but I have to change the javabasic cartridge anyway, therefore I think I'll choose your first or second approach mentioned.
Did I help you?
Regards
Darius
Yes! Thank you very much.
Regards
Tom