Wouter,

Here is a description of the repository tag.  You probably already know this
information, but I had to visit the code again to refresh my memory.

The build.xml repository tag has two attributes on it.  One is to replace
the repository that is used by AndroMDA and the other is to replace the
helper class that will be used by cartridges that do not specify their own
helper classes.

The repository's main job is to read in a model from a given URL. The
current repository is setup to read in models from UML contained in XMI
files. There is absolutely nothing preventing someone from implemented a
repository that populates itset from some other format - such as from a
database ...

The helpers job, from the point of view of the AndroMDA kernel, is provide
meaning to the model.  The enumerates the  model elements in model and for
each model element it must be able to:
- return a name
- return a list of stereotypes
- return a package

As you noticed in your investigations, the package name and element names
are really just used to synthisize directory and filenames for the output.

Tony


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, August 28, 2003 5:15 AM
> To: "Tony Mowers"; "Matthias Bohlen"
> Cc: "'"'Developers AndroMDA'"'"
> Subject: RE: [Andromda-devel] RE: Elaborate sample model for the new
> struts cartridge
>
>
> Tony,
>
> yes indeed... it worked exactly as you said it would, thanks!
> (except for the attribute name, apparently it is not 'classname'
> but 'transformClassname' - just as in the cartridge descriptor)
>
> extending UMLStaticHelper works fine, but maybe it is an even
> better idea to add a UMLDynamicHelper to the kernel (any 'static'
> functionality could be delegated to the UMLStaticHelper, rather
> than by extending it)
>
> More cartridges could make use of the dynamic features that way.
>
> cheers
> Wouter.
>
> "Tony Mowers" <[EMAIL PROTECTED]> wrote:
>
> >
> >
> >> > 3. I want my output filenames to be a function of the names
> >> > as they appear in the model elements, how can I do this
> >> > without touching the kernel ? (I am now overriding getName()
> >> > and getPackageName() in UMLStaticHelper)
> >>
> >> Hmmm... today, there is no good mechanism that allows you to
> do so. I'll
> >> have to think about this.
> >>
> >
> >I sent an e-mail earlier, but I am not sure it got through.
> >
> >You can override the UMLStaticHelper in exacty the way you are
> doing it now,
> >and not have to touch the kernel. Use the 'repository' build tag in the
> >build.xml file and this accomplishes what you are doing now
> without having
> >to change any classes in the AndroMDA jar.
> >
> >see 'repository' on page:
> >http://www.andromda.org/pages/buildtags.html
> >
> >It is not ideal, but it allows you to do exactly what you did with the
> >UMLStaticHelper object without having to touch the kernel. �The
> one problem
> >is that your UMLStaticHelper object will then be used by every cartridge.
> >
> >
>
>
> --
> -----------------------------
> http://jeteam.sourceforge.net
>
> -----------------------------
>
>
> __________________________________________________________________
> McAfee VirusScan Online from the Netscape Network.
> Comprehensive protection for your entire computer. Get your free
> trial today!
> http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
>
> Get AOL Instant Messenger 5.1 free of charge.  Download Now!
> http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Andromda-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/andromda-devel



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to