The Adapter pattern allows otherwise incompatible classes to work together by converting the interface of one class into an interface expected by the clients.
适配器模式通过转换成客户把接口转换成用户需求的接口来讲不兼容的类连接在一起。
The server-side code for the library service consists of a pair of classes, one that actually implements the library handling and another that adapts to the service interface expected by Axis2.
库服务的服务器端代码包含两个类,其中一个实际实现库处理,另一个可适应 Axis2所期望的服务接口。
One of the major benefits of Design by Contract is that it provides explicit information within the interface or class itself about expected behavior.
契约式设计的一个主要优势是,它在接口或类本身当中提供了关于预期行为的显式信息。
An extra capability of the mock object is a Controller Interface that enables the test framework to query whether it was invoked with the expected data values.
模拟对象的一个额外功能是控制器接口,它使测试框架能够查询是否使用预期数据值调用了模拟对象。
Methods in the DAO interface should throw checked exceptions only if the caller can reasonably be expected to handle the exception.
只有在可以合理地预期调用者可以处理异常时,DAO接口中的方法才应该抛出检查过的异常。
This is to be expected, because you are defining the specification in a service interface for how a service user and provider interact.
这在意料之中,因为您为用户与提供商怎样就服务进行交流,在服务接口中定义了规范。
Read the form definition that is used to dynamically create widgets in order to create the expected user interface.
读取用于动态生成小部件的表单信息并创建预期的用户界面。
The tests end up defining the service's expected interface.
测试将最终定义服务的期望接口。
The key to a successful search is to match the sophistication and complexity of the search interface to the expected user groups.
成功搜索的关键在于使搜索界面的复杂性与预期的用户群相符。
This is to be expected despite the fact that there have been numerous complaints about the new interface.
尽管这个新界面遭到很多批评,但该界面仍然是很受期待。
Figure 23 shows the business objects expected in the Web service interface.
图23显示了该Web服务接口中预期的业务对象。
This virtual interface would consist of the expected interface, including a virtual address space representing the device (such as shadow PCI) and virtual interrupt.
这个虚拟接口包含预期的接口,包括表示设备(如shadowPCI)的虚拟地址空间和虚拟中断。
WebGL, though, is a very low-level interface many programmers can't be expected to master, especially in the sometimes lightweight world of casual online gaming.
尽管WebGL是非常底层的操作界面,程序员可能并不太乐于去掌握它,尤其是对于那些轻量级休闲网络游戏的开发者来说。
Provides an interface that enforces standardized expected results (for example, "inconclusive," "pass," "fail," "error") during execution of scripts.
提供了这样一种界面,它可以在执行脚本的过程中,使预期结果标准化(比如“没有决定的”、“通过”、“失败”、“错误”)。
The chameleon-like user-interface surprised many, while others had long expected the development.
当人们期待了很长时间时,这款用户界面手机的突然问世,带给大家一个很大的惊喜。
If you are going to test against an interface other than the UI, it is important to understand what formats of data are expected at that interface.
如果你将测试一个接口而不是一个用户接口,理解这个接口所规定的数据格式是很重要的。
The overall interface is dull and certain expected features, like showing a message has been received, are missing.
微信的整体界面较为乏味,并且缺乏一些应有的功能,比如显示信息已被对方获取的功能。
As expected, the program's interface does not stand out of the crowd while keeping things tidy and well-organized.
正如预期的那样,程序的界面不站出来的人群,同时保持整洁的事情,并精心组织。
Class does not support Automation or does not support expected interface.
类不支持自动化或不支持所需的接口。
Stress transfer between the polyethylene insert and the interface between cement and bone would be expected to be reduced, thus reducing the chances of loosening fixation of cement to bone.
从聚乙烯垫片与骨骨水泥界面间的应力传导也有望降低,从而降低了骨水泥和骨之间的固定的松动几率。
It keeps a simple and clean interface, with all the tools expected.
它拥有简洁的界面,和所有预想的工具。
This allows the member to accept any type that implements the interface or be used where a type that implements the interface is expected.
这样,该成员便可接受实现该接口的任何类型,或在需要实现该接口的类型时能够使用。
If your design includes empty interfaces that types are expected to implement, you are most likely using an interface as a marker, or a way of identifying a group of types.
如果你的设计包含一个空的接口,并且希望一些类型实现这个接口,你很可能希望使用这个接口作为一个标记来标示一组类型。
To ensure that callback events originate from the expected user interface (UI), you can validate callbacks.
为确认回呼事件是来自预期的使用者介面(UI),您可以验证回呼。
If your design includes empty interfaces that types are expected to implement, you are probably using an interface as a marker or a way to identify a group of types.
如果您的设计中包含类型需要实现的空接口,可以将接口作为标记或者作为标识一组类型的手段使用。
Run-time error '430':Class does not support Automation or does not support expected interface.
执行期间错误'430':类别不支援Automation或不支援预期的介面。
Run-time error '430':Class does not support Automation or does not support expected interface.
执行期间错误'430':类别不支援Automation或不支援预期的介面。
应用推荐