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:
metaobjectClass="org.omg.uml.modelmanagement.UmlPackage$Impl"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
metafacadeClass="org.andromda.metafacades.uml14.PackageFacadeLogicImpl"/>
metaobjectClass="org.andromda.metafacades.uml14.PackageFacadeLogicImpl"by:
<metafacade
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:
yourHi Francois,
You should be able to do this, by packageing up
group of metafacades just like we've done withon
andromda-metafacades-uml-*.jar and
andromda-metafacades-uml14-*.jar and placing them
your classpath with the other default ones.metafacades
However there is currently only one set of
belonging to the "default" namespace, and those arewith
the uml and uml14 ones. What you'll need to do
yours then is someone how make them override the(I
"default" namespace, which you should be able to do
haven't tried)...by placing your new jar ofand
metafacades on the classpath AFTER the normal uml
uml14 metafacades. Does that make sense? Anywaytry
that out, and if it doesn't work let me know, andI'll
butfix 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
for ametametafacade. In other words, I'd like tothat
create a metafacade asuml14. I'm able to do what
you're saying with the cartridge but myproblem is
the logic I'm implementing is then not availableuser
toother cartridges. I'd like to make myself a new
metametafacade (in thelikes of uml14) and would
that metafacade in my cartridges. Mycartridgeswould
then extend these metafacades if they need to.
Concretely:
uml -> uml14 -> HigherMetafacade -> cartridge1
-> cartridge2
needed-> cartridge3
This way I could add certain methods that are
by all threecartridges in a metafacade withoutanotherlevel
modifying the uml14 metafacade(which I shouldn't
do...right?). Is it possible to define
like,of metafacade...if so how could I do it?
Thanks,
Wouter Zoons wrote:
You can pretty much implement any strategy you
you will need tomodel your cartridge using UMLanyway,
and if you import the existingmodel as for exampleknow
used by the UML14 implementation you can extend
(=generalize) the model elements you wantDo you
how to proceed ? Take a look at the UML model forone
of theexisting cartridges (MagicDraw communityedition
recommended)-- Wouter -----Original Message-----From:On
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of François EricSent: Wednesday, Junebe
30, 2004 5:43 PMTo:
[EMAIL PROTECTED]:
[Andromda-user] Extending the uml14 metafacadeHi,I
would like to build my own metafacade which could
used by manycartridges. The purpose is to be ableto
have my cartridges extendthese metafacades insteadof
the uml14 metafacades.For example, lets say I wantto
add a method calledgetOneToOneAssociations to theavoid
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
duplicating code.How can I do this? Can I extendthe
uml14 metafacade and if so how?Otherwise how do Iproceed?Thanks,Francois-------------------------------------------------------This
SF.Net email sponsored by Black Hat Briefings &technical
Training.Attend Black Hat Briefings & Training, Las
Vegas July 24-29 -digital self defense, top
experts, no vendor pitches,unmatched networkingwww.blackhat.com_______________________________________________Andromda-user
opportunities. Visit
mailing[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------This
SF.Net email sponsored by Black Hat Briefings &technical
Training.Attend Black Hat Briefings & Training, Las
Vegas July 24-29 - digital self defense, top
experts, no vendor pitches, unmatched networkingwww.blackhat.com_______________________________________________Andromda-user
opportunities. Visit
mailing[EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------This
SF.Net email sponsored by Black Hat Briefings &technical
Training.Attend Black Hat Briefings & Training, Las
Vegas July 24-29 - digital self defense, top
experts, no vendor pitches, unmatched networkingwww.blackhat.com_______________________________________________Andromda-user
opportunities. Visit
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 VegasJuly 24-29 -
digital self defense, top technical experts, novendor pitches,
unmatched networking opportunities. Visitwww.blackhat.com
_______________________________________________https://lists.sourceforge.net/lists/listinfo/andromda-user
Andromda-user mailing list
[EMAIL PROTECTED]
-------------------------------------------------------
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