清单3:检查类的继承结构。
但通常,将继承结构和自省一起使用会使灵活性更佳。
But often, using inheritance structures together with introspection allows an even greater flexibility.
这种面向对象工具支持使得系统的继承结构清晰可见。
Such object-oriented tool support makes the inheritance structure of a system explicit.
数据以对象的形式存储,组织方式为单层的继承结构并放在bucket中。
Data is stored as objects organized in a flat hierarchy inside buckets.
wxPython对继承结构的关注程度高于大多数其它工具箱,而且它使用“事件”,而不是回调。
WxPython has a greater emphasis on inheritance structure than do most of the other toolkits, and it USES "events" rather than callbacks.
针对面向对象的数据库(OODB)的概括继承结构提出一种新的查询途径,它建立在一种对象表示的基础上。
In this paper, a new query method which is based on generalization hierarchy in Object Oriented Database (OODB) is proposed.
另外一个例子,进程继承结构作为一个角色,让我们看看在进程继承结构开始的时候,Unix是怎么初始化他们的。
As another example of where the process hierarchy plays a role, let us look at how UNIX initializes itself when it is started.
从一个已存在系统中发现整个的继承树结构是相当有用的,因为它能向您揭露在树中什么是顶级类以及什么是子类。
Discovering the entire inheritance tree structure from an existing system is particularly useful, because it helps you uncover what the top-level class is and what subclasses are in the tree.
今天,UML6还支持上面提到的四个分层类型:结构的、行为的、包,和继承。
UML today 6 also supports the four hierarchy types noted above: structural, behavioral, package, and inheritance.
就算多重接口继承允许我们构造对应的接口集,但是实现这些接口的类不能直接遵循该结构。
Granted, multiple interface inheritance would allow us to construct a corresponding set of interfaces, but the classes implementing these interfaces couldn't follow the structure directly.
位置层次结构的一个强大特性是属性继承,这个特性可以显著简化产品信息的编写和维护。
A powerful feature in the context of location hierarchies is attribute inheritance, which can significantly reduce the authoring and maintenance efforts for products.
XMLSchema对类型继承提供了广泛的支持,允许重用以前定义的结构。
XML Schema includes extensive support for type inheritance, enabling the reuse of previously defined structures.
通过分解聚集和继承层次结构,您简化了模型,在定义子系统时使其更易分析。
By collapsing aggregation and inheritance hierarchies, you simplify your model, making it easier to analyze when you define subsystems.
这还不利于域类的设计,因为这个实用类现在必须位于对象层次结构的顶层,不允许您使用继承来整合常见行为。
It also hurts the design of your domain classes because this utility class must now sit at the top of your object hierarchy, not allowing you to use inheritance to consolidate common behavior.
在这种情况下,利用基于包和继承层次结构的签名模式的全局方面可以做得更好。
A global aspect utilizing a signature pattern based on packages and the inheritance hierarchy would serve you better in this situation.
那是因为实际世界中的对象不会刚好适合一个简单的单继承层次结构。
That's because objects in the real world just don't fit into a simple single inheritance hierarchy.
为了标识服务者,继承和聚集层次结构常常可以被简化。
For the sake of identifying servers, inheritance and aggregation hierarchies can often be simplified.
结构化数据类型展示了一个称为继承的行为。
Structured data types exhibit a behavior known as inheritance.
由于文档和其他类别可以继承父类别的标记,从而产生一个完整的层次结构。
Both documents and other categories can be tagged with a parent category, resulting in a complete hierarchy.
但存在继承性:sdo理解类型间的继承层次结构,给定属性要求给定类型,可指派子类型。
There is inheritance, though: SDO understands an inheritance hierarchy among types, and given a property expecting a given type, you can assign a subtype.
如果需要,多重继承支持更丰富的继承层次结构。
Multiple inheritance supports a much richer inheritance hierarchy for the problems that require it.
简化继承和聚集层次结构。
在清单4的顶部,可以看到一个嵌套的模块定义,但是没有基继承层次结构。
At the top of Listing 4, you see a nested module definition. A module has method definitions, but no base inheritance hierarchy.
由于在成员项所包含的内容出现在较大型的结构之前,成员项必须是有效对象,所以最简单的递归继承方法不起作用。
Since member items need to be valid objects prior to their inclusion in larger structures, the simplest recursive descent approach would not work.
图1显示了它们的继承层次结构。
这些窗口小部件被安排在继承层次结构中。
我们可以看到对象继承层次结构和对象组合层次结构。
We find object inheritance hierarchies and object composition hierarchies.
为了理解这其中的原因,我们需要稍微靠近一点看一看,到底是需要用什么来支持方法和域的添加操作(甚至更深入一些,修改继承的层次结构)。
To understand why, we need to look a little closer as to what exactly is necessary to support adding methods and fields (and even more advanced, changing the inheritance hierarchy).
假设您有一个这样的转换配置继承性结构。
Suppose you have a transformation configuration inheritance structure like this.
假设您有一个这样的转换配置继承性结构。
Suppose you have a transformation configuration inheritance structure like this.
应用推荐