JiBX also includes a general extension hook in the form of custom marshal and unmarshal method definitions.
JiBX还包含一个定制数据编组和数据编出方法定义形式的通用扩展挂钩。
On the General tab of the Properties pane, add $field[@name='CustomerID'] as a custom XPath expression as shown in Figure 25.
在 Properties 窗格的 General 选项卡上,将 $field[@name='CustomerID'] 作为自定义 XPath 表达式添加,如图 25 中所示。
The basic approach here is to construct a custom class at runtime that will wrap access to the target classes (previously reached by reflection) in a way that can be used by your general-purpose code.
这里的基本方法是,在运行时,以一种可以被一般性代码使用的方式,构建一个自定义的类,其中将包装对目标类的访问(以前是通过反射达到的)。
应用推荐