The model of this application is contained within one model object, shown in Listing 1.
该应用程序的模型包含在一个模型对象中,如清单1所示。
Listing 3 shows the mock device object code.
清单3给出模拟设备对象的代码。
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)。
The access to the aggregate object is shown in bold in Listing 9.
对聚集对象的访问如清单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对象。
The final vehicle metadata object might look like Listing 3.
最终的车辆元数据对象看上去就会像清单3 一样。
In this case, your earlier metadata object will look like Listing 6.
在这种情况下,先前的元数据对象将变为清单6中所示的代码。
You can create the expected object as shown in Listing 9.
您可以创建如列表9所示的预期对象。
Creating the entry is just like working with any other object (see Listing 3).
创建条目就像操作任意其他对象(如清单3所示)。
Create your Shared memory object as shown in Listing 2.
像清单2这样创建共享内存对象。
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 所示。
Next, create a policy to protect against users being able to remove this object, as shown in Listing 22.
下一步,创建一个防止用户删除对象的策略,如清单22所示。
The code to create this object is shown in Listing 14.
创建此对象的代码如清单14所示。
This object is shown in Listing 2.
该对象如 清单2 所示。
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所示。
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 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和一个表示选项的映射键值对。
The Detail View definition file for the Service object is shown in Listing 7.
Service对象的详细信息视图定义文件显示在清单7 中。
Listing 6: Storing object data.
清单6:存储对象数据。
After submitting the form data, the function returns a reference to the XHR object (see Listing 8).
在提交表单数据后,此函数返回一个对xhr对象的引用(见清单8)。
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 Employee object (Listing 1) is nice and simple and only USES two annotations.
Employee对象(清单1)精确而简单,并且只使用了两处注释。
These effects are applied to the image through the Animation object, shown in Listing 6.
这些特效通过Animation对象应用于图像,如清单6所示。
The response object in Listing 6 hides the raw HTTP response by parsing the JSON accordingly.
通过解析相应的JSON,清单6中的response对象将隐藏原始HTTP应答。
应用推荐