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?
"Consulting that helps project teams to succeed..."
From: Chad Brandon <chdbrandon@ya...> - 2004-05-27 02:56:29
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.
----- Original Message -----
From: "Matthias Bohlen" <mbohlen@...>
To: "'Chad Brandon'" <chdbrandon@...>
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?
> Matthias Bohlen
> "Consulting that helps project teams to succeed..."
> 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.
> Andromda-devel mailing list