所有者类型是一个所有者对象参数化的对象的类型。
Ownership types are types of objects that are parameterized by an owner object.
清单1实例化一个默认的树查看器;您也可以定制树,并用树对象作为参数,用构造函数实例化树查看器。
Listing 1 instantiates a default tree viewer; you can also customize the tree and instantiate the tree viewer by using a constructor with a tree object as the parameter.
第3步:实例化参数对象。
再次重新运行ServiceClassTest以达到最终的肯定结果:在模拟对象实例化期间提供的参数造成了所有差别。
Rerun the ServiceClassTest once again to achieve the final positive result: the parameters you supplied during mock object instantiation made all the difference.
创建了Zend _ Rest_Client对象的一个实例,在初始化操作中确定WikipediaAPI服务端点作为构造函数参数。
An instance of a Zend_Rest_Client object is created and initialized with the Wikipedia API service endpoint as constructor argument.
最后,这个数据被写到Context对象(它的write方法基于映射生成的(key,value)对的类型进行参数化)。
Finally, this data is written to the Context object (whose write method is parameterized based on the types of the (key, value) pair that are produced by map).
将请求压缩为对象,使您能用不同的请求,队列或日志请求,参数化客户机,并支持可撤销的操作。
Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
当参数对象实例化完成之后,您就准备好了调用REST服务。
Once the parameters object is instantiated, you are ready to invoke the REST service.
调用组件将实现这些接口的对象(故意不称之为值对象)实例化,并在这两个方法调用中将该对象用作方法参数。
The calling component instantiates an object — deliberately not called a value object — that implements these interfaces and USES this object as a method parameter in both method calls.
不带参数的构造器确保可以根据序列化状态远程构造对象。
A non-argument constructor ensures the object can be constructed remotely from a serialized state.
希望调用的MDB方法采用反序列化之后的对象作为参数。
The MDB method that you wish to invoke takes the deserialized object as a parameter.
当作为构造函数参数时,这些可变或者不可变的变量会在一个对象被实例化的时候被初始化。
When used as constructor parameters, the mutable or immutable variables specified will be initialized when an object is instantiated.
相比于面向对象语言,函数式语言在一个较粗粒度级别上实现重用,使用参数化行为提取常用的实现功能。
Functional languages achieve reuse at a coarser-grained level than object-oriented languages, extracting common machinery with parameterized behavior.
注意:是的,这些方法名大写首字母;如果我非得猜的话,我会说它可能是因为他们是工厂方法——它们初始化并返回带特定参数的Field对象。
Note: Yes, these method names are capitalized; if I had to guess, I'd say it's probably because they're factory methods - they instantiate and return Field objects with particular parameters.
我们也利用了Groovy所支持的非常方便的参数命名来实例化aopdetails对象。
We also take advantage of Groovy's convenient parameter naming support to instantiate our AopDetails Object.
您现在必须找到一种方法把参数提供给模拟对象实例化过程以达到同样的效果,这就是使用RMock 的原因。
You're now forced to find a way of providing arguments to the mock object instantiation process to achieve the same effect, which is precisely why you use RMock.
重要的是,请注意实例化dbcontroller类对象时,示例servlet将数据库用户ID和密码作为参数进行传递。
It is important to note that the sample servlet passes the database user ID and password as parameters when the DBController class object is instantiated.
UDDI请求类使Python客户机具有为实例化的请求对象设置请求参数的能力,请求参数由uddi基对象组成。
They provide a Python client the ability to set request parameters consisting of UDDI base objects for the instantiated request object.
实例化Collaborator对象的惟一方法是提供两个简单参数。
The only way of instantiating the Collaborator object is to provide two simple arguments.
此servlet实例化一个UserDataBean,然后从请求对象读取所有的参数并在用户对象中使用set方法调用设置这个 UserDataBean,如下所示。
The servlet instantiates a UserDataBean, then it reads all the parameters from the request object and sets it in the user object, using the set methods calls as shown below.
上面代码中的格式化字符串 %1$tB告诉程序使用第一个参数并打印date对象的完整月名。
The %1$tB formatting string in the code above tells the program to use the first argument and print out the full month name for the date object.
如果您要使用新的ASP.NET个性化功能,则可以使用ProfileParameter从配置文件对象中检索参数的值。
A ProfileParameter can be used to retrieve a parameter's value from a profile object if you're using the new ASP.NET personalization features.
所有Dictionary对象都已经用必需的参数初始化过了。
You know that any Dictionary object will have been initialized with the required arguments.
在包装对象初始化阶段传入的“qname”参数是所请求的属性的XML限定名称。
The "qname" parameter passed in on initialization of the wrapper object is the XML Qualified name of the property that is being requested.
如果对象参数src属于简单类型,那么第二步,序列化对象的值,就很简单,只需调用src .toString方法,然后把它写出来就行了。
If the object argument, SRC, is a simple type, then the second step, serializing the value of the object, is a simple matter of calling the src.toString method and writing that out.
Command模式是非常有名的,它把一些独特的活动封装起来成为可重用的对象,对于每次请求,这些对象的行为都可以被参数化。
The command pattern is distinguished by the encapsulation of distinct activities into reusable objects whose behavior can be parameterized per request.
就php来说,这个对象初始化器的参数是path、host和port。
In the case of PHP, the arguments to this object initializer are path, host and port.
下一步是实例化参数对象,该对象包含。
The next step is to instantiate the parameters object. This object can contain the following.
目前参数化设计约束处理技术操作的直接对象是基本图形元素和约束,这在复杂零件参数化时会遇到困难。
The existing parametric design softwares are not safficient for processing the complicated parts We present a new method based on graphics decomposition to solve the problem.
目前参数化设计约束处理技术操作的直接对象是基本图形元素和约束,这在复杂零件参数化时会遇到困难。
The existing parametric design softwares are not safficient for processing the complicated parts We present a new method based on graphics decomposition to solve the problem.
应用推荐