开发者

argouml php code generation

Hopefully a quickie...

I'd like to know how/where to alter the settings in argouml that is used in autocode generation. Files created have extra things in that I don't need (some comments, some code like e.g. version checking flow control) and include staements where there is a connection between classes in the diagram. All that I will handle myself.

Further to that is the filename convetion which is currently class.CLASSNAME.php which I'd like to swtch to lowercase classname .cls.php.

Finally - strugg;ong to get the relationships being output in ocde correctly - can't get a class to implement an interface nor ex开发者_开发技巧tend a parent class.

Any tips gratefully received...


Well, the bad news is that those options are compiled into the source. The good news is that you can modify the source! Unfortunately, there really isn't much you can do to work on it beyond that.

ArgoUML is really great for what it is -- open source, PC UML constructing software. But, it has all of the faults related to that too. One of the modules was in such bad shape that I felt the only option was becoming a committer.


You'd be better off asking in one of the ArgoUML forums, where you'd be sure the question would be seen by the ArgoUML developers.

The current code generator has the boilerplate baked into the Java code. There's been some work done on a template-based generator (not for PHP, but it'd be possible to retarget), but I'm not sure how far along it is.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜