创建jaxb上下文。
JAXB does have some weaknesses, however.
然而,JAXB确实也有一些缺点。
Listing 5 illustrates the magic of JAXB.
清单5展示了JAXB的神奇。
Now, look at the setup required for JAXB.
现在,来看一下JAXB所需的设置。
As with JAXB, the binding USES interfaces.
与使用JAXB一样,绑定使用接口。
Listing 2 illustrates a full JAXB program.
清单2展示了一个完整的jaxb程序。
JAXB promises mappings for all XML schemas.
JAXB可保证所有XML模式的映射。
Again, JAXB makes the marshalling process easy.
JAXB也使编组过程更容易了。
Other libraries: JAXB 2, JSTL, commons-logging.
其他程序库:JAXB2、JSTL、commons - logging。
To ease and streamline this mapping process, use JAXB.
可以使用 JAXB简化这个映射过程。
If you want better support for XML schema through JAXB.
如果您希望通过JAXB更好地支持XML模式。
JAX-WS is built around its tight integration with JAXB 2.0.
JAX - WS构建在它与JAXB 2.0的紧密集成之上。
You can just run ws.bat to generate the required JAXB files.
您可以运行ws . bat来生成所需的JAXB文件。
The JAXB customizations also follow the rules of XML schema.
JAXB的自定义同样遵循 XMLSchema的规则。
Additionally, you don't need much XML knowledge at all to use JAXB.
此外,使用JAXB基本不需要掌握任何XML知识。
Notice how Listing 4 reproduces the data in Listing 2 thanks to JAXB.
注意清单4如何利用JAXB重新生成清单2中的数据。
At runtime, JAXB libraries are used in marshalling and unmarshalling.
在运行时,使用jaxb库进行编组和反编组。
In the context of JAXB, let's consider the schema shown in Figure 10.
我们在JAXB的上下文中考虑一下图10所示的模式。
Specifically, you'll learn how JAXB scores in the round-tripping arena.
具体来说,您将了解JAXB如何在往返的舞台上取得成功。
JAXB libraries are then used in the process of marshalling and unmarshalling.
于是就可以在编组和解组的过程中使用jaxb库。
Fortunately, you can do this several ways, and the one you'll look at is JAXB.
幸运的是,您可以使用好几种方法来实现这一点,我们这里就将介绍其中一种:JAXB。
Now you can instruct JAXB to spit the in-memory representation back out to XML.
现在可以要求JAXB把内存中的表示再返回到XML。
For those cases where you cannot change the schema, JAXB provides another solution.
对于那些无法更改架构的情况,JAXB提供了另一种解决方案。
These interfaces make JAXB-generated code fairly easy to use with existing documents.
这些接口使jaxb生成的代码可以相当容易地与现有文档一起使用。
Now I'll briefly go through them and give you a close look at the JAXB representation.
现在我将简要浏览一遍并深入探讨JAXB表示形式。
Unlike JAXB, there is no real need of providing annotations for your data binding needs.
与jaxb不同的是,无需提供注释便可满足数据绑定需求。
JAXB supports both generating code from schemas, as in this case, and starting from code.
JAXB支持从模式中生成代码(本例就属于此例),也支持从代码中生成。
JAXB is still immature — this is still the first major release of a fairly new technology.
JAXB仍然不够成熟,仍然是一种非常新的技术的较早主要版本。
JAXB has complete support for XML schema and better performance (more on that in a moment).
JAXB完全支持XML模式,而且性能更好(更多信息见下文)。
Listing 21 shows how to make this instance known to the JAXB context by creating the methods.
清单21展示了如何通过创建该方法将这个实例公布到jaxb上下文。
应用推荐