"Karl M. Hegbloom" wrote:
>
> Has anyone yous know of tried writing any Perl (or other lang)
> software that will take a Dia UML diagram and autogen <programming
> language/> objects from that?
>
> I'd like to have a way to generate perl objects (Class::MethodMaker)
> and matching Tangram (an object persistance thing for Perl) Schemas
> from UML. Since DIA uses XML, perhaps that would not be impossible
> to do... has anyone else thought about that?
There is a program on Sourceforge called dia2code which transforms UML
to Java or C++. I tried using this program to generate Java but the
code was a bit iffy, so I am thinking about rewriting it using XSLT or
something for two reasons:
1) for a laugh (and more practical experience with XSLT)
2) as hopefully the UML structure in Dia will transform to code with
ease.
However, dia2code is here and this XSLT tool isn't. IIRC, extending
Dia2code shouldn't be too hard - I know almost no C and change the Java
code producer easily. Adding a Perl mode shouldn't be that tough.
Ross Burton
--
Ross Burton Software Engineer
OneEighty Software Ltd Tel: +44 20 8263 2332
The Lansdowne Building Fax: +44 20 8263 6314
2 Lansdowne Road [EMAIL PROTECTED]
Croydon, Surrey CR9 2ER, UK http://www.180sw.com./
====================================================================
Under the Regulation of Investigatory Powers (RIP) Act 2000 together
with any and all Regulations in force pursuant to the Act OneEighty
Software Ltd reserves the right to monitor any or all incoming or
outgoing communications as provided for under the Act