Tuesday, March 15, 2005

CFC generator for Enterprise Architect

If you use the UML to drive the dialog between your developers and your stakeholders, you owe it to your self to take a look at Enterprise Architect by Sparx Systems. The interface is deceptively simple at first glance. Be warned, this program takes a while to learn how to use and tune to your development environment.

Note: Big plus for EA - value priced.

One of the promising features of this package is the ability to generate code from your model. For some languages, this can work in both directions. Unfortunately, the user accessible interface only supports going from model to code.

You can get my cfc generator [right-click and save] to help take some of the drudgery out of building the repetitive blocks of code common to most cfcs used as ColdFusion classes. It takes your class drawings and converts them to cfcs using the code generation screens.

It is obviously a 0.0001 release. I haven't even had a chance to test it myself yet.

I haven't yet figured out how to deal with composition yet, especially when something other than 1..1 multiplicity is involved.

The nice thing about this approach is that the format is easily editable. If you don't like the way I'm presenting something, you can open up the model driven generation screens and edit until your heart's content.

Make sure you drop me a line if you make changes to the xml file or find bugs.

2 comments:

  1. Ok, this is pretty cool. I just generated 115 cfc files in about 10 seconds, complete with constructor, getters and setters.

    I still don't have an easy way to cfdump an object that has a property that is an array of other objects.

    ReplyDelete
  2. Mike...

    ***THANK-YOU***

    Adam

    ReplyDelete