JAXB xjc 的文档说:
-b
指定一个或多个要处理的外部绑定文件。 (每个绑定文件必须有自己的“-b”开关。)外部绑定文件的语法非常灵活。您可能有一个包含多个架构的自定义的绑定文件,或者您可以将自定义分解为多个绑定文件:
<前><代码> xjc schema1.xsd schema2.xsd schema3.xsd -b 绑定123.xjb
xjc schema1.xsd schema2.xsd schema3.xsd
-b 绑定1.xjb -b 绑定2.xjb -b 绑定3.xjb
此外,命令行上架构文件和绑定文件的顺序并不重要。
但是我在哪里可以找到这个“外部绑定文件”的文档?
The documentation of JAXB xjc says:
-b
Specify one or more external binding files to process. (Each binding file must have it's own "-b" switch.) The syntax of the external binding files is extremely flexible. You may have a single binding file that contains customizations for multiple schemas or you can break the customizations into multiple bindings files:
xjc schema1.xsd schema2.xsd schema3.xsd -b bindings123.xjb
xjc schema1.xsd schema2.xsd schema3.xsd
-b bindings1.xjb -b bindings2.xjb -b bindings3.xjb
In addition, the ordering of the schema files and binding files on the command line does not matter.
But where do I find a documentation of this "external binding file"?
发布评论
评论(1)
外部绑定文件记录在 自定义oracle.com 上的 JAXB Bindings 页面
引用:
请参阅还; JAXB 编译器选项
有关外部绑定文件信息的另一个很好的资源是 奥雷利。来自 oreilly 是:
引用:
The external binding file is documented on the Customizing JAXB Bindings page on oracle.com
Quote:
See also; the JAXB Compiler Options
Another good resource for information on the external binding file is oreilly. An example binding file from oreilly is:
Quote: