CN107741845A - A kind of generation method and device of self defined class example - Google Patents

A kind of generation method and device of self defined class example Download PDF

Info

Publication number
CN107741845A
CN107741845A CN201711257027.9A CN201711257027A CN107741845A CN 107741845 A CN107741845 A CN 107741845A CN 201711257027 A CN201711257027 A CN 201711257027A CN 107741845 A CN107741845 A CN 107741845A
Authority
CN
China
Prior art keywords
template
attribute
class
extension
self defined
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.)
Pending
Application number
CN201711257027.9A
Other languages
Chinese (zh)
Inventor
周由甲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN201711257027.9A priority Critical patent/CN107741845A/en
Publication of CN107741845A publication Critical patent/CN107741845A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Abstract

The invention provides a kind of generation method and device of self defined class example, wherein, this method includes:For each template type, at least one template is created, in addition to:To Template is determined in each template corresponding to each template type, wherein, the To Template belongs to To Template type;The To Template is instantiated according to the To Template type, generates templates-Extension class example and self defined class blank example;By the extension class example and the self defined class blank case combination, self defined class example is generated.Scheme provided by the invention can improve development efficiency.

Description

A kind of generation method and device of self defined class example
Technical field
The present invention relates to field of computer technology, the more particularly to a kind of generation method and device of self defined class example.
Background technology
With the increase of application software species, how development efficiency is improved, turn into the problem of developer pays close attention to always.
In application software field, for example, basic business model, list pattern, approval process, and some curstomer's sites are matched somebody with somebody Put, even if business implication or function are similar, it is also desirable to developer, or implement personnel and write configuration again, generate many weights Multiple work, cause development efficiency relatively low.
The content of the invention
The embodiments of the invention provide a kind of generation method and device of self defined class example, it is possible to increase development efficiency.
In a first aspect, the embodiments of the invention provide a kind of generation method of self defined class example, including:For each Template type, at least one template is created, in addition to:
To Template is determined in each template corresponding to each template type, wherein, the To Template belongs to To Template type;
The To Template is instantiated according to the To Template type, templates-Extension class example is generated and makes by oneself Adopted class blank example;
By the extension class example and the self defined class blank case combination, self defined class example is generated.
Preferably,
It is described to be directed to each template type, at least one template is created, including:
For template type each described, it is performed both by:Pre-set the general-purpose attribute corresponding with current template type; Receive the outside attribute information sent for current template type;According to the general-purpose attribute and the attribute information, mould is created Plate example;Obtain templates-Extension class example;The templates-Extension class example is carried out using the Template Service interface pre-set Processing;According to the templates-Extension class example after the template instances and processing, the template is created.
Preferably,
Described according to the general-purpose attribute and the attribute information, before drawing template establishment example, further comprise:
Determine condition depended item;
It is described according to the general-purpose attribute and the attribute information, drawing template establishment example, including:
According to the general-purpose attribute, the attribute information and the condition depended item set, the template instances are created;
The condition depended item, including:Module relies on item and patch relies on item;
The module relies on item, including:The group of any one or more in module numbering, module title and module release Close;
The patch relies on item, including:The group of any one or more in patch ISN, patch numbering and patch title Close.
Preferably,
The general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute and template wizard attribute;
It is described that the To Template is instantiated according to the To Template type, generation templates-Extension class example and Self defined class blank example, including:
Determine To Template extension generic attribute, target self defined class attribute and target mould corresponding to the To Template type Plate guide attribute;
The templates-Extension class of the To Template is handled using the Template Service interface;
According to the To Template guide attribute and To Template extension generic attribute, the template after processing is expanded Exhibition class is instantiated, and generates the templates-Extension class example;
According to the To Template guide attribute and the target self defined class attribute, to making by oneself in the To Template Adopted class is instantiated, and generates the self defined class blank example.
Preferably,
The attribute information, including:Template ISN, template number, template name, template version, template description, template contracting The combination of any one or more in sketch map, template icon, template type ISN, template classification ISN;
Preferably,
The general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute, template wizard attribute, user's classification The combination of any one or more in attribute;
Wherein, the templates-Extension generic attribute, including:The program set name and class name of templates-Extension class;The self defined class Attribute, including:The program set name and class name of self defined class;
Preferably,
The Template Service interface can realize any one or more in following methods:Sequencing method, unserializing Method, newly-increased store method, update method, loading method and delet method.
Second aspect, the embodiments of the invention provide a kind of generating means of self defined class example, including:
Creating unit, for for each template type, creating at least one template;
Determining unit, for being determined in each template corresponding to each template type for being created in the creating unit To Template, wherein, the To Template belongs to To Template type;
Instantiating unit, for being entered according to the To Template type to the To Template that the determining unit determines Row instantiation, generates templates-Extension class example and self defined class blank example;
Generation unit, it is real for the extension class example for generating the instantiating unit and the self defined class blank Example merges, and generates self defined class example.
Preferably,
The creating unit, for for template type each described, being performed both by:Pre-set and current template type Corresponding general-purpose attribute;Receive the outside attribute information sent for current template type;According to the general-purpose attribute and institute State attribute information, drawing template establishment example;Obtain templates-Extension class example;Using the Template Service interface pre-set to the mould Plate extension class example is handled;According to the templates-Extension class example after the template instances and processing, the mould is created Plate.
Preferably,
The creating unit, it is further used for determining condition depended item;
The creating unit, for according to the general-purpose attribute, the attribute information and the condition depended item set, wound Build the template instances;
The condition depended item, including:Module relies on item and patch relies on item;
The module relies on item, including:The group of any one or more in module numbering, module title and module release Close;
The patch relies on item, including:The group of any one or more in patch ISN, patch numbering and patch title Close.
Preferably,
The general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute and template wizard attribute;
The instantiating unit, for determining To Template extension generic attribute, target corresponding to the To Template type Self defined class attribute and To Template guide attribute;
The templates-Extension class of the To Template is handled using the Template Service interface;
According to the To Template guide attribute and To Template extension generic attribute, the template after processing is expanded Exhibition class is instantiated, and generates the templates-Extension class example;
According to the To Template guide attribute and the target self defined class attribute, to making by oneself in the To Template Adopted class is instantiated, and generates the self defined class blank example.
Preferably,
The attribute information, including:Template ISN, template number, template name, template version, template description, template contracting The combination of any one or more in sketch map, template icon, template type ISN, template classification ISN;
Preferably,
The general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute, template wizard attribute, user's classification The combination of any one or more in attribute;
Wherein, the templates-Extension generic attribute, including:The program set name and class name of templates-Extension class;The self defined class Attribute, including:The program set name and class name of self defined class;
Preferably,
The Template Service interface can realize any one or more in following methods:Sequencing method, unserializing Method, newly-increased store method, update method, loading method and delet method.
The embodiments of the invention provide a kind of generation method and device of self defined class example, this method can be by existing Customized example create the template corresponding with template type, wherein, customized example can include basic business mould Type, list pattern, approval process etc..When developer needs to develop different self-defined examples, it is only necessary to given birth to by template Into, it is not necessary to repeatedly developed, it is possible to increase development efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of the generation method for self defined class example that one embodiment of the invention provides;
Fig. 2 is a kind of structural representation of the generating means for self defined class example that one embodiment of the invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of generation method of self defined class example, this method can include Following steps:
Step 101:For each template type, at least one template is created;
Step 102:To Template is determined in each template corresponding to each template type, wherein, To Template belongs to To Template type;
Step 103:To Template is instantiated according to To Template type, templates-Extension class example is generated and makes by oneself Adopted class blank example;
Step 104:By extension class example and self defined class blank case combination, self defined class example is generated.
This method can create the template corresponding with template type by existing customized example, wherein, make by oneself The example of justice can include basic business model, list pattern, approval process etc..When developer needs to develop different make by oneself During adopted example, it is only necessary to pass through template generation, it is not necessary to repeatedly developed, it is possible to increase development efficiency.
In one embodiment of the invention, in order to meet the needs of user, the template under different templates type, pin are created To each template type, at least one template is created, including:
For each template type, it is performed both by:Pre-set the general-purpose attribute corresponding with current template type;Receive The attribute information that outside is sent for current template type;According to general-purpose attribute and attribute information, drawing template establishment example;Obtain mould Plate extension class example;Templates-Extension class example is handled using the Template Service interface pre-set;According to template instances With the templates-Extension class example after processing, drawing template establishment.
In template entity, template ISN, template number, template name, template version, template description, template icon are included Deng general-purpose attribute, also comprising the description of templates-Extension class, the set of condition depended item, self-defined the attributes such as configuration, parameter sets are performed. Wherein:Templates-Extension class describes to have recorded the templates-Extension class example of establishment, and the main part of template data;Condition depended Item set have recorded the environmental variance that the template data is relied on, for template to be shared to the school in other environment before use Test, avoid causing the mistake caused by relying on shortage of data;The guide configuration of the template defined in self-defined execution opportunity, i.e., Some template can configure without using the general guide set in its corresponding templates type, and be configured using customized guide, Carry out the example generation of self defined class;In parameter sets, the parameter used during using template establishment self defined class example is defined Numbering and classification.In templates-Extension class, the configuration of parametrization can be added, is become in guide using the content of input as parameter Amount, participate in construction self defined class example.The definition of these parameters is just recorded in parameter sets definition.The specific descriptions of template are such as Shown in table 1.
Table 1
In one embodiment of the invention, in order to determine environmental variance that template data is relied on, avoid causing because according to Mistake caused by relying shortage of data, according to general-purpose attribute and attribute information, before drawing template establishment example, further comprise:
Determine condition depended item;
According to general-purpose attribute and attribute information, drawing template establishment example, including:
According to general-purpose attribute, attribute information and condition depended item set, drawing template establishment example;
Condition depended item, including:Module relies on item and patch relies on item;
Module relies on item, including:The combination of any one or more in module numbering, module title and module release;
Patch relies on item, including:The combination of any one or more in patch ISN, patch numbering and patch title.
Condition depended item includes:Module relies on item and patch relies on item.Module relies on item and refers to the function mould that template is relied on Whether block is disposed in the environment, including the information such as module numbering, module title, module release;Patch rely on item refer to template institute according to Whether bad patch updates in the environment, including module information of patch ISN, patch numbering, patch title, patch correlation etc. Attribute.Meanwhile developer can be according to the demand of varying environment, self-defined distinctive environmental variance.By realize environment according to Rely item interface and condition depended item service interface, define condition depended item class, realize serializing, unserializing and the school for relying on item Proved recipe method, and in condition depended configuration file increase the type condition depended item configuration section, complete self-defined condition depended Item configuration.Template framework can be configured according to condition depended, and environment verification is carried out when template is imported, downloads and used.Table 2 is ring Border relies on the detailed description of item interface:
Table 2
In one embodiment of the invention, in order to obtain the self defined class example needed by template,
General-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute and template wizard attribute;
To Template is instantiated according to To Template type, generates templates-Extension class example and self defined class blank Example, including:
Determine corresponding to To Template type To Template extension generic attribute, target self defined class attribute and To Template to Lead attribute;
The templates-Extension class of To Template is handled using Template Service interface;
According to To Template guide attribute and To Template extension generic attribute, example is carried out to the templates-Extension class after processing Change, generate templates-Extension class example;
According to To Template guide attribute and target self defined class attribute, example is carried out to the self defined class in To Template Change, generate self defined class blank example.
The general-purpose attribute included in template type has:The templates-Extension generic attribute of self defined class, self defined class attribute, template Guide attribute, user's category attribute.Wherein:
The templates-Extension generic attribute of self defined class, include the program set name and class name of templates-Extension class.It is mainly used in creating The example of templates-Extension class.Templates-Extension class, as the part of template entity, for defining the template knot of self defined class Structure.The structure can be that the data full dose of self defined class is saved as template by self defined class in itself, i.e., can also use the side of increment Formula stores.Some variable parameters can also be defined in extension class, self defined class example is generated by way of parameter replacement.Exploitation Personnel can designed, designed templates-Extension class according to demand.
Self defined class attribute, include the program set name and class name of self defined class.It is mainly used in creating the example of self defined class.
Template wizard attribute, template wizard attribute are used for configuring by guide interface during template establishment self defined class entity With logic.Template framework provides two kinds of guide configurations:General guide configuration structure and self-defined guide.General guide configuration knot , it is necessary to definition wizard flow and wizard sheet UI in structure.The general guide framework of template framework, understand the design wizard according to definition, Embedded different wizard sheet, and possess the ability of processing guide branch, finally return that a self defined class example.It is self-defined to Lead, by the self-defined guide interface of developer and flow, and configurator set name and class name, reflected and called by template framework.
User's category attribute.Template for defining to type can be used by the user of which kind of classification.Such as exploit person Member, operation maintenance personnel etc., it is also possible to make control of authority.
Wherein, the description of guide configuration item is as shown in table 3:
Table 3
In one embodiment of the invention, Template Service interface can realize any one or more in following methods: Sequencing method, unserializing method, newly-increased store method, update method, loading method and delet method, specifically describe such as table Shown in 4.
Table 4
The above-mentioned target of the present invention, feature and advantage by a simply example, will be made to become apparent from, be understandable below.
Self defined class Model, business model is represented, now desire to do the template of a kind of Model classes.Create class ModelTemplate, inherit templates-Extension class base class BizTemplateContent.The logging template number by way of increment According to, the recording increment data in Model Template classes, and realize extraction and the merging method of increment.
ModelTemplateService classes are created, realize Template Service interface IBizTemplateDefService.
Template framework provides template type management function.In template type management function, a template class is increased newly Type --- business model.Class ModelTemplateService program set name and class name, configuration wizard flow are realized in configuration.
Add new condition depended item type:Traffic table data.When corresponding service table in current environment only be present, just permit Perhaps this template data is used.Condition depended item BizDataTableEnvDependence is created, realizes condition depended item interface IEnvDependence, and increase attribute TableName.Create condition depended item service class BizDataTableEnvDependenceService, condition depended item service interface IEnvDependenceService is realized, And configuration surroundings rely on item information in configuration file.
In Model designer, increase saves as template function.What invocation framenort provided saves as the public control of template FrmSaveAsTemplate.In public control, built-in initialization template entity B izTemplate, and other general-purpose attributes Assignment, as template number, template name, template icon, condition depended information, parameter information, it is self-defined perform configuration and Templates-Extension class ModelTemplate example.Save as guide perform terminate after, template data can be automatically saved.
Template framework provides template management function.In template management function, user can enter edlin to template, lead The operation such as go out, export or upload.
In Model establishment function, increase the function by template establishment, and the public mould for calling template framework to provide Plate homepage function.In template homepage, the template created is selected, template homepage can be according to the guide configuration set, generation Model examples simultaneously return.
As shown in Fig. 2 the embodiments of the invention provide a kind of generating means of self defined class example, including:
Creating unit 201, for for each template type, creating at least one template;
Determining unit 202, for determining mesh in each template corresponding to each template type for being created in creating unit 201 Template is marked, wherein, To Template belongs to To Template type;
Instantiating unit 203, the To Template for being determined according to To Template type to determining unit 202 carry out example Change, generate templates-Extension class example and self defined class blank example;
Generation unit 204, extension class example and self defined class blank example for instantiating unit 203 to be generated close And generate self defined class example.
In one embodiment of the invention, creating unit 201, for for each template type, being performed both by:In advance The general-purpose attribute corresponding with current template type is set;Receive the outside attribute information sent for current template type;Root According to general-purpose attribute and attribute information, drawing template establishment example;Obtain templates-Extension class example;Connect using the Template Service pre-set Mouth is handled templates-Extension class example;According to the templates-Extension class example after template instances and processing, drawing template establishment.
In one embodiment of the invention, creating unit 201, it is further used for determining condition depended item;
Creating unit 201, for according to general-purpose attribute, attribute information and condition depended item set, drawing template establishment example;
Condition depended item, including:Module relies on item and patch relies on item;
Module relies on item, including:The combination of any one or more in module numbering, module title and module release;
Patch relies on item, including:The combination of any one or more in patch ISN, patch numbering and patch title.
In one embodiment of the invention, general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute and mould Plate guide attribute;
Instantiating unit 203, for determining that To Template extension generic attribute, target are self-defined corresponding to To Template type Generic attribute and To Template guide attribute;
The templates-Extension class of To Template is handled using Template Service interface;
According to To Template guide attribute and To Template extension generic attribute, example is carried out to the templates-Extension class after processing Change, generate templates-Extension class example;
According to To Template guide attribute and target self defined class attribute, example is carried out to the self defined class in To Template Change, generate self defined class blank example.
In one embodiment of the invention, attribute information, including:Template ISN, template number, template name, template Any one or more in version, template description, template thumbnail, template icon, template type ISN, template classification ISN Combination.
In one embodiment of the invention, general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute, template The combination of any one or more in guide attribute, user's category attribute;
Wherein, templates-Extension generic attribute, including:The program set name and class name of templates-Extension class;Self defined class attribute, bag Include:The program set name and class name of self defined class.
In one embodiment of the invention, Template Service interface can realize any one or more in following methods: Sequencing method, unserializing method, newly-increased store method, update method, loading method and delet method.
The embodiments of the invention provide a kind of computer-readable recording medium, including execute instruction, when the computing device of storage control During execute instruction, the method for any of the above-described embodiment of storage control execution.
The embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
Memory is used to store execute instruction, and processor is connected with memory by bus, when storage control is run, The execute instruction of computing device memory storage, so that the method that storage control performs any of the above-described embodiment.
To sum up, each embodiment of the present invention at least has the effect that:
1st, in embodiments of the present invention, this method can be created relative with template type by existing customized example The template answered, wherein, customized example can include basic business model, list pattern, approval process etc..Work as developer When needing to develop different self-defined examples, it is only necessary to pass through template generation, it is not necessary to repeatedly developed, it is possible to increase open Send out efficiency.
2nd, in embodiments of the present invention, the data of self defined class can be stored in the form of template, and conveniently Go out new self defined class example using template establishment, meanwhile, importing, export, upload and the download function of template are supported, realizes mould Shared, the simplified operation of plate, raising operating efficiency are above-mentioned so as to solve the problems, such as.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply and exist between these entities or operation Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of elements not only include those key elements, But also the other element including being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, by sentence " including the key element that a 〃 〃 " is limited, it is not excluded that Other identical factor in the process including the key element, method, article or equipment also be present.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in computer-readable storage medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention, Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of generation method of self defined class example, it is characterised in that for each template type, create at least one mould Plate, in addition to:
To Template is determined in each template corresponding to each template type, wherein, the To Template belongs to target Template type;
The To Template is instantiated according to the To Template type, generates templates-Extension class example and self defined class Blank example;
By the extension class example and the self defined class blank case combination, self defined class example is generated.
2. the generation method of self defined class example according to claim 1, it is characterised in that
It is described to be directed to each template type, at least one template is created, including:
For template type each described, it is performed both by:Pre-set the general-purpose attribute corresponding with current template type;Receive The attribute information that outside is sent for current template type;It is real according to the general-purpose attribute and the attribute information, drawing template establishment Example;Obtain templates-Extension class example;The templates-Extension class example is handled using the Template Service interface pre-set; According to the templates-Extension class example after the template instances and processing, the template is created.
3. the generation method of self defined class example according to claim 2, it is characterised in that
Described according to the general-purpose attribute and the attribute information, before drawing template establishment example, further comprise:
Determine condition depended item;
It is described according to the general-purpose attribute and the attribute information, drawing template establishment example, including:
According to the general-purpose attribute, the attribute information and the condition depended item set, the template instances are created;
The condition depended item, including:Module relies on item and patch relies on item;
The module relies on item, including:The combination of any one or more in module numbering, module title and module release;
The patch relies on item, including:The combination of any one or more in patch ISN, patch numbering and patch title.
4. the generation method of self defined class example according to claim 2, it is characterised in that
The general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute and template wizard attribute;
It is described that the To Template is instantiated according to the To Template type, generate templates-Extension class example and make by oneself Adopted class blank example, including:
Determine corresponding to the To Template type To Template extension generic attribute, target self defined class attribute and To Template to Lead attribute;
The templates-Extension class of the To Template is handled using the Template Service interface;
According to the To Template guide attribute and To Template extension generic attribute, to the templates-Extension class after processing Instantiated, generate the templates-Extension class example;
According to the To Template guide attribute and the target self defined class attribute, to the self defined class in the To Template Instantiated, generate the self defined class blank example.
5. the generation method of self defined class example according to claim 2, it is characterised in that
The attribute information, including:Template ISN, template number, template name, template version, template description, template breviary The combination of any one or more in figure, template icon, template type ISN, template classification ISN;
And/or
The general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute, template wizard attribute, user's category attribute In the combination of any one or more;
Wherein, the templates-Extension generic attribute, including:The program set name and class name of templates-Extension class;The self defined class attribute, Including:The program set name and class name of self defined class;
And/or
The Template Service interface can realize any one or more in following methods:Sequencing method, unserializing method, Newly-increased store method, update method, loading method and delet method.
A kind of 6. generating means of self defined class example, it is characterised in that including:
Creating unit, for for each template type, creating at least one template;
Determining unit, for determining target in each template corresponding to each template type for being created in the creating unit Template, wherein, the To Template belongs to To Template type;
Instantiating unit, the To Template for being determined according to the To Template type to the determining unit carry out real Exampleization, generate templates-Extension class example and self defined class blank example;
Generation unit, closed for the extension class example for generating the instantiating unit and the self defined class blank example And generate self defined class example.
7. the generating means of self defined class example according to claim 6, it is characterised in that
The creating unit, for for template type each described, being performed both by:Pre-set relative with current template type The general-purpose attribute answered;Receive the outside attribute information sent for current template type;According to the general-purpose attribute and the category Property information, drawing template establishment example;Obtain templates-Extension class example;The template is expanded using the Template Service interface pre-set Exhibition class example is handled;According to the templates-Extension class example after the template instances and processing, the template is created.
8. the generating means of self defined class example according to claim 7, it is characterised in that
The creating unit, it is further used for determining condition depended item;
The creating unit, for according to the general-purpose attribute, the attribute information and the condition depended item set, creating institute State template instances;
The condition depended item, including:Module relies on item and patch relies on item;
The module relies on item, including:The combination of any one or more in module numbering, module title and module release;
The patch relies on item, including:The combination of any one or more in patch ISN, patch numbering and patch title.
9. the generating means of self defined class example according to claim 7, it is characterised in that
The general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute and template wizard attribute;
The instantiating unit, for determining that To Template extension generic attribute, target are made by oneself corresponding to the To Template type Adopted generic attribute and To Template guide attribute;
The templates-Extension class of the To Template is handled using the Template Service interface;
According to the To Template guide attribute and To Template extension generic attribute, to the templates-Extension class after processing Instantiated, generate the templates-Extension class example;
According to the To Template guide attribute and the target self defined class attribute, to the self defined class in the To Template Instantiated, generate the self defined class blank example.
10. the generating means of self defined class example according to claim 7, it is characterised in that
The attribute information, including:Template ISN, template number, template name, template version, template description, template breviary The combination of any one or more in figure, template icon, template type ISN, template classification ISN;
And/or
The general-purpose attribute, including:Templates-Extension generic attribute, self defined class attribute, template wizard attribute, user's category attribute In the combination of any one or more;
Wherein, the templates-Extension generic attribute, including:The program set name and class name of templates-Extension class;The self defined class attribute, Including:The program set name and class name of self defined class;
And/or
The Template Service interface can realize any one or more in following methods:Sequencing method, unserializing method, Newly-increased store method, update method, loading method and delet method.
CN201711257027.9A 2017-12-04 2017-12-04 A kind of generation method and device of self defined class example Pending CN107741845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711257027.9A CN107741845A (en) 2017-12-04 2017-12-04 A kind of generation method and device of self defined class example

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711257027.9A CN107741845A (en) 2017-12-04 2017-12-04 A kind of generation method and device of self defined class example

Publications (1)

Publication Number Publication Date
CN107741845A true CN107741845A (en) 2018-02-27

Family

ID=61238756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711257027.9A Pending CN107741845A (en) 2017-12-04 2017-12-04 A kind of generation method and device of self defined class example

Country Status (1)

Country Link
CN (1) CN107741845A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491204A (en) * 2018-03-30 2018-09-04 四川九阵科技股份有限公司 A kind of medical software system and method
CN110007900A (en) * 2019-02-13 2019-07-12 平安科技(深圳)有限公司 Tool-class call method, system, computer equipment and storage medium
CN112016912A (en) * 2020-07-08 2020-12-01 广州乐摇摇信息科技有限公司 Service access method, device, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130289749A1 (en) * 2006-10-16 2013-10-31 Invensys Systems, Inc. Bridging human machine interface technologies in a process automation and information management environment
CN104239072A (en) * 2014-10-15 2014-12-24 北京国双科技有限公司 Method and device for generating software procedure code
CN104267966A (en) * 2014-10-15 2015-01-07 北京国双科技有限公司 Method and device for generating program codes of software
CN106371891A (en) * 2016-08-30 2017-02-01 成都广达新网科技股份有限公司 Universal template configuration system and template configuration method thereof
CN106843891A (en) * 2017-02-06 2017-06-13 浪潮通用软件有限公司 A kind of list delamination method based on increment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130289749A1 (en) * 2006-10-16 2013-10-31 Invensys Systems, Inc. Bridging human machine interface technologies in a process automation and information management environment
CN104239072A (en) * 2014-10-15 2014-12-24 北京国双科技有限公司 Method and device for generating software procedure code
CN104267966A (en) * 2014-10-15 2015-01-07 北京国双科技有限公司 Method and device for generating program codes of software
CN106371891A (en) * 2016-08-30 2017-02-01 成都广达新网科技股份有限公司 Universal template configuration system and template configuration method thereof
CN106843891A (en) * 2017-02-06 2017-06-13 浪潮通用软件有限公司 A kind of list delamination method based on increment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491204A (en) * 2018-03-30 2018-09-04 四川九阵科技股份有限公司 A kind of medical software system and method
CN110007900A (en) * 2019-02-13 2019-07-12 平安科技(深圳)有限公司 Tool-class call method, system, computer equipment and storage medium
CN112016912A (en) * 2020-07-08 2020-12-01 广州乐摇摇信息科技有限公司 Service access method, device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
Perrouin et al. Reconciling automation and flexibility in product derivation
CN105608254B (en) A kind of the Automation Design method and platform towards Intelligent hardware system development
CN106030524B (en) Method and apparatus for visually realizing software code
CN107730196A (en) Project scheduling management method and terminal device
CN106156186A (en) A kind of data model managing device, server and data processing method
CN105512304B (en) It is online to generate internet application method and system integration method and support platform
US20170139685A1 (en) Visual software modeling method to construct software views based on a software meta view
CN102033743A (en) System and method for expanding model driving development capability by applying plug-in
CN107741845A (en) A kind of generation method and device of self defined class example
CN102693127B (en) Data-driven schema for describing and executing management tasks in a graphical user interface
CN106062711A (en) Compound controls
CN107741904A (en) Test machine method of automatic configuration, device, equipment and storage medium
CN106598620A (en) Code generation method and code generator
CN113721892A (en) Domain modeling method, domain modeling device, computer equipment and storage medium
CN107632827A (en) The generation method and device of the installation kit of application
CN110162464A (en) Mcok test method and system, electronic equipment and readable storage medium storing program for executing
CN108921600A (en) Realize the device and method and storage medium of information classification
CN115170048B (en) Workflow realization method, system and medium based on model and rule
CN109165102B (en) Constraint solver distributed scheduling method based on intelligent contracts
US20110066566A1 (en) Conceptual representation of business processes for cross-domain mapping
CN109588054A (en) Accurate and detailed modeling using distributed simulation engine to the system with large complicated data set
CN109542432A (en) Air control rule editing method and terminal device
CN104412183B (en) For configuring the system and method that the simulation process controlled in device is reported to the police
CN104239072B (en) The generation method and device of the program code of software
CN105224298B (en) A kind of General Purpose Interface modeling method based on Interface Element Construction of A Model INTERFACE MODEL

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180227