Mapping classes with the class element.
用class元素对类进行映射。
They can also be thought of as functions mapping classes to new subclasses.
它们也可以被认为是将类映射到新子类的函数。
As an alternative, you can use attributes on classes and properties, instead of mapping files.
还有一种方法,你可以使用类的特性和属性来替代映射文件。
To generate multiple classes in the same file, therefore, all you need to do is to give the same target name for them in the mapping model.
因此,要想在一个文件中生成多个类,您所需要做的仅仅是在映射模型中为它们指定相同的目标名称。
Mapping can be done by separate XML files, or by attributes on classes, properties, and member variables.
映射可以同过分离的XML文件实现,也可以通过在类属性上添加特性来实现。
This is not a direct mapping; we are making design decisions about how the functionality represented in the subsystems and classes will be allocated.
这不是直接的映射,我们正在做出一个关于如何指定子系统和类中表现功能的设计决策。
Applying a pattern to your model involves mapping the generic roles in the pattern solution to specific domain classes within your model.
要将模式应用到模型,涉及到将模式解决方案中的通用规则映射到模型中特定的域类。
In addition, when you use partial classes, a mapping model is used to direct each definition of the partial class into a file based on your requirements.
另外,当您使用局部类型时,应用映射模式基于您的需要,可以指导局部类型的每个定义成为一篇文档。
But if you want two or more classes to exist in the same file, then you could use a mapping model to specify the hierarchy and contents of the source files.
但是如果您想在同一篇文档中存在两个或更多的类型,您就需要使用映射模式以显示源文件的等级及内容。
Generic classes can be viewed as functions mapping their arguments to new instantiations.
泛型类可被视为将它们的参数映射成新实例化的函数。
Call the dynamic service utility method for providing mapping to the correct service utility classes to invoke.
调用动态服务实用程序方法,从而提供对要调用的正确的服务实用程序类的映射。
You've already created an implicit mapping between your pages and classes by giving each the same name.
由于使用相同的名称,页面和类之间已经创建了隐式的映射。
All classes beneath the package with the specified mapping name will be generated under the new package (Figure 18).
在新的包下,会生成已指定映射名的包下的所有类(图18)。
All I had to do was write a tiny mapping class, and I could make the example work with any tables and classes. I had a general purpose structure.
我所要做的一切,就是写一个很小的映射类,就能够让这个例子对任意的表和类都适用。
A relation in MTF (also referred to as a mapping rule) defines a type of mapping that will apply to instances of given model classes.
在MTF中的一个关系(也称为一个映射规则)定义了一种可应用于给定模型类的实例的映射类型。
By defining mapping files for your classes, you can override the default binding strategy and advise the marshaler how you'd like your classes to be represented in XML.
通过定义类的映射文件,可以覆盖默认的绑定策略,并就类在XML中的表示方式对编排器提出建议。
Because it's a direct mapping from XML syntax to classes, it is very easy to learn, use, and debug.
因为它直接从xml语法映射到类,很容易学习、使用和调试。
It USES introspection of the original classes in place of a mapping meta-data file.
它使用原始类的自身来代替映射元数据文件。
XML mapping files describe how a class maps to a particular table in the database, along with any relationships that the class has with other classes.
XML映射文件描述了如何将类映射到数据库中具体的表,并描述了类与其他类的关系。
Mapping additional classes is done the same way as mapping the base class.
按照相同的方式对其他类进行映射。
The mappings are described in general terms as well as through the use of an example that is applied throughout the document to illustrate the effect of the mapping on a simple set of CIM classes.
概括地描述了该映射,并使用了实例,该实例贯穿全文来说明对于简单cim类的映射效果。
Most data binding frameworks support mapping this document to instances of classes along the lines of.
大多数数据绑定框架支持将这个文档映射成包含以下代码行的类实例。
Package. No direct mapping needed: any classes in that package become available to your pages.
不需要直接映射:包中的任何类,对页面来说都可用。
Castor and Quick also support mapping existing classes to XML as an alternative to using generated code.
Castor和Quick还支持将现有类映射到XML,以此作为另一种生成代码的方法。
As you can see, interpreters are configured in zero.config by mapping file extensions to interpreter classes.
正如您所见,解释器可通过将文件扩展名映射到解释器类来在zero .config中配置。
Having properly configured an instance of MockStrutsTestCase, testing Action classes just involves a bit of logical mapping.
正确地配置了MockStrutsTestCase的实例后,测试Action类就只包含一点点逻辑映射。
The action element describes a mapping from a request path to the corresponding action classes that should be used to process the requests.
action元素描述了从请求路径到相应的action类的映射,应该用这些类来处理来自这个路径的请求。
A complete mapping would take into account n-ary associations, as well as generalization relationships between classes.
一个完整的映射将考虑n元关联,以及类之间的概括关联。
At its bare minimum you can write pure Ruby classes with attribute accessors and create the usual Hibernate mapping files by hand.
在最简单的情况下,你可以编写只带属性访问器的纯粹Ruby类,然后手动创建出常见的Hibernate映射文件。
With the Mapper classes and mapping files, emphasis is put on mapping objects to existing data structures, rather than conforming a data structure to the object structure.
有了mapper类以及映射文件,重点就变成了将对象映射到现有的数据结构,而不是使一个数据结构遵从这个对象的结构。
应用推荐