创建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一样,绑定使用接口。
Get the JAXB context for your application.
获得应用程序的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模式。
Finally, I assume that you have JAXB set up and running.
最后,我假设您已经安装并运行了JAXB。
JAX-WS is built around its tight integration with JAXB 2.0.
JAX - WS构建在它与JAXB 2.0的紧密集成之上。
The JAXB customizations also follow the rules of XML schema.
JAXB的自定义同样遵循 XMLSchema的规则。
In the long run, this should make it more adaptable than JAXB.
从长远来看,这将使它的适应性比JAXB更强。
Additionally, you don't need much XML knowledge at all to use JAXB.
此外,使用JAXB基本不需要掌握任何XML知识。
Generating code from a Schema description is very simple with JAXB.
用JAXB根据Schema描述生成代码非常简单。
JAXB is a technology from Sun that provides some basic capabilities.
JAXB是来自Sun的技术,提供一些基本能力。
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所示的模式。
Where you need to work with a data binding technology other than JAXB.
需要使用 JAXB之外的数据绑定技术。
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生成的代码可以相当容易地与现有文档一起使用。
Unlike JAXB, there is no real need of providing annotations for your data binding needs.
与jaxb不同的是,无需提供注释便可满足数据绑定需求。
应用推荐