The value object in Listing 2 looks almost identical to our remote interface, but it's actually a concrete class.
清单2中的值对象看起来和我们的远程接口几乎相同,但它实际上是具体类。
Let's have a look at what would happen if we converted the above XML document into a JSON object (see Listing 2).
让我们来看一看如果把以上XML文档转换为JSON对象会发生什么情况(参见清单2)。
Listing 9 shows this type of wrapper object.
清单9显示了这类包装器对象。
In this case, you want to request the XML string that represents the knowledge base, and then use that string to create an XML object, as in Listing 10.
在这个示例中,希望请求一个代表知识库的xml字符串,然后使用这个字符串创建一个XML对象,见清单10。
Otherwise, by default, PHP treats the element as an object, as Listing 10 demonstrates.
否则,默认情况下php将元素看作对象,如清单10所示。
Listing 1 illustrates a JSON object that describes a customer.
清单1展示了一个描述客户的JSON对象。
Then, the XML from Listing 1 is loaded into an object for further processing.
然后,清单1 中的XML被加载到一个对象中进行进一步的处理。
The last step is to enforce the policy on the object, as shown in Listing 12.
最后一步是将策略应用到对象上,如清单12 所示。
The last step is to enforce the policy on the object, as shown in Listing 23.
最后一步是将策略应用到对象上,如清单23 所示。
All you have to do to create this object is invoke the code in Listing 8.
要创建这个对象,只需调用清单8中的代码。
Listing 7 declares an object using JSON syntax and shows how it can be accessed.
清单7使用JSON语法声明了一个对象,并演示了如何访问这个对象。
Next, create a policy to protect against users being able to remove this object, as shown in Listing 22.
下一步,创建一个防止用户删除对象的策略,如清单22所示。
For example, you can get the same name and phone Numbers from a JSON data source that has been parsed into an object (see Listing 4).
比如说,您可以从已解析为对象的JSON数据源中获得相同的姓名和电话号码,如清单4所示。
Listing 8 defines the API for this object.
清单8定义这个对象的API。
This object parses the passed WSIL inspection document and allows for the retrieval of an WSIL document object, as shown in Listing 1.
这个对象分析传递进来的WSIL检查文档并允许检索WSIL文档对象,如清单1所示。
Listing 2 shows the API for the object manager.
清单2给出对象管理器的API。
This is a DOM object representing the XML document seen in Listing 2.
这是一个DOM对象,表示清单2中的XML文档。
The function returns a handle that can be used to access the object as shown in Listing 1.
该函数返回句柄,用以访问清单 1 所示的对象。
Listing 3 shows how this can be achieved, using the locale object locale from Listing 2.
清单3说明了如何使用清单2中的locale对象locale完成此项工作。
The onpload database can be found in Object Explorer, under the listing of databases available in the connection created to IDS.
onpload数据库可以在ObjectExplorer中找到,位于为ids创建的连接中可用的数据库清单下。
The object (Listing 2) takes an ID of an element on the page, a URL of a Web server, and a map of options.
此对象(清单2)接受页面上一个元素的ID、Web服务器的一个URL和一个表示选项的映射键值对。
After submitting the form data, the function returns a reference to the XHR object (see Listing 8).
在提交表单数据后,此函数返回一个对xhr对象的引用(见清单8)。
You access database metadata in JDBC by calling the appropriate method from the DatabaseMetaData object, as shown in Listing 3.
通过调用DatabaseMetaData对象中的适当方法在JDBC中访问数据库元数据,见清单 3。
You'll start by creating the policy object (see Listing 1) and the sub-components as required.
首先要创建policy对象(参见清单1)和需要的子组件。
This is just a simple XML document, but Abdera enables you to represent it as an object (see Listing 2).
这只是一个简单的XML文档,但是Abdera使您能够将它表示为一个对象(如清单2所示)。
The response object in Listing 6 hides the raw HTTP response by parsing the JSON accordingly.
通过解析相应的JSON,清单6中的response对象将隐藏原始HTTP应答。
You see the SQL0440N error message from Listing 2 for object TEST.v2.
您会在清单 a 中看到 TEST.v2对象的SQL0440N错误消息。
Listing 1. Home interfaces for object tables.
清单1.对象表的Home接口。
The final step is to update the LoginAction to retrieve the privileges of each user from the database at login-time, and assign them to the user object. Listing 16 contains the updated code.
最后一个步骤是更新LoginAction以在登录时从数据库获取每个用户的特权,并将它们分配给用户对象。
Listing 12. Create an HttpGet object.
清单12.创建HttpGet对象。
应用推荐