Ofbiz-China

致力于Ofbiz在中国的传播。帮助中小企业快速构建信息系统。

BlogJava 首页 新随笔 联系 聚合 管理
  2 Posts :: 1 Stories :: 4 Comments :: 0 Trackbacks

EMF简介

What is EMF?

        EMF的全称是Eclipse Modeling Framework. 它是Eclipse MDAModel Driven Architecture)的一个重要组成部分,是Eclipse中许多项目的基础( e.g, GEF) EMF可以将模型转换成高效的,正确的,和易于定制的Java代码。EMF项目的最初目标是要实现OMG(Object Management Group)MOF规范(Meta Object Facility)。在项目的进行中EMF的开发人员根据大量的实践经验对MOF规范进行了再加工,提取出了一些核心的元素集(MOF 2.0 中称为EMOFEssential MOF))。可以说EMF MOF核心子集的java高效实现,在EMF MOF核心子集的实现称为Ecore

EMF的组成

当前EMF由三个部分组成:

1EMF.Core(EMF的核心或基础),包括一个用于描述模型的meta model,称为Ecore,它实现了MOF的核心元素集。还包括一些runtime support,如:模型改变通知(org.eclipse.emf.common.notify 包中定义了一些接口用于实现这个机制),模型持久化(默认是XMI serialization),高效的Reflective API for manipulating EMF objects generically.

2EMF.Editinclude generic reusable classes for building editors for EMF models. It provides:

(1).Content and label provider classes, property source support, and other convenience classes that allow EMF models to be displayed using standard desktop (JFace) viewers and property sheets.

 (2). A commond framework, including a set of generic commond implementation classes for building editors that support fully automatic undo and redo.

3EMF.Codegen:用于产生EMF模型的java代码。


What is EMF model?

我们知道model是通过它的meta model来描述的,那么EMF modelmeta model 是什么呢?在EclipseEMF model meta model称为Ecore, Ecore model是自描述的(self-description),所以Ecore model本身也是一个EMF model.

How to get an EMF model?

有几种方式可以得到一个EMF model:

1.      通过文本编辑器直接编辑一个model文件(XMI格式)。

2.      通过Annotated Java code

3.      XML schema

4.      Rose class model.





posted on 2005-08-04 15:58 Ofbiz-China 阅读(1415) 评论(2)  编辑  收藏 所属分类: EMF

Feedback

# re: EMF简介 2006-03-17 19:20 arsentu
你好,我最近要开始看EMF相关的东西,还请多指教!  回复  更多评论
  

# re: EMF简介 2006-03-27 16:13 quiii
加油 继续写啊 写到吐血也不能停 我还等着看呢  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: