If I extend the model in andromda-all/metafacades/uml/common/src/uml, I won't be extending the UML 1.4 but the common UML right? How can I extend the UML 1.4?

Sorry but I'm not sure I understand clearly the relation between the common uml, uml 1.4 and the cartridges.

Thanks


Chad Brandon wrote:

Hi Francois,

The UML metafacades are generated (then we implement
the methods in the *LogicImpl* classes), there's a
model in andromda-all/metafacades/uml/common/src/uml
that these things are generated from. You can extend
that model for your higher metafacades just like you
do for cartridges. Is that what you're asking?


The andromda-metafacades.xml is not generated however,
and allows us to map more than one meta model class
(the OMG ones) to one metafacade class.


You had it almost right, but you would need to specify
the metaobjectClass as the OMG metamodel class to have
it use your higher metafacade class:

<metafacade
metaobjectClass="org.omg.uml.modelmanagement.UmlPackage$Impl"
metafacadeClass="org.andromda.metafacades.highermetafacade.PackageFacadeLogicImpl"/>

Also you shouldn't need to overwrite all mappings, but
only the ones you want to extend.

Chad







metafacadeClass="org.andromda.metafacades.highermetafacade.PackageFacadeLogicImpl"/>

metaobjectClass="org.omg.uml.modelmanagement.UmlPackage$Impl"






metafacadeClass="org.andromda.metafacades.uml14.PackageFacadeLogicImpl"/>

--- François_Eric <[EMAIL PROTECTED]> wrote:


Hi again,

How should I go to extend the uml14 metafacade? This metafacade does not have a uml diagram. It seems to have been done
manually in the file andromda-metafacades.xml. If I am making a new
metafacade (lets call it highermetafacade) should I overwrite all of the
mappings of the andromda-metafacades.xml.


For example replacing:

<metafacade




metaobjectClass="org.omg.uml.modelmanagement.UmlPackage$Impl"






metafacadeClass="org.andromda.metafacades.uml14.PackageFacadeLogicImpl"/>


by:

<metafacade




metaobjectClass="org.andromda.metafacades.uml14.PackageFacadeLogicImpl"






metafacadeClass="org.andromda.metafacades.highermetafacade.PackageFacadeLogicImpl"/>


Is this what I should do or is there a better/easier
solution?

Thanks,

François

Chad Brandon wrote:



Hi Francois,

You should be able to do this, by packageing up


your


group of metafacades just like we've done with
andromda-metafacades-uml-*.jar and
andromda-metafacades-uml14-*.jar and placing them


on


your classpath with the other default ones.

However there is currently only one set of


metafacades


belonging to the "default" namespace, and those are
the uml and uml14 ones. What you'll need to do


with


yours then is someone how make them override the
"default" namespace, which you should be able to do


(I


haven't tried)...by placing your new jar of
metafacades on the classpath AFTER the normal uml


and


uml14 metafacades. Does that make sense? Anyway


try


that out, and if it doesn't work let me know, and


I'll


fix it so it does work.

Chad

--- François_Eric <[EMAIL PROTECTED]> wrote:

---------------------------------
Thanks for the answer Wouter.


I would like to adopt the strategy you're defining


but


for ametametafacade. In other words, I'd like to
create a metafacade asuml14. I'm able to do what
you're saying with the cartridge but myproblem is


that


the logic I'm implementing is then not available
toother cartridges. I'd like to make myself a new
metametafacade (in thelikes of uml14) and would


user


that metafacade in my cartridges. Mycartridges


would


then extend these metafacades if they need to.

Concretely:

uml -> uml14 -> HigherMetafacade -> cartridge1




-> cartridge2




-> cartridge3

This way I could add certain methods that are


needed


by all threecartridges in a metafacade without
modifying the uml14 metafacade(which I shouldn't
do...right?). Is it possible to define


anotherlevel


of metafacade...if so how could I do it?

Thanks,



Wouter Zoons wrote:

You can pretty much implement any strategy you


like,


you will need tomodel your cartridge using UML


anyway,


and if you import the existingmodel as for example
used by the UML14 implementation you can extend
(=generalize) the model elements you wantDo you


know


how to proceed ? Take a look at the UML model for


one


of theexisting cartridges (MagicDraw community


edition


recommended)-- Wouter -----Original Message-----From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]


On


Behalf Of Fran&ccedil;ois EricSent: Wednesday, June
30, 2004 5:43 PMTo:
[EMAIL PROTECTED]:
[Andromda-user] Extending the uml14 metafacadeHi,I
would like to build my own metafacade which could


be


used by manycartridges. The purpose is to be able


to


have my cartridges extendthese metafacades instead


of


the uml14 metafacades.For example, lets say I want


to


add a method calledgetOneToOneAssociations to the
ClassifierFacade but don't want to modify the uml14 metafacade code (since its not in the
implementation). I don't want to implement this as a cartridge metafacade
either because it will be used by many cartridges and I would like to


avoid


duplicating code.How can I do this? Can I extend


the


uml14 metafacade and if so how?Otherwise how do I


proceed?Thanks,Francois-------------------------------------------------------This


SF.Net email sponsored by Black Hat Briefings &
Training.Attend Black Hat Briefings & Training, Las
Vegas July 24-29 -digital self defense, top


technical


experts, no vendor pitches,unmatched networking
opportunities. Visit


www.blackhat.com_______________________________________________Andromda-user


mailing


[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/andromda-user




-------------------------------------------------------This


SF.Net email sponsored by Black Hat Briefings &
Training.Attend Black Hat Briefings & Training, Las
Vegas July 24-29 - digital self defense, top


technical


experts, no vendor pitches, unmatched networking
opportunities. Visit


www.blackhat.com_______________________________________________Andromda-user


mailing


[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/andromda-user




-------------------------------------------------------This


SF.Net email sponsored by Black Hat Briefings &
Training.Attend Black Hat Briefings & Training, Las
Vegas July 24-29 - digital self defense, top


technical


experts, no vendor pitches, unmatched networking
opportunities. Visit


www.blackhat.com_______________________________________________Andromda-user


mailing


[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/andromda-user





-------------------------------------------------------


This SF.Net email sponsored by Black Hat Briefings


& Training.


Attend Black Hat Briefings & Training, Las Vegas


July 24-29 -

digital self defense, top technical experts, no


vendor pitches,

unmatched networking opportunities. Visit


www.blackhat.com


_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]


https://lists.sourceforge.net/lists/listinfo/andromda-user












-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user









------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to