在从XML构建对象(就是数据编出)时尤其方便。
This is especially convenient for building objects from XML (which is what unmarshalling is all about).
这些差别的核心是对文档进行数据编出时所使用的解析技术。
At the core of these differences is the parsing technology that's used when unmarshalling documents.
但是,一般而言每个绑定有四个方法(两个用于数据编组,两个用于数据编出)。
Four methods per binding (two for marshalling, two for unmarshalling) is about the average, though.
对于任何绑定中包含的每个类,它都添加了适当的数据编组或数据编出代码。
For each class included in any of the bindings it adds the appropriate marshalling or unmarshalling code.
JiBX还包含一个定制数据编组和数据编出方法定义形式的通用扩展挂钩。
JiBX also includes a general extension hook in the form of custom marshal and unmarshal method definitions.
这个比较简单的数据编出代码是JiBX和其它框架之间第二个主要差别的基础。
This simpler unmarshalling code is the basis for the second major difference between JiBX and the other frameworks.
如同上述数据编出示例一样,该示例只是数据编组调用可以使用的几个变体中的一种。
As with the unmarshal example, this is just one of several variations that can be used for the marshal call.
它将内部拉出解析器接口包装在定义各种元素和属性访问方法的数据编出上下文类中。
It wraps an internal pull parser interface in an unmarshalling context class that defines a variety of element and attribute access methods.
将解析器包装在数据编出上下文内,这样就可以用最少的代码定义各种各样的访问方法。
Wrapping the parser within an unmarshalling context allows a wide variety of access methods to be defined with a minimum of code.
因为使用了这个不同的API,所以JiBX能够使用相对简单的代码来处理数据编出。
Because of this different API, JiBX is able to use relatively simple code to handle unmarshalling.
当该标准可用时,JiBX将能够使用该标准,只不过会对数据编出上下文代码作少量更改。
When that standard becomes available, JiBX will be able to use the standard with only minor changes to the unmarshalling context code.
其参数可以是一个复杂的对象(不需要编写串行器(数据编制)或者反串行器(数据编出)的部分)。
The parameter can be a complex object (in parts without programming a Serializabler (Marshalling) or Deserializabler (Unmarshalling)).
一般而言,对于每个包含该类的数据编组或数据编出绑定,都会在被绑定类文件中添加一对方法。
In general, you get a pair of added methods in your bound class files for each marshalling or unmarshalling binding that includes that class.
例如,您可以使用一个绑定数据编出文档,进行更改,然后使用另一个绑定将数据对象编组成输出文档。
You can, for instance, unmarshal a document using one binding, make changes, then marshal the data objects to an output document using a different binding.
这些选项和挂钩使您可以完全控制数据编组和数据编出过程,从而直接使用由JiBX上下文类定义的低级方法。
These let you take over complete control of the marshalling and unmarshalling process, working directly with the low-level methods defined by the JiBX context classes.
这些选项包括:可选值的缺省值、要在数据编组对象前或数据编出对象后调用的方法,以及用于引用对象的标识值。
These include defaults for optional values, methods to be called before marshalling or after unmarshalling objects, and identifier values for referencing objects.
其中后两个类是解决SOAP编码中的许多互操作性问题的关键,这些问题源于类型化数据的不同的数据编入和数据编出。
These latter two classes are the key to navigating around the many interoperability problems in SOAP encoding that stem from different marshalling and unmarshalling of typed data.
这只是几个数据编出调用变体中的一个—在本例中,用于对文件filename .xml中的一个xml文档进行数据编出。
This is just one of several variations of an unmarshal call — in this case to unmarshal an XML document in the file filename.xml.
此时对数据编出上下文编码以使用实现XMLPull接口的解析器,该接口是由拉出解析领域中的一些主要开发人员定义的非正式标准。
Right now the unmarshalling context is coded to use a parser that implements the XMLPull interface, an informal standard defined by some of the leading developers in the area of pull parsing.
此时对数据编出上下文编码以使用实现XMLPull接口的解析器,该接口是由拉出解析领域中的一些主要开发人员定义的非正式标准。
Right now the unmarshalling context is coded to use a parser that implements the XMLPull interface, an informal standard defined by some of the leading developers in the area of pull parsing.
应用推荐