Font Size: a A A

Research And Implementation Of The Visualization Code Automatic Gener Ation Framework Based On MDL

Posted on:2016-05-15Degree:MasterType:Thesis
Country:ChinaCandidate:L H ChuFull Text:PDF
GTID:2308330473957191Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the wide application of Web applications in many fields, the requiremen t of efficiency development and the code quality is also rising. In the project d evelopment, especially the application of B/S structure, the modules of code stru cture are much similarity. the work of code becomes a repetitive work. This rep etitive work,which not only reduces the efficiency of development, and easy to c ause the coding error,maintenance also becomes difficult. Therefore, in order to a void duplication of work, this paper designs a system for automatic code generati on. According to the requirements of the project, the system will automatic gene rate code and similar files of modules.This thesis first introduces the current research status of automatic code gener ation, and several popular development ways. Then the automatic code generatio n related knowledge are introduced, such as code generation principle, the code generation of classification, the template engine technology. Then based on the idea of MDA, defines a language which platform independent, the language is calle d Model Driven Language(MDL). The JAVA, JS, HTML code and so on are abstr acted as XML by MDL. It can save a lot of application development time effectiv ely, and uniform application interface and operation mode effectively. The definitio n of the language is mainly to design front JSP page. It simplifies the write work of JSP page. The code can be formatted, readability, easy maintenance.Automatic code generation system is applied to the actual project. This article analyse the "education cloud management platform project" in details. Introduces the background of the project, analyzes the technical architecture of the platform and the function characteristic. Because this project is based on the J2 EEWeb, in the actual development it uses the popular open-source framework such as Struts2, S pring, UT and Hibernate. And then based on this, parsing and generating XML file s with the combination of XML technology and DOM technology, and follow thatuse the core engine Velocity template engine to create the code generation system.In order to facilitate the writing of design page file XML document, this system using SWT technology to development visual operation.This enables the developer s removed from the trouble of rember MDL.In order to verify the feasibility of the automatic code generation system, this t hesis tested in the actual project "education cloud management platform" in the en d. First detection the readable and format of the XML file and generation JSP files,and the normalization of configuration files. Then deploy the generated applicatio n on the server to check whether the application can run correctly and the results are correct. Through the detection of the results, the generated application code by the code generator is readability and feasibility and meet the requirements.This thesis introduces the design and implementation of a code automatic ge neration system which is based on MDL. The it has been applied and proved is good on actual projects.It has very strong practicability and innovation.
Keywords/Search Tags:Model Driven, Model Driven Language, automatic code generation, XML, Velocity
PDF Full Text Request
Related items