现在我们将创建一个模式模板。
使用DPTK标记创建模式模板。
DPTK引擎调用了一个模式模板。
本文将重点关注于构建模式模板的基本原理。
This article will focus on the fundamentals of building pattern templates.
请记住,这里的目标是熟悉如何编写模式模板。
Remember, the objective is to become familiar with writing pattern templates.
已链接的模式模板参数在图31 中高亮显示。
The linked pattern template parameter appears highlighted in Figure 31.
代码模板参数使用的方式与模式模板参数很相似。
Code template parameters are used in a manner similar to the pattern template parameters.
逐步执行向导并为每个模式模板参数填入需要的值。
Step through the wizard and enter the requested values for each individual pattern template parameter.
模式模板使用DPTK标记语言替换其中动态的部分。
The pattern template USES the DPTK tag language to replace dynamic portions.
模式模板通常使用迭代和筛选技术来正确地生成构件。
Pattern templates often use iteration and filtering techniques to correctly generate artifacts.
通常使用与表1“模式模板”中描述的模板类似的模板来记录软件模式。
Often, software patterns are documented using a template similar to one depicted in Table 1, Pattern template.
在模式模板中的相关模式部分中含有可以在项目中使用的其它模式的重要线索。
The Related patterns section within the pattern template contains important clues to other patterns that might be applicable in the context of the object.
我们重点关注于构建模式模板;dptk还提供了相应的分析工具,用于从现有的实现中发现模型。
We focused here on building pattern templates; DPTK also provides analysis tools for discovering a model from an existing implementation.
模式模板的主要目标是生成相应的构件,然而正如我们将在下一部分中看到的,模式模板可以用来完成更多的任务。
The main goal of a pattern template is to generate artifacts; however, as we will see in the next section, pattern templates can be used to do more.
例如,控制器模式模板将生成许多构件的整体容器,并调用各种其他的模板,而这些模板将生成特定的构件。
For example, the controller pattern template will generate the overall container of many artifacts and invoke various other templates, which in turn generate specific artifacts.
这个start标记将调用模式模板,并将结果转储到指定的资源,在我们的示例中,是dump . xml文件。
The start tag will invoke the pattern template and dump the result into the specified resource, in our case, dump.xml.
您可以指定关联任务、模式、模板和相关参数。
You can specify relationship roles, patterns, templates, and associated parameters.
为了将模式作为模型实现,需要使用建模语言创建属于模式的模板内容。
Realizing patterns as models involves creating what amounts to a template for the pattern within a modeling language.
这就使得有可能使用这种元数据对多种资产包--包括部件、服务、实现模式、模板等--进行分类,储存和追溯。
This makes it possible to use this metadata to classify, store, and retrieve many kinds of package assets, including components, services, pattern implementations, templates, and so on.
为了满足这些非功能需求,我们将使用WS响应模板模式。
To satisfy these non-functional requirements we use the WS response template pattern.
WS响应模板模式使服务接口变得更为灵活了。
The WS response template pattern makes the service interface more flexible.
WS响应模板模式规范详细说明了上下文、问题和可重复的解决方案。
The WS response template pattern specification details the context, the problem and the repeatable solution.
例如,WS响应模板模式并不处理或尝试实现缓存或日志记录。
For example, the WS response template pattern does not address or try to implement caching or logging.
我们在本文中对WS响应模板模式规范进行了详细的分析。
We have examined the WS response template pattern specification in detail here.
使用符合快速应用程序开发理念的代码级模式、模板和模型转换方法,可以使实现加速。
Implementation can be accelerated using code-level patterns, templates, and model-transformation methods following a rapid application development paradigm.
此外,还要注意该模板指定了模式。
图3显示了WS响应模板模式的序列关系图。
Figure 3 shows the sequence diagram for the ws response template pattern.
图7显示了WS响应模板模式的序列关系图。
Figure 7 shows the sequence diagram for the ws response template pattern.
WS响应模板模式提供服务接口灵活性、互操作性和可维护性。
The WS response template pattern provides service interface flexibility, interoperability, and maintainability.
图6显示了WS响应模板模式的类关系图。
Figure 6 shows the class diagram from the WS response template pattern.
应用推荐