Hey Matthias,

Yep its working :)  Basically its handled similar to cartridges, except
they're called translation-libraries, these can also be placed on the
classpath and discovered and loaded by the core (just like cartridges).
They then can be looked up by <library>.<translation name>.  For example,
Wouter is writing a validation translation-library, and the library name is
'validation' and the translation is called 'Java', so to translate something
using this translation-library you could use one of the methods on the
ModelElementFacade that I've recently added called
"translationConstraint(s)".  Basically you'd pass in the name of this
translation library and something identifying the constranits you want to
translate (like the type of constraint, the name, or all of them) and from
there it would look it up, translate the OCL expression into the target
language and return you the String or array of Strings containing the
translated expressions.  In the model you'd just add the constraint(s) to
your model elements and they'd be found from there by the
translationConstraint methods.   I'll have docs that explain it when I'm
done, and I'll point you to them.

Chad

----- Original Message ----- 
From: "Matthias Bohlen" <[EMAIL PROTECTED]>
To: "'Chad Brandon'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 26, 2004 5:42 PM
Subject: [Andromda-devel] OCL Translation: how?


> Hi Chad,
>
> from your commit messages on andromda-cvs, I see that the OCL
> translation must be almost working which makes me curious! Could you
> describe in a few sentences how it will work? Which steps are necessary
> on the side of the user to make it work? In the model? And in code?
>
> Cheers...
> Matthias
>
> ---
>
> Matthias Bohlen
> "Consulting that helps project teams to succeed..."
> http://www.mbohlen.de/
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Andromda-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/andromda-devel
>




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to