从XSD架构生成ActionScript值对象 [英] Generating ActionScript value objects from an xsd schema

查看:165
本文介绍了从XSD架构生成ActionScript值对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可供转化的XSD架构(可能会或可能不会包括其他XSD文件)到ActionScript值对象的定义类型的任何工具?我一直在Google上搜寻了一​​会儿,但似乎无法找到任何工具,我琢磨阉写这样的一个工具将会为我们节省更多的时间,现在不是简单地code。通过我们的手值对象。

另一种可能性,我一直在考虑是使用一个工具,如XMLBeans的改造的模式到Java类中定义的类型,然后将这些类的动作。不过,我已经认识到,大概有一个极大的Java - > AS3转换器在那里,一般consesus似乎是他们的排序工作,即,我不知道该工具是一个不错的选择。

有什么想法?

解决方案

对于Java - > AS代,检查出GAS3从花岗岩数据服务项目:

http://www.graniteds.org /confluence/display/DOC/2.+Gas3+$c$c+Generator

这是什么样的,你可以写你自己也一样,特别是当你利用像蚂蚁的工具,编写自定义任务来处理这件事。其实,我这个工作去年和开源的:

https://github.com/cliffmeyers/Java2As

Are there any tools available for transforming types defined in an xsd schema (may or may not include other xsd files) into ActionScript value objects? I've been googling this for a while but can't seem to find any tools and I'm pondering wether writing such a tool would save us more time right now than to simply code our value objects by hand.

Another possibility I've been considering is using a tool such as XMLBeans to transform the types defined by the schema to Java classes and then converting those classes in ActionScript. However, I've come to realize that there are about a gazillion java -> as3 converters out there and the general consesus seems to be that they sort of work, ie, I have no idea which tool is a good fit.

Any thoughts?

解决方案

For Java -> AS generation, check out GAS3 from the Granite Data Services project:

http://www.graniteds.org/confluence/display/DOC/2.+Gas3+Code+Generator

This is the kind of thing you can write yourself too, especially if you leverage a tool like Ant and write a custom Task to handle it. In fact, I worked on this last year and open-sourced it:

https://github.com/cliffmeyers/Java2As

这篇关于从XSD架构生成ActionScript值对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆