To draw an object calling itself, you draw a message as you would normally, but instead of connecting it to another object, you connect the message back to the object itself.
为了要画一个调用本身的对象,如你平时所作的,画一条消息,但是不是连接它到另外的一个对象,而是你把消息连接回对象本身。
This was already cast as the correct class of product object, so you do not need to cast it yourself.
这时产品对象已经被转换成为了正确的类,所以您不需要自己再次的转换它。
Instead you can define some as an object (instead of a class) and it becomes a singleton instance of the class.
相反您可以定义一个对象(而不是类)并且它将成为类的一个单例实例。
You can then convert directly to this object to a JSON string and add it to the request as a parameter.
随后可以直接将此对象转换为一个JSON字符串并将其作为参数添加到请求中。
It encapsulates a request (a method call on some object) as an object, which lets you parameterise clients with different requests, queue or log requests, and support un-doable operations.
它将请求(某个对象上的方法调用)作为对象封装,这使您能够通过不同的请求(队列或日志请求)确定客户机的参数并支持无法执行的操作。
Based on what is in the file, it creates a business object that you can use as input or output to the service operation.
向导基于文件的内容,创建可以用作服务操作导入或导出的业务对象。
Instead, it turned out to be a simple Weather object, and we had to code around this behavior, as you can see in the finished code for the sample PHP client.
然而,它被转换成了一个简单的Weather对象,我们必须根据这种行为进行编码,就像您在最终的示例PHP客户机代码中看到的那样。
This is just a simple XML document, but Abdera enables you to represent it as an object (see Listing 2).
这只是一个简单的XML文档,但是Abdera使您能够将它表示为一个对象(如清单2所示)。
So, for example, by specifying the return object as a type "json", jQuery will automatically convert the response String from a server into a json object, allowing you to reference it immediately.
所以,例如通过将返回对象指定为“json ”类型,jQuery将能自动将来自服务器的响应字符串转换成json对象,使您能够立即引用它。
When you expose an object tree as a CherryPy URL space, the assumption goes the other way: Unless you explicitly label a method as exposed, it isn't served to outside users.
当您将一个对象树暴露为一个CherryPyURL空间时,假设是另一种情形:除非您显性地将方法标记为暴露,否则它不会为外面的用户提供服务。
Here you simply check the entry as an object, but what about after you send it off as an actual feed?
此处您只是把条目作为对象进行检查,但是把它作为实际的feed发送之后会怎样呢?
Once you have created a Database object, you can use it to access data, as we'll see in the next section.
一旦您创建了Database对象,您就可以使用它来访问数据,如我们在下一章可以看到的一样。
As indicated by the "mandatory initialization" line in Listing 5, you have to initialize the global Google object before using it.
正如清单5中的“mandatoryinitialization”代码行所示,在使用前,必须初始化这个全局的google对象。
By loading content in a hidden iframe object and processing it in the background, you have more or less the same possibilities as with the XHR solution.
通过将内容载入一个隐藏的iframe对象并在后台加以处理,即可获得与使用XHR解决方案时几乎相同的可能性。
And keep that with you, because it's going to be important in what follows we can derive three things: the radius, the period of rotation and the speed of the object as I twirl it around.
从这条曲线,记住这条曲线,So, from, that, curve—,因为接下来它会,很重要,从中你们推导出3样:,半径,自转周期,已经我旋转的,物体的速度。
In this producer file, you first load the play (as detailed in the XML data file myplay.xml) into memory and declare it to be an XML object.
在这个制作器文件中,您首先将剧本(即xml数据文件myplay . xml)加载到内存,并将它声明为一个xml对象。
The entry object represents an entry element just as you would see it in an Atom feed.
entry对象代表的是entry元素,就像我们在Atomfeed中看到的一样。
If it helps you to visualize your ego self by identifying it as a symbol or as an object please do so.
如果用一个符号或一个物体来代表你的小我意识,对你形象化你的小我意识有帮助,请那样做吧。
It supports polymorphism very well as you merely have records in the appropriate tables for each role that an object might have.
它能够很好地支持多态性,对于对象可能有的每个角色,只需要在相应的表中保存记录。
When you have a container object in real life, such as a bag, you often want to look at all the items it contains.
当您在现实生活中有一个容器对象(比如书包)时,您通常想要看它所包含的东西。
WSRR also lets you create user code and embed it into the WSRR profile as a plug-in, so that it is executed during processing for every object loaded or modified in WSRR.
WSRR还允许您创建用户代码,并将其作为插件嵌入到WSRR配置文件中,以便在处理过程中对WSRR中加载或修改的每个对象执行它。
You can create a new test object map by either basing it on an existing map or adding objects as required.
您可以通过依据现有的地图或按照需要添加对象来创建新的测试对象地图。
Stand as close to the object as possible, positioning it between your knees as you squat.
先站到尽量靠近物品的位置,在你蹲下时物品要在两膝中间。
As you saw in Listing 1, it should be pretty easy to create this object and use it, right?
从清单1可以看出,创建和使用这个对象非常简单,不是吗?
In other words, you should be able to invoke the component as though it were a local object.
换句话说,您应该能够像调用本地对象一样调用组件。
As you can see, it is pretty easy to get the properties of a test object when you know the name of the property you are looking for.
正如您看到的,当知道所需要属性的名称时,您可以很容易的获得测试对象的属性。
It is also important that you understand basic object-oriented paradigms, such as inheritance, class, interface, and so on.
而且,理解基本的面向对象概念(如继承、类、接口等)也很重要。
It can be very helpful to model XML data as objects, and you can easily use Python's object-oriented constructs to do just that.
它对于把XML数据模型化为对象也有很大的帮助,而且对您来说,使用Python的面向对象的结构做到这一点并不困难。
And finally — drum roll, please — you can make the actual call to the service, just as the service defines it (except for that ToppingCallback object, which is the subject of the next section).
并且在最后——请击鼓——您可以对服务进行实际调用,就像服务定义它一样(除了ToppingCallback对象以外,该对象是下一部分的主题)。
You can still enforce a attribute value using a metaclass, you just need to set it on the class object being instantiated rather than as an attribute of the metaclass.
您仍然可以使用元类来增强属性,只需在被实例化的类对象上进行设置,而不是像元类的属性那样。
应用推荐