这个树结构反映了编排和反编排所需要的操作嵌套。
This tree structure reflects the nesting of operations required for marshalling and unmarshalling.
详细的编排和反编排实现代码被直接添加到绑定类中。
The detailed marshalling and unmarshalling implementation code gets added directly to the bound classes.
为了处理编排和反编排,JiBX向绑定中包含的类添加了新类和新方法。
To handle marshalling and unmarshalling, JiBX adds new classes and methods to the classes included in the binding.
在这个示例中,我在处理集合的代码生成中引入了一个错误,在项目反编排循环的循环体中,向堆栈添加了一个额外项目。
In this case, I introduced an error to the code generation handling a collection, adding an extra item to the stack in the body of the item unmarshalling loop.
这些类充当运行时的粘合剂,把绑定与实现编排和反编排操作的映射类(在这个示例中,是simple . Customer)的具体方法关联起来。
These classes act as runtime glue to associate a binding with the particular methods of a mapped class (in this case, simple.Customer) that implement the marshalling and unmarshalling operations.
如果绑定要处理接口或不可修改的类,JiBX 转而把必要的编排/反编排代码以 static方法的形式,添加到特殊的助手类(叫作“munge”类)。
For bindings that work with interfaces or unmodifiable classes, JiBX instead adds the necessary marshalling/unmarshalling code to a special helper class (called the "munge" class) as static methods.
如果绑定要处理接口或不可修改的类,JiBX 转而把必要的编排/反编排代码以 static方法的形式,添加到特殊的助手类(叫作“munge”类)。
For bindings that work with interfaces or unmodifiable classes, JiBX instead adds the necessary marshalling/unmarshalling code to a special helper class (called the "munge" class) as static methods.
应用推荐