例如,您可以使用一个绑定数据编出文档,进行更改,然后使用另一个绑定将数据对象编组成输出文档。
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.
要数据编组的对象必须是类的一个实例,该类是用绑定中的全局映射定义的。
The object to be marshalled must be an instance of a class that's defined with a global mapping in the binding.
然后必须将数据库内容读取到对象模型中,并请求底层框架将其内部的结构编组为xml格式。
You would then have to read the contents of the database into your object model and then request the underlying framework to Marshall its internal structure to an XML format.
这些选项包括:可选值的缺省值、要在数据编组对象前或数据编出对象后调用的方法,以及用于引用对象的标识值。
These include defaults for optional values, methods to be called before marshalling or after unmarshalling objects, and identifier values for referencing objects.
编组和解组对象和XML
清单7中的代码将DojoList(列表对象)的实例编组成JSON。
The code in Listing 7 marshals the instance of DojoList (list object) into JSON.
首先,您获得一个指向simplebean . xml的对象,然后,您使用编组器对象(通过Spring的依赖项注入实例化)调用marshal方法。
Then, you use the marshaller object (which was instantiated by Spring's dependency injection) to invoke the marshal method. This method requires two parameters.
我们会提供DLL来实现一个COM对象且处理打包和解包(同样称呼为编组和反编组)。
We will provide a DLL that implements a COM object and takes care of this packing and unpacking (also called marshalling and unmarshalling).
我们会提供DLL来实现一个COM对象且处理打包和解包(同样称呼为编组和反编组)。
We will provide a DLL that implements a COM object and takes care of this packing and unpacking (also called marshalling and unmarshalling).
应用推荐