类型扩展与前面的向后兼容策略比起来显得有些冒险。
Type expansion is a little riskier than the previous backward-compatible choices.
动态类型扩展——可以用动态的方式向类和对象加入方法。
Dynamic type extension - methods can be added dynamically to classes and objects.
只有当旧行为继续与旧值共同存在时,类型扩展才是安全的。
As long as the old behavior continues to exist with the old values, then type expansion is safe.
从Play的模型类型扩展,为我提供了一些内置的免费服务。
Extending from Play's Model type gives me a few built-in freebies.
bean目前只提供字体样式的抽象,但为其它样式类型扩展接口比较容易。
The bean only currently provides an abstraction for font styles, but it would be easy to extend the interface for other style types.
在XML模式中,可以使用抽象类或仅使用指定基类型扩展或派生的标记来做到这一点。
In XML schemas you can use abstract classes or just tags specifying extensions or derivations of base types.
您的设计有时可以支配您的选择,例如,以子类型扩展基本类型则更加趋向于面向对象方法。
Your design can sometimes dictate which choice you make; for example, extending base types with subtypes is clearly a more object-oriented approach.
解决表达式问题使将先前存在的类型扩展到新方法成为可能,所有这些都不重新编译现有代码。
Solving the Expression Problem makes it possible to extend preexisting types to new methods and extend preexisting methods to new types, all without recompiling existing code.
对于电网电压调节和潮流模型匹配等许多应用场合,可采用基于节点类型扩展的潮流计算方法。
For many application cases, such as voltage adjustment and power flow matching, methods based on bus-type extended load flow calculation can be effective.
仅在子类型扩展的类有一个可访问的无参数构造方法来初始化该类的状态时,才可以假定子类型有此职责。
The subtype may assume this responsibility only if the class it extends has an accessible no-arg constructor to initialize the class's state.
在DB2“Stinger”中,DB 2监视的对象层次已经通过三种不同的健康指示器类型扩展为4种不同的层次(如图2所示)。
In DB2 V8.2, the object levels that DB2 monitors have been extended to four different object levels (shown in Figure 2) through three different types of health indicators.
用于存储键-值映射的Entry类型扩展了 WeakReference,因此当expungeStaleEntries()要求下一个失效的弱引用时,它得到一个 Entry。
The Entry type, which is used to store the key-value mapping, extends WeakReference, so when expungeStaleEntries() asks for the next expired weak reference, it gets back an Entry.
根据需要完成的工作的类型,对每一项活动进行划分:构建、评估、购买、改写和扩展,等等。
Divide each of these by the type of work to be done: build, evaluate, buy, adapt, and extend, and so on.
这减少了编写和维护模式的工作量,还确保了不会有某个复杂类型被偶然遗漏而不能扩展。
This reduces the effort to write and maintain the schema, as well as ensures that no complex type is accidentally left inextensible.
在这个系列的文章中,感兴趣的类型是基本、扩展、系统、应用程序和委托(用在反射中)。
In this series of articles, the types of interest are the primordial, extension, system, application, and delegation (used in reflection).
您还可以为过程指定参数定义,包括参数名、模式、数据类型及其他扩展属性。
You can also specify parameter definitions, including the parameter name, mode, data type, and other extended properties, for the procedure.
这包括那些从基类型(通过扩展)继承而来的元素。
This includes those elements inherited (through extension) from the base type.
具体约束机制还可针对特定类型提供扩展结构。
Concrete constraint mechanisms can also provide extension constructs that make sense for specific types.
微格式允许用户在信息中混合各种类型的扩展内容,如日历信息、个人联系信息或者图片元数据。
Microformats allow users to mix in information about all sorts of extended concerns, such as calendar information, personal contact information, or picture metadata.
一旦被扩展,除了自身的定义外,这个基类型将继承新扩展的类型的属性。
Once extended, the base type will inherit the properties of the new extended type in addition to its own definition.
注意每种扩展类型的规则,以便它们能正常工作。
Take care to observe the rules for each extension type in order for them to work.
我们该如何扩展该类型系统,从而不必回避它呢?
How can we extend the type system so that we don't have to circumvent it?
您可以使用所有三种类型来扩展物理或逻辑模型中的实体以及概念。
You can use all three types to decorate entities in the physical or logical model, and concepts as well.
EPCIS规范是可扩展的,这使各个行业可以定义自己的事件类型、EPC和事件扩展。
The EPCIS specification is extensible for industries to define their own event types, EPCs, and event extensions.
文档类型和扩展名是用户定义的值,它们应当能够表示新文档类型的意义。
The document type and extension are user-defined values, and they should recommend the new document type.
既然您不可以拥有新操作,唯一可以输入到客户端的新类型是对只返回给客户端的现有类型的扩展。
Since you cannot have new operations, the only new types that can be inputs to the client are extensions to existing types which are only returned to the client.
这个类型的扩展通常被用来确定一个工件可能包含内容的的类型。
Extensions of this type are usually defined to specify the type of content that an artifact may have.
相对于现有主题类型,以扩展或增加定义新主题类型,因此减少了定义和维护新类型所必需的工作。
The new topic types are defined as an extension, or delta, relative to an existing topic type, thereby reducing the work necessary to define and maintain the new type.
在这个目录下的参数用来定义uml数据类型,允许您扩展能与一个UM l属性关联的数据类型。
The parameters in this category are used to define UML data types, allowing you to expand the data types that can be associated with an UML attribute.
SCA在接口类型方面可扩展。
应用推荐