问题标签 [stereotype]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
9437 浏览

stereotype - How are Boundary, Entity and Control classes defined?

I'm referencing a book by bennet, s et al (2002). Object-orientated systems analysis and design 2nd ed. McgraawHill:Maidenhead.

In the book when describing requirements analysis Bennet refers to three types of 'analysis class stereotypes' as a way of breaking down use case diagrams into defined classes.

The first two seem fairly straight forward : an boundary class is the terminus between the user and the system, or the system and other systems that it relies on. An entity class is the 'information and associated behaviour of some phenomenon or concepts such as an individual, a real life object, or a real life event' i.e. the data that you're trying to model or store, such as a person.

Finally, there are control classes which 'represent co-ordination sequencing, transactions and control of other objects'. This definition isn't as clear as Bennet states:

"meanwhile, the boundary class represents interaction with the user and the entity clases represent the behaviour of things in the application domain and storage of information that is directly associated with these things"

This rather begs the question what exactly is an application or software domain in this context? How does the control class fit in with these other two definitions?

0 投票
1 回答
6335 浏览

uml - UML 中的原型是什么?

我正在使用 Enterprise Architect 制作 UML 类图(最后用它生成 PHP5 代码)。我可以为类添加属性。对于每个属性,我可以选择一个构造型:DomainCodedValue、Field、SubTypeField、Property、Property、column、struct、union、global、with events、ConversationAssociation、ParticipantAssociation、Property、SM_Activity、input element、select element、textarea element。

什么是刻板印象?

0 投票
1 回答
224 浏览

eclipse - 关闭图表后,在 eclipse uml 中显示原型应用程序

我怎样才能再次显示内联的刻板印象?

当我在 eclipse 中创建一个 uml 模型时,我可以应用刻板印象,没问题: 前

但是当我关闭这个图表并重新打开它时,我得到了这个:

关闭并重新打开后

我明白为什么会这样,uml 模型分为两部分保存。但是我如何再次显示内联的刻板印象呢?像以前一样在我的建模元素上。(我想扩展我的模型)

0 投票
1 回答
536 浏览

annotations - 什么可以放入 EJB 原型中?

我们正在将 EJB 3.0 应用程序迁移到 EJB 3.1,并希望使用它@Stereotype来减少一些 EJB 配置。

我们计划拥有的注释是:

其中我知道@Singleton不能放入 a@Stereotype并且必须在 EJB 本身上。还有什么不能放入的@Stereotype

更新

规范 [ 1 ], [ 2 ] 说

刻板印象封装了以下任何组合:

  • 默认范围,以及
  • 一组拦截器绑定。

然后这些示例使用 Java EE 7 @Transactional@InterceptorBinding这使我相信上述注释都不能放入原型中。

0 投票
1 回答
457 浏览

scripting - 一次更改在项目浏览器中选择的多个包的刻板印象 - Enterprise Architect

如标题中所述:我想一次更改多个包的Steretypes,它们是在Project Browser中选择的。我想用内置的脚本功能来做到这一点。

我试图坚持“VBScript 项目浏览器多选示例”,但似乎不可能更改多个包的刻板印象。

有人知道怎么做这个吗?

提前致谢

0 投票
2 回答
872 浏览

acceleo - Acceleo:使用自定义 UML Profile 作为元模式,以及模板中的原型?

我是 Acceleo 的新手。我使用 IBM RSA (8.5.1)。我创建了一个自定义 UML 配置文件(带有一些扩展默认元类的原型,这很常见)。UML 配置文件是一个 .epx 文件。此外,我创建了一个简单的模型,在该模型上应用了我的自定义 UML 配置文件,并用我的自定义原型“标记”了一些类。

我的问题(对不起,如果它是微不足道的,但我没有找到一个直接的答案......):

  • 我可以在 Acceleo 中使用我的自定义 UML 配置文件作为元模型吗?简单地说,而不是在我的模块文件中写入以下内容: [module main(' http://www.eclipse.org/uml2/3.0.0/UML ')] (这个工作正常)我可以写这样的东西:[模块主('平台:/resource/MyProfileProject/MyProfile.epx')]?如果我尝试这样做,我会收到一条错误消息:“无法解析元模型”。我尝试将我的 UML 配置文件从 .epx 格式转换为 .xmi 和 .uml。这些都不起作用。

  • 如果这可以以某种方式工作,我可以使用我的自定义构造型作为 Acceleo 模板中的类型限定符(在“for”循环等中)吗?

任何帮助表示赞赏。先感谢您。马塞尔

0 投票
0 回答
398 浏览

xslt - XMI 文件中 UML 原型的 XPath 寻址

在解析我的 UML 文件 (XMI) 时,我遇到了 XSLT/XPath 的问题。

以下表达式的行为不同($thisId 包含类的 xmi:id 以检查它是否被 'itechnical_Profile' 中的构造型 'revisioned' 增强):

1)

给我正确的 id '_16_5_1_29f0058e_1359051179028_158208_16339application2'。

2)

根本没有给我任何输出。

3)

给我正确的 id '_16_5_1_29f0058e_1359051179028_158208_16339application2'。

我已经检查过

该节点被命名为“itechnical_Profile:revisioned”。

我也检查过

父节点被命名为'xmi:XMI'。

那么为什么2)失败了?

使用刻板印象“UML_Standard_Profile:entity”,它可以完美地工作。

我对'//'的理解是错误的吗?

提前致谢!

缩短 XMI 文件将是一项相当大的工作......所以经过一些调试后,我想出了以下解决方法:

检查 UML XMI 和我的 XSLT 脚本中的“xmlns:itechnical_Profile”定义没有发现任何问题。

0 投票
1 回答
178 浏览

java - 我们如何在 Spring 的同一个类中使用 @service 和 @repository 构造型?

我们如何在 Spring 的同一个类中使用 @service 和 @repository 构造型?

我们如何将 RESTFUL Web 服务公开为 @Repository 原型?一种方法是@Autowired,但我需要一个更详细的例子。

0 投票
1 回答
839 浏览

java - 带注释的 CDI 发现模式不扫描原型 bean

为什么bean-discovery-mode="annotated"不扫描带有某些刻板印象注释的 bean,例如@Model- 我刚刚尝试过,并且以这种方式注释的类没有被 CDI 拾取,所以我不得不将模式更改回all. 那么这是一个错误(因为例如@Model有一个范围)还是设计使然?

0 投票
2 回答
790 浏览

xml - 可以通过 XML 定义 bean 原型吗?

有可能通过 XML 定义一个 bean 原型吗?比如:

或者,

?