argouml php 代码生成

发布于 2024-11-23 23:35:28 字数 256 浏览 3 评论 0原文

希望快速...

我想知道如何/在哪里更改自动代码生成中使用的 argouml 中的设置。创建的文件具有我不需要的额外内容(一些注释、一些代码,例如版本检查流程控制),并包含图中类之间存在连接的语句。一切我都会自己处理。

除此之外,文件名转换目前为 class.CLASSNAME.php,我想将其切换为小写类名 .cls.php。

最后 - 努力让关系以 ocde 正确输出 - 无法让类实现接口或扩展父类。

任何提示,感激不尽...

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 extend a parent class.

Any tips gratefully received...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱她像谁 2024-11-30 23:35:28

坏消息是这些选项被编译到源代码中。好消息是您可以修改 来源!不幸的是,除此之外你真的无能为力。

ArgoUML 确实非常出色——开源、PC UML 构建软件。但是,它也有与此相关的所有缺点。其中一个模块的状况非常糟糕,我觉得唯一的选择就是成为一名提交者。

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.

恰似旧人归 2024-11-30 23:35:28

您最好在 ArgoUML 论坛之一中提问,确保 ArgoUML 开发人员能够看到该问题。

当前的代码生成器已将样板嵌入到 Java 代码中。在基于模板的生成器上已经完成了一些工作(不适用于 PHP,但可以重新定位),但我不确定它有多远。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文