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 閱讀(1449) 評論(2)  編輯  收藏 所屬分類: EMF

          Feedback

          # re: EMF簡介 2006-03-17 19:20 arsentu
          你好,我最近要開始看EMF相關的東西,還請多指教!  回復  更多評論
            

          # re: EMF簡介 2006-03-27 16:13 quiii
          加油 繼續寫啊 寫到吐血也不能停 我還等著看呢  回復  更多評論
            


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 巴南区| 宁阳县| 青龙| 利川市| 罗甸县| 双辽市| 仁怀市| 安庆市| 阳朔县| 香格里拉县| 江陵县| 合作市| 库车县| 峨边| 班玛县| 城市| 杭锦后旗| 磐安县| 海丰县| 远安县| 集安市| 合水县| 鹿邑县| 寿光市| 屏东市| 阿合奇县| 夏河县| 靖江市| 舟曲县| 来安县| 叙永县| 邯郸县| 怀集县| 吕梁市| 滨海县| 阳信县| 枣阳市| 利津县| 南岸区| 益阳市| 剑阁县|