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

          Feedback

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

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


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


          網站導航:
           
          主站蜘蛛池模板: 武川县| 肇源县| 乐至县| 涿鹿县| 孝昌县| 榆社县| 容城县| 汉中市| 天津市| 中江县| 特克斯县| 江西省| 德安县| 田东县| 黄龙县| 沾益县| 清新县| 昭觉县| 梓潼县| 苍山县| 安多县| 四川省| 乐都县| 昆明市| 莒南县| 满洲里市| 鄂托克旗| 富平县| 乐陵市| 高尔夫| 泌阳县| 株洲市| 阿合奇县| 峨眉山市| 怀化市| 洛阳市| 方城县| 辉南县| 手机| 聂荣县| 江西省|