CN1499368A - Method for creating interface and generation system based on description - Google Patents

Method for creating interface and generation system based on description Download PDF

Info

Publication number
CN1499368A
CN1499368A CNA021483582A CN02148358A CN1499368A CN 1499368 A CN1499368 A CN 1499368A CN A021483582 A CNA021483582 A CN A021483582A CN 02148358 A CN02148358 A CN 02148358A CN 1499368 A CN1499368 A CN 1499368A
Authority
CN
China
Prior art keywords
style information
module
xml
serializing
style
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
Application number
CNA021483582A
Other languages
Chinese (zh)
Other versions
CN1253788C (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 02148358 priority Critical patent/CN1253788C/en
Publication of CN1499368A publication Critical patent/CN1499368A/en
Application granted granted Critical
Publication of CN1253788C publication Critical patent/CN1253788C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

Interfaces are developed based on template and modality manager as well as method of using description. The method includes following steps: writing XML original modality through using XML editor; converting XML original modality to sequence modality information; reading in sequence modality information to generate modality information object; reading in modality information object to obtain template instance needed; template instance displayed on window of interface module. The interface generation system includes XML original modality information module, modality information converter module, modality information object module and sequence modality information module. The invention reduces workload for developing interface of managing network providing advantages of easy using template, raising system performance, safety and consistency of interface system.

Description

A kind of based on interface creating method and the generation system described
Technical field
The present invention relates to a kind of interface generation system and generation method thereof of program, particularly a kind of based on interface generation system and the generation method thereof described.
Background technology
In the performance history of computer program, the exploitation at a lot of interfaces is arranged, have the IDK of many computer programs for the exploitation at interface.For example, in some visual development instruments such as JBuilder, just provide some visual classes, set class exactly as JTree, the developer can use it to develop the tree graph interface of oneself.JClass, ILog etc. also strengthen at the interface of the class enterprising hand-manipulating of needle in the basic interface of Java to a certain field.But should not be used for encapsulation at telecommunicatioin network management in JBuilder, so the user needs once more to encapsulate at the operation of oneself in the program that the exploitation webmaster is used.Interface customizing will change code and recompility, and the code sharing degree is not enough.Therefore, in the webmaster product development process, some interface is from appearance, all have similarity in the operation that comprises, according to the traditions of the past development approach, these interfaces all are to develop separately respectively, and what write all is the hard code of repetition, has only some customization codes to change to some extent, so just make that the interface development workload is big, and the interface disunity that develops.
Summary of the invention
The object of the present invention is to provide a kind of interface generation system, utilize this system can significantly reduce development workload, can further encapsulate, make template more easy-to-use template based on description.
Another object of the present invention provides a kind of based on the interface creating method of describing, this method manages, adopts the mode of describing to develop these interfaces based on template and pattern, thereby the minimizing workload, and make these interfaces from outward appearance, the operation in view of all be consistent.
For addressing the above problem, the invention provides a kind of interface creating method based on description, this method comprises the steps: that a. uses xml editor to write the XML original pattern; B. convert the XML original pattern to the serializing style information; C. read in the serializing style information, generate the style information object; D. read the template instances that the style information object obtains the desired style; E. template instances is presented in the display window of interface module.
It is a kind of based on the interface generation system of describing that the present invention also provides, and this system comprises: XML original pattern information module, style information conversion module, the style information module of style information object module and serializing; XML original pattern information module wherein: this module is write the XML file by xml editor, generates XML original pattern information; Style information conversion module: receive XML original pattern information, generate the style information object,, the formation sequence style information, by unserializing the serializing style information is converted to the style information object at last then to this style information object sequenceization; The style information object module: this module receives the style information object from the pattern converter, and this style information object is existed in the internal memory, then it is sent into the style information converter; The style information module of serializing: this module receives the style information from the serializing of style information converter, is stored in it on disk and duplicates; Then the style information of serializing is sent into the style information converter and revert to style information object in the internal memory, to accelerate reading of the expressed information of pattern.
As from the foregoing, of the present invention based on the interface generation system of describing and generation method thereof compared with prior art, have following advantage: 1, the interface system at telecommunicatioin network management has carried out nearly step encapsulation to template, makes template more easy-to-use; 2, adopt the mode of describing to generate the interface, reduced the network management interface development workload greatly; 3, the pattern descriptor is carried out persistence, improved system performance, increased security; 4, increased the consistance of interface system.
Description of drawings
Fig. 1 is the schematic diagram of development stage of the present invention;
Fig. 2 is the schematic diagram of runtime of the present invention;
Fig. 3 is of the present invention based on the interface generation system of describing.
Embodiment
The present invention is that (and other third parties strengthen class JClass to the interface class of using Java, classes such as ILog) expand, packing is provided at field of telecommunications java class commonly used, and can use XML (eXtended Markup Language, extension tag language) interface description to customize.
In the present invention, some template and pattern files are provided at telecommunication network management interface.Template is exactly some UI (User Interface, user interface) assemblies that encapsulated operation, and the developer can write the pattern file to the template more similar to the interface of oneself when exploitation, generate the interface that oneself needs.The pattern file comprises original pattern and serializing pattern file, and the original pattern file is described with the XML file, just our description document of mentioning usually.At the template of each type, we provide a corresponding D TD (Document TypeDefinition, the DTD (Document Type Definition) file of XML) file.Tag (sign) in the corresponding XML pattern file has been described in dtd file.The network management interface developer utilizes these tag to provide style information to template corresponding.When interface module need show corresponding interface, read the example that these style informations just can generate this template.Considering if all resolve style information when showing corresponding interface at every turn to make the performance of total system descend, (generally constant) that style information neither often change in the runtime, so style information is carried out serializing, the pattern of storage formation sequenceization, performance will improve greatly like this.Style information is carried out using the pattern of serializing can bring following advantage after the serializing:
1, real time execution performance preferably: do not need at every turn all to go real time parsing during interface display.
2, in development stage, when the developer occurs when wrong writing the XML file, he can not pass through when using the serializing of XML file converteractivemil builder activemil builder, so just mistake can not omitted the runtime.
3, because the pattern file is not an editable form, so nobody can revise style information.
4, interface display module can directly load the style information of persistence, and an example that generates specific template comes display interface.
Interface creating method of the present invention comprises development procedure and operating procedure, describes in detail respectively below with reference to Fig. 1 and Fig. 2, and wherein the principle of development stage has comprised the step of formation sequence style information as shown in Figure 1 in development procedure.The principle of runtime has comprised the step of utilizing the serializing style information to generate needed interface template as shown in Figure 2 in operating procedure.
Develop the detailed description of step and operating procedure below:
Development procedure: the developer finishes writing XML pattern file earlier, and the style information converter is read style information earlier from the XML file, generates the style information object in the internal memory, stores into the style information obj ect file of serializing then.Original pattern file has become the style information of serializing through the processing of style information converter.Its step is as follows:
1, the network management interface developer according to this formwork style dtd file, uses XML (extending mark language) editing machine (for example can use the xml editor of band in the JBuilder) to write the XML file according to the template that oneself will use;
2, carry out the conversion of original pattern by the style information converter that uses this template to the serializing pattern;
3, generate and directly can allow the style information object of the serializing that template reads.
Operating procedure: the principle of runtime as shown in Figure 2, under the driving of interface module, the style information converter reads the style information obj ect file of serializing, generate the style information object (speed utilizes the style information manager to generate style information object in the internal memory faster than development stage greatly) in the internal memory then, interface module reads the style information object in the internal memory, and an example that generates template then is presented in the display window of interface module.Its concrete steps are as follows:
1, interface module drives the style information manager;
2, the style information manager style information that reads in serializing generates the style information object in the internal memory;
3, template reads style information object in the internal memory and obtains the template instances played up by pattern;
4, template instances is presented in the display window of interface module.
Describe in detail of the present invention below based on the interface generation system of describing.Referring to Fig. 3, interface of the present invention as can be seen from Figure 3 generation system comprises as lower module: XML original pattern information module; The style information conversion module; The style information module of style information object module and serializing.The function of style information converter is to change between original style information, serializing style information, internal memory style information object three.Wherein the composition of style information conversion module comprises: XML analyzer module, style information processor module, serializing machine module and unserializing machine module.Wherein the function of each several part and operational scheme are as follows:
XML original pattern information module: this module is write the XML file by the xml editor of some tool software such as JBuilder, generates XML original pattern information;
Style information conversion module: in this pattern converter, comprise XML analyzer, style information processor, serializing machine module and unserializing machine module.Wherein the XML analyzer receives the XML original pattern information 1 from XML original pattern information module, carries out the analysis of information in the original XML file, generates an XML inforamtion tree, and what comprise all is the data 2 of using string representation; File after analyzing is passed to the style information processor carry out pre-service, its visit XML inforamtion tree, type according to data is carried out higher level processing, style information object after the processing not merely is a character string, also have for example more high-rise style information objects such as color, font, sound, button, panel, thereby generate the style information object 3 in the understandable internal memory of a kind of template;
The style information object module: this module receives the style information object 3 from the pattern converter, and this style information object existed in the internal memory, then it is sent into the style information converter, receive by the serializing machine module in the style information converter, style information object 4 is carried out serializing, then output;
The style information module of serializing: this module receives the style information 5 from the serializing of style information converter, operation such as also it can be stored on the disk and duplicate; In the runtime, the style information 6 of serializing is sent into unserializing machine module in the style information converter, this module can be carried out the analysis and the processing of the style information of lower level, and directly read the serializing style information, the style information that continues on disk is carried out anti-ensured sustained development (being unserializing), revert to the style information object 7 in the internal memory again, accelerate reading of the expressed information of pattern.
Description of the invention, describe in detail and above-mentioned accompanying drawing be not be used for limiting of the present invention.To those skilled in the art, under instruction of the present invention, can carry out various corresponding modification and can not exceed the spirit and scope of the present invention, but this variation should be included within claim of the present invention and the equivalent scope thereof.

Claims (9)

1. the interface creating method based on description is characterized in that comprising the steps:
A. use xml editor to write the XML original pattern;
B. convert the XML original pattern to the serializing style information;
C. read in the serializing style information, generate the style information object;
D. read the template instances that the style information object obtains the desired style;
E. template instances is presented in the display window of interface module.
2. as claimed in claim 1 based on the interface creating method of describing, it is characterized in that described step a further comprises the steps:
The XML analytical procedure: the information to the XML original pattern is analyzed, and generates an XML inforamtion tree, and what it comprised all is the data of using string representation;
The style information treatment step: visit XML inforamtion tree, carry out higher level processing according to the type of data, the style information object after the processing also includes the style information object of color, font, sound, button, panel except that character string.
3. as claimed in claim 1 based on the interface creating method of describing, it is characterized in that described step b also comprises from the XML original pattern to read style information, in internal memory, generate the style information object, save as the step of the style information object of serializing then.
4. the interface creating method based on description as claimed in claim 1 is characterized in that described steps d also comprises the style information object that directly reads in the internal memory, needs the step of expressing information to read pattern.
5. as claimed in claim 1 based on the interface creating method of describing, it is characterized in that described step c comprises that further the style information to being kept on the disk carries out anti-ensured sustained development, reverts to the unserializing step of the style information object in the internal memory with it.
6. the interface generation system based on description is characterized in that this system comprises: XML original pattern information module, style information conversion module, the style information module of style information object module and serializing; Wherein
XML original pattern information module: this module is write the XML file by xml editor, generates XML original pattern information (1);
Style information conversion module: receive XML original pattern information (1), generate style information object (3), then to this style information object sequenceization, formation sequence style information (5), by unserializing the serializing style information is converted to style information object (7) at last;
The style information object module: this module receives the style information object (3) from the pattern converter, and this style information object is existed in the internal memory, then it is sent into the style information converter;
The style information module of serializing: this module receives the style information (5) from the serializing of style information converter, is stored in it on disk and duplicates; Then the style information (6) of serializing is sent into the style information converter and revert to style information object (7) in the internal memory, to accelerate reading of the expressed information of pattern.
7. as claimed in claim 6 based on the interface generation system of describing, it is characterized in that described style information converter comprises XML analyzer module, style information processor module, wherein
The XML analyzer module receives the XML original pattern information (1) from XML original pattern information module, carry out the analysis of XML original pattern information, generate an XML inforamtion tree, what comprise all is the data (2) of using string representation, and the data after analyzing are passed to the style information processor;
The style information processor module carries out pre-service, its visit XML inforamtion tree, type according to data is carried out higher level processing, style information after the processing not merely is a character string, also have for example more high-rise style information objects such as color, font, sound, button, panel, thereby generate the style information object (3) in the understandable internal memory of a kind of template.
8. as claimed in claim 6 based on the interface generation system of describing, it is characterized in that described style information converter also comprises serializing machine module, this module receives the styled objects information (4) of style information object module, and it is carried out serializing, then output (5).
9. as claimed in claim 6 based on the interface generation system of describing, it is characterized in that described style information converter also comprises unserializing machine module, the serializing style information (6) of receiving sequence style information module is style information object (7) with its unserializing.
CN 02148358 2002-11-11 2002-11-11 Method for creating interface and generation system based on description Expired - Fee Related CN1253788C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02148358 CN1253788C (en) 2002-11-11 2002-11-11 Method for creating interface and generation system based on description

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02148358 CN1253788C (en) 2002-11-11 2002-11-11 Method for creating interface and generation system based on description

Publications (2)

Publication Number Publication Date
CN1499368A true CN1499368A (en) 2004-05-26
CN1253788C CN1253788C (en) 2006-04-26

Family

ID=34233142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02148358 Expired - Fee Related CN1253788C (en) 2002-11-11 2002-11-11 Method for creating interface and generation system based on description

Country Status (1)

Country Link
CN (1) CN1253788C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370421C (en) * 2006-02-28 2008-02-20 杭州微元科技有限公司 Portable multimedia player interface customizing method using script file configuration
CN100390735C (en) * 2004-12-06 2008-05-28 国际商业机器公司 Method and system for producing GUI format
CN1972355B (en) * 2005-10-31 2011-07-13 三星电子株式会社 Method and system for controlling a device using xml document
CN101477532B (en) * 2008-12-23 2011-09-28 北京畅游天下网络技术有限公司 Method, apparatus and system for implementing data storage and access
CN102231104A (en) * 2010-07-29 2011-11-02 艾默生网络能源有限公司 Device and method for generating interface based on description
WO2012055133A1 (en) * 2010-10-27 2012-05-03 沈阳中科博微自动化技术有限公司 Method for configuring recipe editor of integrated circuit (ic) equipments
CN102646038A (en) * 2012-02-28 2012-08-22 广州市动景计算机科技有限公司 Control content display method, control content display device and mobile terminal
CN108427676A (en) * 2017-02-13 2018-08-21 北京新云胜科技有限公司 A kind of method that XML tag is quickly positioned and handled
CN109445780A (en) * 2018-09-19 2019-03-08 平安科技(深圳)有限公司 A kind of pattern edit methods and equipment

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100390735C (en) * 2004-12-06 2008-05-28 国际商业机器公司 Method and system for producing GUI format
US8560089B2 (en) 2005-10-31 2013-10-15 Samsung Electronics Co., Ltd. Device control method and system using XML document
CN1972355B (en) * 2005-10-31 2011-07-13 三星电子株式会社 Method and system for controlling a device using xml document
US9411791B2 (en) 2005-10-31 2016-08-09 Samsung Electronics Co., Ltd. Device control method and system using XML document
CN100370421C (en) * 2006-02-28 2008-02-20 杭州微元科技有限公司 Portable multimedia player interface customizing method using script file configuration
CN101477532B (en) * 2008-12-23 2011-09-28 北京畅游天下网络技术有限公司 Method, apparatus and system for implementing data storage and access
CN102231104B (en) * 2010-07-29 2013-10-23 艾默生网络能源有限公司 Device and method for generating interface based on description
CN102231104A (en) * 2010-07-29 2011-11-02 艾默生网络能源有限公司 Device and method for generating interface based on description
CN102456084A (en) * 2010-10-27 2012-05-16 沈阳中科博微自动化技术有限公司 Method for configuring formula editor of IC (Integrated Circuit) equipment
WO2012055133A1 (en) * 2010-10-27 2012-05-03 沈阳中科博微自动化技术有限公司 Method for configuring recipe editor of integrated circuit (ic) equipments
CN102646038A (en) * 2012-02-28 2012-08-22 广州市动景计算机科技有限公司 Control content display method, control content display device and mobile terminal
CN108427676A (en) * 2017-02-13 2018-08-21 北京新云胜科技有限公司 A kind of method that XML tag is quickly positioned and handled
CN109445780A (en) * 2018-09-19 2019-03-08 平安科技(深圳)有限公司 A kind of pattern edit methods and equipment

Also Published As

Publication number Publication date
CN1253788C (en) 2006-04-26

Similar Documents

Publication Publication Date Title
US7334223B2 (en) Apparatus and method for automatically migrating client server applications to other architectures and platforms
US7739665B2 (en) Dynamic conversion of object-oriented programs to tag-based procedural code
Souchon et al. A review of XML-compliant user interface description languages
RU2371758C2 (en) Programming interface for computer platform
KR101098718B1 (en) System and method for creating, managing and using code segments
US8056051B2 (en) Creating application content using an open model driven architecture
US8024703B2 (en) Building an open model driven architecture pattern based on exemplars
US5953526A (en) Object oriented programming system with displayable natural language documentation through dual translation of program source code
US7269792B2 (en) System and method for generating high-function browser widgets with full addressability
US20050091672A1 (en) Facilitating presentation functionality through a programming interface media namespace
JP2711220B2 (en) Fixed object storage system
CN1253788C (en) Method for creating interface and generation system based on description
US7669178B2 (en) System and method for interacting with computer programming languages at semantic level
Jácome-Guerrero et al. TOTEM: Reconciling multi-level modelling with standard two-level modelling
Cunningham et al. Developing language processing components with GATE (a user guide)
Schippers et al. Leveraging UML profiles to generate plugins from visual model transformations
US7657869B2 (en) Integration of external tools into an existing design environment
US20060101387A1 (en) An Open Model Driven Architecture Application Implementation Service
Tallis et al. The Briefing Associate: A Role for COTS applications in the Semantic Web.
Arief A framework for supporting automatic simulation generation from design
CA2377945A1 (en) Hierarchically structured control information editor
Chaari et al. A Generic Description Language for the Automatic Generation of Pervasive Medical User Interfaces: The SEFAGI Project
Mwaluseke et al. Evaluation of some of the current UML tools
Cooper et al. Object-Oriented Approaches to Developing Document Analysis Systems in the UIM Architecture
Allen Self Handbook Documentation

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060426

Termination date: 20141111

EXPY Termination of patent right or utility model