使用自定义的类。
You might define a custom class like that in Listing 8.
可以定义一个如清单8所示的自定义类。
Create a custom class with the same name as the enumeration name.
创建一个定制类,使其名称与枚举名称相同。
So, you'll write a custom class called AppInjector, as shown below.
因此,要编写一个名为AppInjector的自定义类,如下面所示。
You then flexibly apply the custom class to any available HTML element.
然后,就可以灵活地把这个定制类应用于任何可用的HTML元素。
After loading the custom class into the JVM, you're then set to run at full speed.
将这个自定义类装载到JVM中后,就可以全速运行了。
HTML sample to generate a page (note the use of the custom class styles for the links).
用于生成页面的HTML示例(注意,这里对链接使用定制类样式)。
When the bot is used, this property is read and each custom class is run as a thread of the main Watchit bot.
当使用bot时,该属性会被读取且每个自定义类作为主watchit bot的一个线程运行。
Notice how I access the class from a custom class loader, which loads the compiled bytecodes upon request.
注意我是如何使用自定义的类加载器访问这个类的,该加载器按照请求加载编译后的字节码。
The custom class that you create needs to do or provide only the following to make it a plug-in to this bot.
创建自定义类需要执行或提供以下内容以使其作为该bot的插件。
To overload an operator on a custom class requires creating a method on the class with the correct signature.
若要在自定义类中重载运算符,您需要在该类中创建具有正确签名的方法。
For example, use < p class="12pointsans"> and < h1 class="12pointsans"> to apply the custom class to different elements.
例如,使用 <pclass="12pointsans">和 <h1 class="12pointsans"> 就可以对这两种不同的元素应用同一个定制类。
The Assertion type is a custom class defined by DbUnit to facilitate additional assertions specific to database result sets.
Assertion类型是DbUnit定义的定制类,可以进行特定于数据库结果集的额外断言。
Tick the Add custom class to binding registry and click next (this will make it available in the existing data format list).
勾选addcustom classtobindingregistry,并单击next(此操作可以在现有数据格式列表中显示)。
The workaround to this problem is to use a custom class that ACTS as a container for the array but does not extend INOUT_HOLDER.
这个问题的应对方法是使用一个用作数组容器但是没有扩展INOUT _ HOLDER的自定义类。
This article shows you how to create a custom class that represents a game piece that USES manipulation and inertia processing.
本文演示如何创建自定义类,该自定义类表示使用操作和惯性处理的游戏块。
A real implementation may need another custom class loader that would search through some classpath provided just for the compilation.
真正的实现可能需要其他自定义类加载器,该加载器将搜索为编译提供的某些类路径。
Gnosis.xml.objectify attaches subelement nodes directly as attributes of nodes (every node is of a custom class named after the tag name).
objectify将子元素节点直接作为节点的属性进行连接(每个节点都是一个根据标记名命名的定制类)。
For instance a user can trace an XML document to see all the nodes and attributes, or trace a custom class to see its structure and properties.
比如,用户可以跟踪一个XML文档,看到所有的节点和数值,或者跟踪某个定制的类,以看到它的结构和属性。
You may define a custom class with equality and inequality tests to hold all XML documents with the root element
您可以定义一个带有相等和不等测试的自定义类,来包含带有根元素
When you become familiar with customizing this solution, consider creating a custom class for extending DataGrid that contains your preferred methods and properties.
当您熟悉自定义此解决方案时,请考虑创建一个自定义类,用于扩展包含首选方法和属性的DataGrid。
DiscussionError is a custom class (a fault) that contains the error message, the function name where it is generated, and the database name containing the Web services.
DiscussionError是一个(默认)自定义类,其中包含了错误消息、生成消息的函数名和包含Web服务的数据库名。
As a result, all errors regardless of the custom class used in Lotus Domino V7.0.2 are treated as AxisFault exceptions at runtime by the client and not as the custom error.
结果,不管在LotusDominoV7.0.2中使用的自定义类是什么,所有的错误在运行时都被客户机视为AxisFault异常而不是自定义错误。
Common primitive types are string, integer and Boolean; however, as you'll see a little further along in this article, you can also map an element to an array or a custom class.
常见的基本类型有string、integer和boolean,不过,后面将看到还能将元素映射为数组或自定义类。
The basic approach here is to construct a custom class at runtime that will wrap access to the target classes (previously reached by reflection) in a way that can be used by your general-purpose code.
这里的基本方法是,在运行时,以一种可以被一般性代码使用的方式,构建一个自定义的类,其中将包装对目标类的访问(以前是通过反射达到的)。
For each custom service, there should be a corresponding custom service factory class.
对于每一个定制服务,都应该有一个相对应的定制服务工厂类。
Note: Be sure to enter a period after custom in the class name.
注意:确保在这个类名称的自定义之后键入一个点符号。
Even though a custom category class can be written, this code uses the default category supplied by the API, which will be effective in most cases.
即使一个自定义类别类能够被编写,但是这个代码仍然使用由API所提供的默认类别,它在大多数情况下是有效的。
It doesn't require any custom templating engines or class libraries.
它不需要任何已定义的模板引擎或者类库。
It doesn't require any custom templating engines or class libraries.
它不需要任何已定义的模板引擎或者类库。
应用推荐