因此上述代码不会触发类转换异常。
在关系数据库再组织中,保持不同信息的八类转换。
Eight levels of transformation preserving different information in restructuring the relational database.
这个例子向您展示了,属性值是如何继承自父类转换配置的。
This example shows how property values are inherited from parent transformation configurations.
将这个类转换为PHPV5的第一步是要将构造程序重命名。
The first step in converting this class to PHP V5 is to rename the constructor.
对于第二个事例,我们知道父类转换配置已经是一个父类,所以我们必须创建一个新事例。
For the second child, we know the parent transformation configuration is already a parent so we have to create a new instance.
接下来,您将使用Web服务向导将stockquote类转换为一个Web服务。
Next, you'll use the Web service wizard to turn the StockQuote class into a Web service.
如果是,我们就要实现父类转换配置的另一个事例,并将新事例作为第一个子类的父类添加。
If so, we make another instance of the parent transformation configuration and add the new instance as the parent of the first child.
为了解决该问题,我们将car类转换为一个连贯接口,因而清单3中的代码变为清单4中的连贯接口。
To resolve this problem, we converted our Car class into a fluent interface, so that the code from Listing 3 became the fluent interface shown in Listing 4.
确切的说,它最初只是设计成处理XSL所需要的那一类转换,作为XSL的一部分而被使用。
Rather it is designed primarily for the kinds of transformations that are needed when XSLT is used as part of XSL.
现在,如果您尝试将最后一个元素作为JButton 来提取,则在运行时会出现一个类转换异常
Now, if you try to fetch the last element as a JButton, a class cast exception happens at run time
对于引用类型,隐式转换始终存在于从一个类转换为该类的任何一个直接或间接的基类或接口的情况。
For reference types, an implicit conversion always exists from a class to any one of its direct or indirect base classes or interfaces.
在这个例子中,在使父类转换配置成为第一个子类的父类之前,我们必须检查以确定,它是否已经是另一个转换配置的父类。
In this example, before making the parent transformation configuration a parent of the first child, we must check to make sure if it is already a parent of another transformation configuration.
第一个步骤是T4的引擎使用文本模板生成一个临时的转换类。
In the first step, the T4 engine USES the text template to generate a temporary transformation class.
一个例子是使单态调用转换失效的类装载。
One example is class loading that invalidates monomorphic call transformations.
将某个类的接口转换为接口客户所需的类型。
Convert the interface of a class into another interface clients expect.
它还显示了当您转换类图时,看到的环境菜单。
It also shows the context menu that you see when transforming a class diagram.
这些类之后又被转换为适合进行持久化的实体。
The classes can in turn be transformed into entities suitable for persistence solutions.
对于JMS,您需要告诉系统使用哪个类来进行此转换。
In the case of JMS, you need to tell the system which class to use to do this transformation.
这样,您只需要在想要为部署打包文件或者想要测试实际的部署JVM时转换类文件。
That way you only need to transform the class files when you're about to package the files for deployment or when you want to test with the actual deployment JVM.
这将自动对从ClassPool实例中加载的每一个类应用这个转换。
This will automatically apply the transformation to every class loaded from the ClassPool instance.
案例研究:将类模型转换为物理数据模型。
A case study: Class modeling transformed into physical data modeling.
扩展的转换:类点分析。
列表1.创建一个转换类的代码。
Action的用途是“将类的接口转换为客户机所需的另一个接口。
The purpose of the Action is to "Convert the interface of a class into another interface the clients expect.
instrumentation阶段转换类文件,注入挑选的用来调用ConTest运行时函数的位置。
The instrumentation stage transforms the class files, injecting into chosen places calls to ConTest run-time functions.
这时产品对象已经被转换成为了正确的类,所以您不需要自己再次的转换它。
This was already cast as the correct class of product object, so you do not need to cast it yourself.
转换类型可分为三类:方法调用转换、字段访问转换和新对象转换。
These fall into three categories: method call transformations, field access transformations, and a new object transformation.
在本例中,我们的数据绑定类将转换从消息传递系统以本机格式传递到SCA应用程序中服务数据对象(SDO)的数据,对于响应消息适用相反过程。
In this case, our data Binding class transforms the data passed in the native format from a messaging system to a Service data Object (SDO) in an SCA application and vice-versa for a response message.
文本消息必须遵循特定的格式,以便转换程序类能够确定要使用的正确业务对象。
The text message must follow a specific format so that the converter class can determine the right business object to use.
您可以创建一个父类的转换配置,它将属性设置为真,则会让所有的子类都静声地运行。
You could create a parent transformation configuration that has the property set to true to cause all the children run silently.
应用推荐