CN101599014A - The generating apparatus of program design file - Google Patents
The generating apparatus of program design file Download PDFInfo
- Publication number
- CN101599014A CN101599014A CNA2009101426496A CN200910142649A CN101599014A CN 101599014 A CN101599014 A CN 101599014A CN A2009101426496 A CNA2009101426496 A CN A2009101426496A CN 200910142649 A CN200910142649 A CN 200910142649A CN 101599014 A CN101599014 A CN 101599014A
- Authority
- CN
- China
- Prior art keywords
- program
- information
- file
- design
- definition information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a kind of generating apparatus of program design file, it is used for generator program and design document thereof.The generating apparatus of program design file (100), the design information of input is transformed to model information (104a) the back output of the abstract form of the concrete specification that does not rely on each program, according to this model information, meta model information, the concrete template of design document generates design document, be written in the design document storage part (105), simultaneously according to model information (104a), and meta model information, concrete template file in the decision template stores portion (102), by model information (104a), meta model information, and the concrete template file of decision, generate each program (106a), according to meta model information in this program (106a) write-in program storage part (106).Like this, just can generator program and design document, can set the specification of formation object neatly, can improve the throughput rate of application and development.
Description
Technical field
The present invention relates to be used for the generating apparatus of the program design file of generator program (program) or its design document.
Background technology
In the field that the application (application) of generator program or its design document is developed, viewpoint from the burden that alleviates the developer, for example proposed program creating device and (for example opened (the 10th section in 2004-318260 communique with reference to the spy, Fig. 8-Figure 11, Figure 46, the 283-286 section, the 292nd section etc.) and 2005-228235 communique (the 24th section, Fig. 1 etc.)).
Open in the 2004-318260 communique (to call document 1 in the following text) the spy, disclose by input and described portion and the physical specification portion of description physical specification that constitute, detailed, the technology of generator program by traffic profile.In addition, in document 1, disclose, only generated " picture program " in the stage of the input that does not have physical specification, after display frame is confirmed, the technology of input physical specification.
On the other hand, in 2005-228235 communique (to call document 2 in the following text), disclose by obtaining professional term from the design information storage unit, extract the identifier corresponding out from professional term storage unit, by they being embedded in the technology that generates the program of specific transactions in the template of preserving in template (template) storage unit with professional term.
But, disclosed technology in the document 1,2, though do not have special problem usually, by the inventor's research, following some room for improvement is arranged.
Disclosed technology in the document 1 is imported the throughput rate reduction that detailed physical specification causes application and development easily, and this point has room for improvement.
Disclosed technology in the document 2 can use one group of template to generate the program of specific transactions, and its reverse side is that because can not use many group templates flexibly, so can not change the specification of appending the program of wishing generation neatly, this point has room for improvement.
In addition, disclosed technology in the document 1,2, though can generator program, can not generate the design document of this program, this point has room for improvement.
Summary of the invention
The generating apparatus that the purpose of this invention is to provide a kind of program design file, it can generator program and design document, can set the specification of formation object neatly, can improve the throughput rate of application and development.
One aspect of the present invention (aspect) is the generating apparatus of program design file, and it is used for generating a plurality of programs of formation application program (application program) and the design document of described each program respectively, has following unit:
The meta-model storage unit, be used to store following meta-model (meta model) information, this meta model information comprises: root directory definition information, it is for each table (table), the Table I D ground that comprises routine package (package) name of the program ID that represents described application program, described application program and represent described table has defined that representation program generates first root directory (root directory) value of destination and for each described application program, defined the second root directory value of representation program generation destination with comprising described program ID; Abstract template file (template file) definition information, it is shown for each, defined the first template particular key (key) corresponding and for each pattern (pattern) customizing messages of described application program, the second corresponding template particular key of each program that has defined and generated with each program that generates; Concrete template file definition information, it has defined the concrete template file of each program and design document for each described template particular key; With relative path definition information, it has defined the relative path (path) of program generation destination for each described template particular key with comprising Table I D;
Template storage unit, its storage is by the concrete template file of described concrete template file definition information definition;
Design information input block, its input comprise the design information of program ID, routine package name, pattern customizing messages, Table I D;
Model information output unit, its described design information are exported after being transformed to model (model) information of abstract form of the concrete specification that does not rely on described each program;
The design document generation unit, it is according to the concrete template of the Table I D in the described model information, described relative path definition information, described design document, generation comprises the design document that guide look is presented at the complete list of file (file) name of this Table I of combination D in the described relative path definition information, and this design document is write described design document storage unit;
According to abstract template file definition information in the Table I D in the described model information and pattern customizing messages, the described meta model information and concrete template file definition information, determine the unit of the concrete template file in the described template storage unit; With
The program generation unit, it generates the filename of each program according to Table I D in the described model information and described relative path definition information, by this document name is generated each program as the filename of the concrete template file of described decision, this each program is write described program storage unit (PSU) according to described root directory definition information and described relative path definition information.
As one aspect of the present invention,, but be not limited thereto in addition, also can use other such classification performances such as storage medium of method, program, stored program embodied on computer readable as the device performance.
According to an aspect of the present invention, when input comprises the design information of program ID, routine package name, pattern customizing messages, Table I D, export after design information being transformed to the model information of abstract form of the concrete specification that does not rely on each program.Concrete template according to the Table I D in this model information, relative path definition information and design document, generation comprises the design document that guide look is presented at the complete list of the filename that has made up this Table I D in the relative path definition information, and this design document is write the design document storage unit.
In addition, according to abstract template file definition information in the Table I D in the model information and pattern customizing messages and the meta model information and concrete template file definition information, the concrete template file in the decision template storage unit.Generate the filename of each program according to the Table I D in the model information and relative path definition information.By this document name is generated each program as the filename of concrete template file, in program storage unit (PSU), write this each program.
Therefore, different with existing mode in one aspect of the invention, can generator program and design document because not importing detailed physical specification, so can improve the throughput rate of application and development.In addition, because determine concrete template file according to the pattern customizing messages, thus different with existing mode, can set the specification of formation object neatly.
Description of drawings
Fig. 1 is the generating apparatus of program design file of expression first embodiment of the present invention and the concept map of peripheral structure thereof.
Fig. 2 is the concept map of an example of the root directory definition information in this embodiment of expression.
Fig. 3 is the concept map of an example of the root directory definition information in this embodiment of expression.
Fig. 4 is the concept map of an example of the abstract template file definition information in this embodiment of expression.
Fig. 5 is the concept map of an example of the abstract template file definition information in this embodiment of expression.
Fig. 6 is the concept map of an example of the abstract template file definition information in this embodiment of expression.
Fig. 7 is the concept map of an example of the concrete template file definition information in this embodiment of expression.
Fig. 8 is the concept map of an example of the relative path definition information in this embodiment of expression.
Fig. 9 is the concept map of the example of duplicating (copy) obj ect file definition information in this embodiment of expression.
Figure 10 is the concept map of an example of the copy source document definition information in this embodiment of expression.
Figure 11 is the concept map of the example of duplicating destination document definition information in this embodiment of expression.
Figure 12 is the concept map of an example of the model information in this embodiment of expression.
Figure 13 is the concept map of an example of the model information in this embodiment of expression.
Figure 14 is the concept map of an example of the specification of the design information of expression in this embodiment.
Figure 15 is the concept map of an example of instrument (tool) the information input picture in this embodiment of expression.
Figure 16 is the concept map of an example of the application message input picture in this embodiment of expression.
Figure 17 is the concept map of an example of application model (application pattern) the information input picture in this embodiment of expression.
Figure 18 is the concept map of an example of the table information input picture in this embodiment of expression.
Figure 19 is order (sequence) figure that is used for illustrating the action of this embodiment.
Figure 20 is the precedence diagram that is used for illustrating the action of this embodiment.
Figure 21 is the process flow diagram (flowchart) that is used for illustrating the action of this embodiment.
Embodiment
Below use the description of drawings embodiments of the present invention.In addition, illustrate Java (registered trademark) program in the following embodiments, but be not limited thereto, can generate program arbitrarily.In addition, the generating apparatus of following program design file can be implemented with the unitized construction of hardware configuration or hardware resource and software (software).As the software of unitized construction, can use in advance and functional programs (install), that be used to make the generating apparatus of realizing the program design file is installed from network (network) or storage medium.
(first embodiment)
Fig. 1 is the generating apparatus of program design file of expression first embodiment of the present invention and the concept map of peripheral structure thereof.The generating apparatus 100 of this program design file can be communicated by letter with user's terminal 200 and data library device 300 by network 400.
Here, the generating apparatus 100 of program design file has meta-model (meta model) storage part 101, template (template) storage part 102, storehouse (library) storage part 103, model (model) information storage part 104, design document storage part 105, program storage part 106, all control parts 107, design information input part 108, proof department 109, model information efferent 110, design document generating unit 111 and program generating unit 112.
Here, meta-model storage part 101 is the memory storages that can be read/write and can be read by program generating unit 112 by all control parts 107.Meta-model storage part 101 writes the meta model information that defines information 101d, duplicates (copy) obj ect file (file) definition information 101e, copy source document definition information 101f and duplicate destination document definition information 101g as root directory (rootdirectory) definition information 101a, abstract template file (template file) definition information 101b, concrete template file definition information 101c, relative path (path) in advance.In addition, use the generation respectively define information 101a~101g to handle, remove not the situation of the pattern of selecting by pattern customizing messages described later (pattern) d7, basically successively each of the middle expression of execution graph 2~Figure 11 go each go.Therefore, use the generation that respectively defines information 101a~101g to handle,, can generate a large amount of achievement thing (program and design document) for a little design information.
Root directory definition information 101a, as Fig. 2 and shown in Figure 3, for every table (table), be the information that the Table I D ground that comprises routine package (package) name of program ID, application program of expression application program (application) and expression table has defined the first root directory value of representation program generation destination; For each application program, be the information that has defined the second root directory value of representation program generation destination with comprising program ID; For each kind of xcopy object, be the information that the 3rd root directory value of destination is duplicated in definition.
Abstract template file definition information 101b, as Fig. 4, Fig. 5 and shown in Figure 6, be for each table definition the first template particular key (key) corresponding and defined information with the corresponding second template particular key of each program that generates for each pattern customizing messages of application program with each program that generates.
Concrete template file definition information 101c as shown in Figure 7, is the information that has defined the concrete template file of each program and design document for each template particular key.
Relative path definition information 101d as shown in Figure 8, is the information that has defined the relative path of program generation destination for each template particular key with comprising Table I D.
Duplicate object document definition information 101e, as shown in Figure 9, be for each class definition of duplicate object file the information of copy source filename.
Copy source document definition information 101f as shown in figure 10, is the information that has defined the memory location of copy source file for each copy source filename.
Duplicating destination document definition information 101g, as shown in figure 11, is to have defined the information of duplicating the destination document name for each copy source filename.
Model information storage part 104 is the memory storages that can be read/write, can be read by design document generating unit 111 and program generating unit 112 by all control parts 107 and model information efferent 110.Model information storage part 104, storage is from the model information 104a of model information efferent 110 outputs.Model information 104a as Figure 12 and shown in Figure 13, is the data (data) with the abstract form performance design information of the concrete specification of each program of not relying on generation.As the form of model information 104a, for example can use XML (Extensible Markup Language) form.This model information 104a as intermediary, is used to design document generation and program and generates.
Design document storage part 105 is the memory storages that can be read/be write by all control parts 107 and design document generating unit 111.Design document storage part 105, the design document 105a that storage generates by design document generating unit 111.Design document 105a is the design document that generates by design document generating unit 111, is the design document of program 106a.In design document, complete list or chart (diagram), the interactional complete list of (f) representation class or the kind of chart of the static information of (a) picture complete list, (b) picture item definition list, (c) table complete list, (d) list item definition list, (e) representation class (class) (perhaps program) for example arranged.
All control parts 107 have each one 108~112 of control so that carry out the function of the action of representing in Figure 19 described later, Figure 20 and Figure 21.For example, all control parts 107 have to the checking of design information input part 108 indication design informations and the output of model information, to the generation of design document generating unit 111 indication design documents, to the function of the generation of program generating unit 112 instruction programs.
Design information input part 108 has following each function (f108-1) and (f108-2).
(f108-1) be to be provided for the user interface (user interface) from user's terminal 200 input design informations, the interim storage from the function of the design information of user's terminal 200 inputs to user's terminal 200.
(f108-2) be the function of when proof department 109 is exported design informations with the function of checking indication with in the checking that receives from proof department 109 inerrancy as a result (error) (being proved to be successful), exporting design informations to model information efferent 111.
With design information, example as expression specification among Figure 14 is input to generation destination catalogue (directory) d1 such as program, journal file (log file) is used catalogue d2, program ID d3, program name d4, routine package name d5, database (database) link information d6, the pattern customizing messages d7 of application program, the key of option (option) and value d8, Table I D d9, table name d10, row (column) ID d11, row title d12, the type d13 of row, the figure place location number d14 of row, FK attribute d15, NotNull attribute d16, each of picture display properties d17 etc.Here, except that information d1, d2 arbitrarily, d4 or about the information d3 of title, the design information of essence the d5, only be parameter (parameter) information d7, the d8 of database linkage information d6, table design information d9~d17 and the minority corresponding with the pattern of the application that generates.That is design information does not contain physical specification with existing different.In addition, design information also can change and reads to be specification information.
As the user interface that is used to import design information, for example, has the picture data that is used for show tools information input picture G10, application message input picture G20, application model information input picture G30, table information input picture G40 on user's terminal 200 as Figure 15, Figure 16, Figure 17 and shown in Figure 180.But the input (providing of user interface) of the design information by each picture is not necessary, can omit yet.As long as design information input part 108 is because from user's terminal 200 input design informations, so for example also can be deformed into the structure of file that receives the Excel (registered trademark) etc. of record design informations from user's terminal 200.
(f109-1) be the design information that receives for from design information input part 108, according to must or setting arbitrarily of representing among Figure 14, checking has or not the function of input deficiency or contradiction.
(f109-2) be function from results to 108 outputs of design information input part that verify.
Design document generating unit 111 has following each function (f111-1) and (f111-2).
(f111-1) be concrete template, generate and comprise the function of design document 105a that guide look is presented at the complete list of the filename that has made up this Table I D d9 on the relative path definition information 101d according to relative paths definition information 101d in the Table I D d9 in the model information 104a in the model information storage part 104, the meta model information storage part 101 and the design document in the template stores portion 102.
(f111-2) be the function that writes this design document 105a to design document storage part 105.
As a supplement, design document generating unit 111, from the pattern customizing messages d7 that in model information 104a, comprises and the data of meta-model storage part 101, appropriate template in the design document template in the decision template stores portion 102 makes this template work to model information 104a and generates design document 105a.That is design document generating unit 111 with reference to meta-model application model information 104a in template on one side, generates the design document 105a of application of the specification of hope by on one side automatically from seldom design information.
(f112-1) be according to abstract template file definition information 101b and concrete template file definition information 101c in the meta model information in the Table I D d9 in the model information 104a in the model information storage part 104 and pattern customizing messages d7, the meta-model storage part 101, the function of the concrete template file in the decision template stores portion 102.
(f112-2) be to define the filename that information 101d generates each program according to Table I D d9 in the model information 104a and relative path, by this document name is generated each program 106a as the filename of the concrete template file of above-mentioned decision, according to root directory definition information 101a and relative path definition information 101d, the function of this program 106a write-in program storage part 106.
Have copy source file, define information 101a and duplicate the function that destination document definition information 101g copies to the 103a of library storage portion according to root directory by duplicate object document definition information 101e in the meta-model storage part 101 and copy source document definition information 101f definition.
As a supplement, program generating unit 112, from the pattern customizing messages that comprises in model information 104a and the data of meta-model storage part 101, the appropriate template in the process template in the decision template stores portion 102 makes this template to the model information 104a generator program 106a that works.That is program generating unit 112 with reference to meta-model application model information in template on one side, generates the program 106a of application of the specification of hope by on one side automatically from seldom design information.
User's terminal 200 is common terminals, for example has following each function (f200-1)~(f200-3).
(f200-1) be the function of all control parts 107 of the generating apparatus 100 of the operation start-up procedure design document by the user.
(f200-2) be the function that shows based on each picture G10~G40 of each picture data that receives from design information input part 108.
(f200-3) be to indicate and generate the function of carrying out to each picture G10~G40 input design information by user's operation.
Use the action of the generating apparatus of the program design file that the flowchart text of the precedence diagram of Figure 19 and Figure 20 and Figure 21 as above constitutes below.
User's terminal by user's operation, is indicated the generating apparatus 100 (ST1) of all control part 107 start-up procedure design documents.
All control part 107 starting design information input parts 108 (ST2).
Design information input part 108 is provided for importing each picture data of design information successively to user's terminal 200.
User's terminal 200, by user's operation, import picture G40 to design information input part 108 input design informations (ST3) by instrument (tool) information input picture G10, application message input picture G20, application message pattern input picture G30 and table information successively.Tool information input picture G10 as shown in figure 15, has the input tool of being used for information (d1, input field d2) (field) g11, g13 and button g12, g14~g16.Here, so-called " tool information " is meant the essential information of generating apparatus 100 actions that are used for the program design file.In input field g11, loading routine generates destination catalogue d1.In input field g13, input journal file catalogue d2.In addition, replace direct input, also can select the picture assigned catalogue by the catalogue that shows by pressing button g12, g14 to input field g11, g13.
User's terminal 200 can stop the generating apparatus 100 of this program design file by the pressing operation Interrupt Process of the button g15 (button) that undertaken by the user.In addition, user's terminal 200 can be transferred to next application message input picture G20 by the pressing operation of the button g16 that undertaken by the user.
Application message input picture G20 as shown in figure 16, has and is used to import application message (input field g21~g26 and button g27, the g28 of d3~d6).Here, so-called " application message " is meant the essential information of the application that the generating apparatus 100 by the program design file generates.Loading routine ID d3 in input field g21.Loading routine title d4 in input field g22.The bag name d5 of loading routine in input field g23.Input database link information d6 in input field g24~g26.Database linkage information d6 can be subdivided into the URL of data library device 300, the user who is used to connect (user) name and password (password), imports in each field g24, g25, g26 respectively.User's terminal 200 by the pressing operation of the button g27 that undertaken by the user, can be returned the picture G10 of front.User's terminal 200 by the pressing operation of the button g28 that undertaken by the user, can be transferred to next application message pattern input picture G30.
Application message pattern input picture G30 as shown in figure 17, has and is used to import application model information (d7, drop-down list d8) (pull-down list) g31, input field g32, g33 and button g34, g35.Here, so-called " application model information " is meant the information that any specification of the plurality of specifications that selection can generate by the generating apparatus 100 of program design file is such and is used to change the necessary or parameter arbitrarily of the action of application.The pattern customizing messages d7 that input is used in drop-down list g31.User's terminal 200 by the selection operation that is undertaken by the user, is selected some from the pattern that is predetermined.In addition, the pattern of this application can be appended.The key of input option and value d8 in input field g32, g33.In this embodiment, as option, employing is by add the 1 exclusive control mode with the contradiction of the renewal that prevents same data when the data of the particular column stored that is updated in table at every turn, and the key of specifying the row ID of expression particular column in option keys is specified the row ID of the reality of particular column in option value.This option keys and value can be specified any number.User's terminal 200, the pressing operation of the button g34 that is undertaken by the user can return the picture G20 of front.User's terminal 200, the pressing operation of the button g35 that is undertaken by the user can be transferred to next table information input picture G40.
Table information input picture G40 as shown in figure 18, has input field g41~g50 and button g51~g53.Input Table I D d9 in input field g41.The title d10 of input table in input field g42.Input row ID d11 in input field g43.The title d12 of input row in input field g44.The type d13 of input row in input field g45.This field g45 also can select input from the type that is predetermined.The figure place location number d14 of input row in input field g46, g47.Input PK attribute d15 in input field g48.If PK then selects " zero ", then select "-" in this embodiment if not PK.Input NotNull attribute d16 in input field g49.In this embodiment if NotNull then selects " zero ", if allow Null then select "-".Input picture display properties d17 in input field g50.If when reading, on picture, show these row in this embodiment, then select " zero ", if on picture, do not show then selection "-".User's terminal 200, the pressing operation of the button g51 that is undertaken by the user can return the picture G30 of front.User's terminal 200, the pressing operation of the button g52 that is undertaken by the user is transferred to and is used for appending the new table information input picture G40 that generates the table that uses using, and perhaps transfers to next table information input picture G40 that the information input finishes.
User's terminal 200, the pressing operation of the button g53 that is undertaken by the user, the input of sign-off table information is for the generation (ST4) of all control part 107 instruction programs.
All control parts 107 detect user's button press event (event), to the indication (ST5) of design information input part 108 reception and registration programs generation.
Whether design information input part 108 is accepted the indication that program generates, for not having incorrect input to send checking indication (ST6) to proof department 109 in the authorization information input.One example of the checking here is the unspecified occasion of necessary information represented in Figure 14 situation as mistake.Proof department 109 is carried out checking, returns checking ST7 as a result to design information input part 108).The checking result comprises having or not of mistake, and vicious occasion should mistake content.
Design information input part 108 comprises the occasion of mistake the value of returning from proof department 109, return error message (ST8) to all control parts 107.All control parts 107 send this error message (ST9) to user's terminal 200.
Design information input part 108 does not comprise the occasion of mistake the value of returning from proof department 109, return the faultless meaning (ST10) to all control parts 107.All control parts 107 send the indication (ST11) that model information is exported to model information efferent 110.
When the end of output of model information 104a, all control parts 107 send the indication (ST13) that design document generates to design document generating unit 111.In addition, the program that the design document of step (step) ST13~ST17 generates processing and step ST18~ST23 generates processing, and carrying out that earlier can.Here, narrate the occasion of the design document generation processing of first execution in step ST13~ST17 for example.
Behind step ST13, design document generating unit 111, read respectively model information 104a, the meta model information in the meta-model storage part 101 and the design document in the template stores portion 102 in the model information storage part 104 Template Information (ST14, ST15, ST16).Here, as the example of meta model information, the relative path of expression definition information 101d in the presentation graphs 8.Relative path definition information 101d is in the definition relative path, the meta model information which type of filename is the program that expression generates get.For example the program of the such typing (stereotype) of Action becomes requestHandler/[table_id_caps] the such definition of Action.java.When in this definition, adding generation destination catalogue (supposition is c:$tmp) d1, routine package name (supposition is foo.bar) d5 in the model information 104a and Table I D (supposition is emp) d9, the preservation destination of the program that generates becomes c:$tmp$foo$bar$requestHandler$EmpAction.java, and the complete qualified name of class (class) becomes foo.bar.requestHandler.EmpAction.
Design document generating unit 111, the design document template of the guide look form that utilization is preserved in template stores portion 102 generates the design document 105a that representation program is had a guide look of.Design document generating unit 111 equally also can be used the information of the JSP (Java Server Pages) as picture file, generates the design document 105a of expression picture guide look.According to above-mentioned, design document generating unit 111 according to model information 104a, meta model information and design document template, generates design document 105a (ST17), writes this design document 105a in design document storage part 105.
When the generation of design document 105a finished, all control parts 107 sent the indication (ST18) that program generates for program generating unit 112.
Here, describe the processing of step ST22, ST23 in detail with reference to the process flow diagram of Figure 21.
Root directory definition information 101a is the program that generates of expression for its each kind with which catalogue as basic point generate meta model information.For example, the program source file (program source file) of the use Java language that generates for each the Table I D d9 in the model information 104a becomes [system_id]/WEB-INF/src/[class_name_prefix]/[table_id].When adding program ID (being assumed to userlist) d3, routine package name (being assumed to foo.bar) d5 in the model information 104a, Table I D (being assumed to emp) d9 in this definition, the basic point catalogue that generates this program source file becomes userlist/WEB-INF/src/foo/bar/emp.
Abstract template file definition information 101b is the meta model information of the abstract template file that utilizes when being illustrated in generator program 106a.For example in the occasion of the program that generates the such typing of Action, the template of utilizing pre-prepd Action to use.But the template that the option by the pattern used or appointment utilizes is not necessarily unique.To this, abstract template file definition information 101b is the information that is used to determine specifically to utilize which template.In abstract template file definition information 101b, for example write concrete template for each the pattern customizing messages d7 that in model information 104a, comprises.In addition, for example, in the program 106a that generates for each the Table I D d9 in the model information 104a, the typing of Action, Service, DAO, DS etc. is arranged.The program 106a of these typings defines with the such attribute of java_table (property) name in abstract template file definition information 101b, the key of the concrete template of specific utilization is respectively control_action, control_service, control_dao, control_ds.In addition for example, in pattern customizing messages d7 supposition is the occasion of AppPattern1, use the program that generates for each, with the such attribute-name definition of java_application.pattern.AppPattern1, the key of the concrete template of specific utilization is control_commandDS in abstract template file definition information 101b.
Concrete template file definition information 101c is the meta model information of the concrete template file that utilizes when being illustrated in generator program 106a.The key that for example has been presented as the concrete template of the program that generates the such typing of Action is the example of control_action.The file of the concrete template by the decision of this key is lib/template/srcTemplate/controlTemplate/control_action. vm.That is, in this pattern, for the concrete template file of the program utilization that generates the such typing of Action is control_action.vm.
Relative path definition information 101d is that expression is the information of the root directory of each kind of the program of making in step ST22-1 as the generation destination of the program of basic point.The key that for example has been presented as the concrete template of the program that generates the such typing of Action is the example of control_action.Program generation destination by this key decision is requestHandler/[table_id_caps] Action.java.[table_id_caps] is the variable of expression " initial character of Table I D has been made uppercase character string ".Promptly, become requestHandler/EmpAction.java and requestHandler/DepAction.java getting the program of two such tables of emp, dept as the such typing of the occasion Action of object.
The processing of above step ST22-2~ST22-4 is repeated to carry out the generation end (ST22-5) up to whole programs of formation object.
Then, program generating unit 112, with reference to represent among Fig. 9~Figure 11 such as duplicate object document definition information 101e, copy source document definition information 101f, each file copy information (ST23-1) of duplicating destination document definition information 101g.Then, program generating unit 112 is abideed by this document Copy Info and is duplicated the file (ST23-2) of regulation to the place of regulation.
Duplicate object document definition information 101e is the abstract model of the file of indicating to duplicate.For example by the such key of jar, the kind of the file that should duplicate corresponding with this a key decision is such 6 kinds of commons-beanutils, commons-digester, jakarta-orostruts, procomposer, log4j, commons-collections.The copy source of each file and duplicate the destination is by copy source document definition information 101f and duplicate destination document definition information 101g definition.For example the copy source of the kind of the such file that should duplicate of procomposer is the lib/reference/procomposer_rt.jar by copy source document definition information 101f definition.In addition, this document duplicate the destination, be by duplicating the procomposer_rt.jar of destination document definition information 101g definition, but become the root directory of the basic point that duplicates the destination, same with the example of representing previously, in root directory definition information 101a,, be [system_id]/WEB-INF/lib with the attribute-name definition that is called jar.
The processing of this step ST23-1~ST23-2, whole program of duplicate object duplicate end before repeat (ST23-3).
According to above-mentioned, can be according to the pattern of the application of selecting, on one side suitably switch template, the generation of basic point, the utilization of generator program catalogue, the file that should duplicate, duplicate the destination, generator program on one side.
As mentioned above, according to present embodiment, the generating apparatus 100 of program design file, export after the design information of input being transformed to the model information 104a of abstract form of the concrete specification that does not rely on each program, according to this model information, meta model information, the concrete template of design document, write design document storage part 105 after generating design document, simultaneously according to model information 104a, meta model information, concrete template file in the decision template stores portion 102, by model information 104a, meta model information, and the concrete template file of decision, generate each program 106a, in program storage part 106, write this program 106a according to meta model information.
Therefore, different with existing mode in the present embodiment, can generator program and design document because not importing detailed physical specification, so can improve the throughput rate of application and development.In addition, because determine concrete template file according to the pattern customizing messages, thus different with existing mode, can set the specification of formation object neatly.
In addition, because only by user's input design information seldom, just can generate the application program that to carry out immediately and the design document of application program of a plurality of patterns automatically,, can improve the throughput rate of application and development so can shorten the Production Time of program and design document.
As a supplement, can and utilize this meta-model according to the meta-model of the template of the mode switch utilization of the application that will generate,, also can generate the application that to move automatically even do not import detailed physical specification by definition.Same in addition, can from a plurality of templates, select the pattern generator of the application that generates according to meta-model.Equally, by editor's meta-model, can easily append the pattern of the application of generation.
Therefore, according to present embodiment, can improve application and development efficient.
In addition, different according to present embodiment with the existing mode of generator program only, except that program, can also generate design document.In addition, according to present embodiment, because be to have specified template file in meta model information, so different with existing mode, the user does not specify (perhaps need not take into account) template file, just can generator program and design document.And then according to present embodiment, by defining the relation of design information and template file and catalogue etc. in advance in meta model information, the input for seldom design information can generate a large amount of programs and design document.In addition, in the prior art, the amount of program of output and the proportional relation of input quantity of design information are arranged.
In addition, because by from template 102a~102g or utilize the structure of storehouse 103a generator program 106a and design document 105a, omitted user's programming operation, so can prevent to improve the quality based on the sneaking into of bugs (bug) of the mistake of programming (programming) operation.
And then, because all control parts 107 by carrying out the program 106a that generates, can be confirmed the action of this program 106a, so do not need to append installation.In addition, even appending the occasion of installation, also can use this program 106a and design document 105a as example or blank.Here, in the occasion as example or blank use, for example the concrete example as the exploitation standard can be launched into project.
In addition, replace high-quality template 102a~102g or utilize storehouse 103a, in the not clear template (program) of service property (quality) or the occasion in storehouse, can utilize the generating apparatus 100 of program design file as the not clear template of service property (quality) or the testing tool (test tool) in storehouse.
In addition, Ji Zai method in the above-described embodiment, as the program that computing machine (computer) is carried out, also can in storage mediums such as disk (disk) (soft (registered trademark) dish, hard disk etc.), CD (CD-R0M, DVD etc.), photomagneto disk (MO), semiconductor memory, store issue.
In addition, as this storage medium, if can stored programme and the storage medium of embodied on computer readable, then its file layout be that any form all can.
In addition, also can be used to realize each part of handling of above-mentioned form according to the indication of the program that (install) is installed to computing machine from storage medium by OS (operating system), database management language (software) or the network software execution such as (network software) of operation on computers.
And then the storage medium among the present invention is not limited to and computing machine medium independently, also comprises the storage medium that download (download) waits storage after the program that transmits or stores temporarily by LAN or the Internet (Internet).
In addition, storage medium is not limited to one, carries out the occasion of the processing the above-mentioned embodiment from a plurality of media, is also contained in the storage medium among the present invention, and dielectric structure also can be an any structure.
In addition, computing machine among the present invention, be based on program stored in the storage medium and carry out each device of handling in the above-mentioned embodiment, also a device of forming that can wait by personal computer (personal computer), with any structure in the system of network connection multiple arrangement etc.
In addition, computing machine among so-called the present invention, being not limited to personal computer, being also contained in the arithmetic processing apparatus that comprises in the messaging device, microcomputer (microcomputer) etc., is the general name that can realize the unit of function of the present invention by program.
In addition, the present application is not limited to former state and indiscriminately imitates above-mentioned embodiment, the implementation phase in the scope that does not break away from its main points, can be out of shape the back and specialize inscape.In addition, can be combined to form various inventions by disclosed a plurality of inscapes in the above-mentioned embodiment suitable.For example, also can from embodiment, delete several inscapes in the disclosed inscape.Moreover, the inscape of also can appropriate combination in different embodiments, using.
Claims (2)
1. the generating apparatus of a program design file is used for generating a plurality of programs of formation application program and the design document of described each program respectively, it is characterized in that,
Have:
The meta-model storage unit, be used to store following meta model information, this meta model information comprises: root directory definition information, it is shown for each, comprise the routine package name of the program ID that represents described application program, described application program and represent described table Table I D defined the first root directory value that representation program generates the destination, and, defined the second root directory value of representation program generation destination for described each application program with comprising described program ID; Abstract template file definition information, it is shown for each, the first corresponding template particular key of each program that has defined and generated, and for each pattern customizing messages of described application program, the second corresponding template particular key of each program that has defined and generated; Concrete template file definition information, it has defined the concrete template file of each program and design document for each described template particular key; With relative path definition information, it has defined the relative path of program generation destination for each described template particular key with comprising Table I D;
Template storage unit, its storage is by the concrete template file of described concrete template file definition information definition;
The design information input block, it is used to import the design information that comprises program ID, routine package name, pattern customizing messages, Table I D;
Model information output unit, its described design information are exported after being transformed to the model information of abstract form of the concrete technical specification that does not rely on described each program;
The design document generation unit, it is according to the concrete template of the Table I D in the described model information, described relative path definition information, described design document, generation comprises the design document that is presented at the complete list of the filename that has made up this Table I D in the described relative path definition information as complete list, and this design document is write described design document storage unit;
According to abstract template file definition information in the Table I D in the described model information and pattern customizing messages, the described meta model information and concrete template file definition information, determine the unit of the concrete template file in the described template storage unit; With
The program generation unit, it is according to Table I D in the described model information and described relative path definition information, generate the filename of each program, by this document name is generated each program as the filename of the concrete template file of described decision, according to described root directory definition information and described relative path definition information, this each program is write described program storage unit (PSU).
2. the generating apparatus of program design file according to claim 1 is characterized in that,
Described root directory definition information has also defined the 3rd root directory value of representing to duplicate the destination for each kind of duplicate object file,
Described metamessage also includes: for each kind of duplicate object file, defined the duplicate object document definition information of copy source filename; For each described copy source filename, defined the copy source document definition information of the memory location of copy source file; With for each described copy source filename, defined the destination document definition information of duplicating of duplicating the destination document name,
The generating apparatus of described program design file also has:
With described the 3rd root directory value corresponding file storage unit and
According to described root directory definition information and the described destination document definition information of duplicating, copy source file, copy to the file copy unit of described file storage unit by described duplicate object document definition information and described copy source document definition information definition.
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008148391A JP4672754B2 (en) | 2008-06-05 | 2008-06-05 | Program / design document generation apparatus and program / design document generation program |
JP2008148391 | 2008-06-05 | ||
JP2008-148391 | 2008-06-05 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101599014A true CN101599014A (en) | 2009-12-09 |
CN101599014B CN101599014B (en) | 2012-07-25 |
Family
ID=41420469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101426496A Active CN101599014B (en) | 2008-06-05 | 2009-06-04 | Generating device of program or design documents |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP4672754B2 (en) |
CN (1) | CN101599014B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164199A (en) * | 2011-12-14 | 2013-06-19 | ***股份有限公司 | Application model generating device and application model generating method based on layered structure |
CN104813287A (en) * | 2012-09-26 | 2015-07-29 | 株式会社东芝 | Program/design document generation device and program |
CN112579153A (en) * | 2020-12-15 | 2021-03-30 | 中国航发控制***研究所 | Method for generating software model design description |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5426632B2 (en) * | 2011-09-30 | 2014-02-26 | 株式会社東芝 | Application generation program and apparatus |
JP5835291B2 (en) * | 2013-09-05 | 2015-12-24 | コニカミノルタ株式会社 | COMMUNICATION DEVICE, ITS CUSTOMIZATION METHOD, AND COMPUTER PROGRAM |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000231479A (en) * | 1999-02-10 | 2000-08-22 | Nec Corp | Software component integrating method and its device |
JP2003076544A (en) * | 2001-08-30 | 2003-03-14 | Nippon Yunishisu Kk | Method and device for developing web application |
JP2005242479A (en) * | 2004-02-24 | 2005-09-08 | Toshiba Corp | Data converting device and program for data conversion |
JP2006106866A (en) * | 2004-09-30 | 2006-04-20 | Toshiba Corp | Apparatus for assisting in changing conversion rule and program for assisting in changing conversion rule |
JP4924976B2 (en) * | 2005-03-23 | 2012-04-25 | 新日鉄ソリューションズ株式会社 | Software development support system |
JP2006309697A (en) * | 2005-03-31 | 2006-11-09 | Keiichi Naito | Computer system, program for computer system, and program generating application program based on spreadsheet program among the programs |
JP2007087127A (en) * | 2005-09-22 | 2007-04-05 | Open Stream Inc | Data generation program, storage medium for storing the program, open source software developmental environment integration program, and storage medium for storing the program |
CN101034349A (en) * | 2007-04-06 | 2007-09-12 | 西安万年科技实业有限公司 | Data base application system development platform based on functional design |
-
2008
- 2008-06-05 JP JP2008148391A patent/JP4672754B2/en active Active
-
2009
- 2009-06-04 CN CN2009101426496A patent/CN101599014B/en active Active
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164199A (en) * | 2011-12-14 | 2013-06-19 | ***股份有限公司 | Application model generating device and application model generating method based on layered structure |
CN103164199B (en) * | 2011-12-14 | 2016-05-18 | ***股份有限公司 | Application model generating apparatus and method based on hierarchy |
CN104813287A (en) * | 2012-09-26 | 2015-07-29 | 株式会社东芝 | Program/design document generation device and program |
CN104813287B (en) * | 2012-09-26 | 2017-11-03 | 株式会社东芝 | The generating means and program of program and design sheets |
CN112579153A (en) * | 2020-12-15 | 2021-03-30 | 中国航发控制***研究所 | Method for generating software model design description |
Also Published As
Publication number | Publication date |
---|---|
JP4672754B2 (en) | 2011-04-20 |
JP2009294940A (en) | 2009-12-17 |
CN101599014B (en) | 2012-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6158001A (en) | Automatic configuration generation | |
US7398514B2 (en) | Test automation stack layering | |
US6546365B1 (en) | System for national language support and automated translation table | |
US10198425B2 (en) | Methods and apparatus for reusing report design components and templates | |
Wasserman et al. | The future of programming | |
US8255790B2 (en) | XML based form modification with import/export capability | |
US7284194B2 (en) | XML based report generator | |
KR101159317B1 (en) | Method and apparatus for viewing and interacting with a spreadsheet from within a web browser | |
US6590589B1 (en) | Automatic generation of fastpath applications | |
EP1830275A1 (en) | Information distribution system | |
MXPA04008849A (en) | Programming interface for a computer platform. | |
US20080189682A1 (en) | In-Line Editor | |
CN101599014B (en) | Generating device of program or design documents | |
CN103226545A (en) | Data format conversion system, and method and system for batch loans information import | |
WO2020259141A1 (en) | File processing method and apparatus, and computer device | |
WO2009105994A1 (en) | Method and device of dealing with documents meeting the document database standard | |
JP2001125855A (en) | Dynamic web page generation program | |
TWI393897B (en) | Integrated test method and system using the same | |
JP2005190458A (en) | Provision method of electronic document with function, its program, and its device and system | |
JP2009205353A (en) | User interface providing method, and device and program therefor | |
JP5450752B1 (en) | Program and design document generation apparatus and program | |
KR100346983B1 (en) | Web editor for wireless internet and operating method therefor | |
JP2007304778A (en) | Test method for program, program, test device and application development system | |
TW525088B (en) | Method and apparatus for generating structured documents for various presentations | |
US20090150767A1 (en) | Server having dynamic web page creating function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |