开始之前,需要一个类来表示表格中的单元格,如清单3 的示
To start, you need a class representing cells in the table, as shown in Listing 3
在一个类中表示对象后,接着还需要一个类来管理该对象。
Once you have the object represented in a class, you next need a class to manage it.
例如,一个限制可能不允许多重继承,或者是它可能需要一个类必须具备一个特殊的属性类型。
For example, a constraint may disallow multiple inheritance, or it may require that a class must have a particular type of attribute. This means that.
ifthisisso,HTML客户端表单可能用移动数据更加有效,尽管HTML表单需要一个类asp的编程模型。
If this is so, HTML client forms might be more effective in terms of moving data. HTML forms, though, require an ASP-like programming model.
为了保护这个表单,我们需要使用一个工具类来创建策略文档并签名。
With the form taken care of, we need a utility class to create and sign policy documents.
所以,为了访问任何一个类,都需要以名称空间加以限定。
So, to access any of the classes, you would need to qualify it with the namespace.
不像扩展,您不需要直接创建一个插件类对象,但是您要使用组件(它所附加的)来注册您的插件。
Unlike extensions, you will not create an object of a plug-in class directly, but rather you will register your plug-in with the component it attaches to.
current _ card方法的值就是要呈现的值,为了呈现这个值,需要一个视图类。
The value of the current_card method is what you want to render, and to do that, you need a view class.
您需要的最后一个类是UpdateTimer,它使用游戏服务将面板位置更新为最新值。
The last class you need is the UpdateTimer, which uses the game service to update the board positions with their latest values.
要让一个类可以通过管理工具进行访问,我们需要为其创建一个admin子类。
To make a class accessible through the admin tool, create an admin subclass to it.
要使用 Objective-C创建一个类 “Sample”,您需要创建一个名为 Sample.h 的头文件(清单5)。
To create a class called "Sample" in Objective-C, you need to create an header file named Sample.h (Listing 5).
为了在一个类中创建一个 C++友函数,您需要在一个UML 类的内部创建一个 UML操作,并且将 cpp_operation套用在该 UML 操作上面。
To generate a C++ friend function that is a friend of a class, you need to create a UML operation within a UML Class and apply the cpp_operation stereotype on the UML operation.
接下来,您需要向类添加一个关键字,因为您的扩展,只会处理那些有一个已定义关键字的类。
Next, you need to add a keyword to the class, because your extension will only work on classes that have a keyword defined.
首先,在我们可以在本地使用一个WSDL文件之前,需要先将它转换成一个代理类。
First, a WSDL file needs to be converted into a proxy class before we can work with it locally.
例如,不像一个类转型异常,空指针异常不给出它所需要的内容的任何信息,只有一个空指针。
Unlike, for example, a class-cast exception, a null-pointer exception says nothing about what was expected instead of the null pointer.
在当前这一步中,我们只需要表明顾客类具有一个叫做地址的属性就足够了。
It is enough at this point to only specify that a Customer class has an address attribute.
对于您所创建的每一个构造型,您必须对包和其他所有需要的元类扩展添加一个元类。
For every stereotype that you create, you must add a metaclass extension to the package in addition to any other desired metaclass extensions.
如果您产生了一个元类联合或者一个固定模型联合,您需要为这个固定模式终端产生工具或者形状。
If you generate a metaclass association or a stereotype association, you need to generate the tooling or shape for the stereotyped ends.
在传统方式里,当一个软件模块(类、框架…)需要一些其他模块,他将实现并且保持对该模块的一个直接引用。
In the classical way when a software module (class, framework,...) need some other module, it initializes and holds a direct reference to it.
匿名类是一种语法速写标记,使您能够在需要实现某个抽象类或者接口的地方创建一个类的实例,而不需要显式提供类的名称。
An anonymous class is a kind of syntactic shorthand that lets you instantiate a class implementing an abstract class or interface where you need it, without having to explicitly give it a class name.
一个参与者可能需要添加许多类,而其中没有一个类使用了原始参与者的名称。
A single actor may result in the addition of many classes, none of which carries the name of the original actor.
可能会需要有一个类用来隐藏持续机制的原始细节,但眼下还是使用SQL字符串。
Maybe have a class that hides the raw details of your persistence mechanism, but for now uses SQL strings underneath it.
例如,设计师可以创建一个可重复利用的缓存,当性能需要一个如简单缓存一类的东西时就可以在应用程序中使用。
For example, the architect could create a reusable in-memory cache, to be used in the application when performance needs dictate the need for something like a simple cache.
当你有足够多的功能需要归并到一个类里,并且这个类在仅会被外层类所使用时,一个嵌套类就非常有用。
A nested class make sense when you have enough related functionality to lump together in a class, but the functionality is only ever going to be used by its "outer" class.
重复的类结构总有些碍手碍脚,所以如果频繁使用BCEL,那么可能需要编写一个包装器类,它可以隐藏其中一些不同之处。
The duplicate class structures tend to get in the way, so if you're doing much with BCEL, it may be worthwhile to write wrapper classes that can hide some of these differences.
为了确定一个类是否属于一个域包,您需要分析它确定分布类型所涉及到的协作。
To determine whether or not a class belongs in a domain package, you need to analyze the collaborations with which it is involved to determine its distribution type.
然后您需要生成一个SWT外壳类和对话框窗口本身的类(下载本文底部的代码)。
Then you need to make an SWT shell class and a class for the dialog window itself Download the code at the bottom of the article.
在访问资源之前,需要通过一个AS400类实例建立连接。
Before accessing any resources, a connection is established using an instance of the AS400 class.
为此,需要声明一个专门的异常类,指出已经告知结果。
To do that, declare a a special exception class that indicates the result has been signalled already.
为此,需要声明一个专门的异常类,指出已经告知结果。
To do that, declare a a special exception class that indicates the result has been signalled already.
应用推荐