Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Interface creating method and platform based on XML document description

An interface generation and document generation technology, applied in the direction of program control devices, etc., can solve the problems of low system maintainability and scalability, low system development efficiency, low reusability, etc., to improve maintainability and scalability. The effect of scalability, improving system development efficiency, and improving reusability

Inactive Publication Date: 2008-12-31
BEIHANG UNIV
View PDF0 Cites 79 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when different interfaces need to be created according to different interface requests, and there are a large number of interface requests, the use of hard coding will lead to low development efficiency, reduced software maintainability and scalability
In addition, the hard-coded interface generation method does not separate the business logic from the interface application logic. The result of mixing the two will lead to confusion in the development process and difficulty in understanding the program logic, mainly in the following two aspects:
[0005] (1) System development efficiency is not high
Due to the large number of interface requests, it is necessary to write its business logic and interface logic for each interface request. In addition, the interface controls of the interface requests show great similarity in appearance, layout or operation, resulting in a lot of simple repetition of coding sex labor
The tight coupling between business logic and interface logic makes system developers not only pay attention to the specific realization of business functions, but also consider the design and presentation of the interactive interface. They cannot concentrate all their energy on the realization of business logic, which affects system development. s efficiency
[0006] (2) System maintainability and scalability are not high
For each new interface request, a set of interface logic needs to be rewritten, the reusability of existing work is very low, and the system needs to be recompiled and deployed, and the secondary development efficiency is low
In addition, because the interface generation model and the business model are used together, when the business model changes, the interface model will also change accordingly, the workload is heavy and new errors are likely to occur; at the same time, with the increase in the complexity of the interface, The complexity of the interface model will also increase, and it will become very difficult to implement the interface model
The maintainability and scalability of the system are very low
[0007] In the case of a large number of interface requests, the currently proposed interface generation method is more complex in the development of customized interface, and the degree of code sharing is low. In particular, it cannot reduce the workload of secondary development, and reduces the maintainability and scalability of the system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface creating method and platform based on XML document description
  • Interface creating method and platform based on XML document description
  • Interface creating method and platform based on XML document description

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The present invention will be further described in detail with reference to the accompanying drawings and embodiments.

[0045] An interface generation platform based on XML document description, such as figure 1 As shown, it includes a style document generating module 1, a data driving module 2, an interface generating engine 3, a style document parsing module 4 and an interface request mapping file 5. The style document generation module 1 generates a style description document 101 according to requirements. The data driver module 2 searches the data resource 6 for the corresponding data resource according to the control information of the style document generation module 1, and returns the interface control information to the style document generation module 1 in the file format corresponding to the original data resource. The interface generation engine 3 generates the final interface 301 by calling the SWT control set 302 according to the style model tree 401 and ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an interface generating method and a platform based on the description of an XML document; the method comprises the following steps: an interface generating engine searches a composed interface request mapping file; a memory address of a description document of styles is obtained and the description document of styles is searched; a style document analytic module is called so as to generate a corresponding style model tree; the interface layout is set according to the attribute of root nodes of the style model tree and is traversed in a mode of depth-first; a reflection mechanism and a script mode are adopted to generate an executing code of the event of a sound monitor of an interface control corresponding to leaf nodes of the model tree, thus generating the interface control and forming the final interface; by adopting the style model cache interface style description document, the times of document reading of the interface generating engine are reduced and the executing efficiency of the interface generating engine is improved; the interface features in the specific application background are analyzed, and a module document which reflects the requirement of the common interface is composed in advance; by introducing the module document, the reusability of the existing work is improved and the workload of a secondary development period is reduced.

Description

technical field [0001] The invention belongs to the field of computer applications, and relates to an interface generation method and platform, in particular to an interface generation method and platform based on XML document description. Background technique [0002] With the continuous development of computer technology, interactive interface generation technology has attracted more and more attention. Reflection technology provides a method for programs to dynamically obtain and maintain class information and call methods of class objects in the runtime environment. The current mainstream programming languages ​​support reflection technology. For example, the java.lang.reflect package in the Java language encapsulates several APIs. Through these APIs, classes unknown to the program during compilation can be loaded and used at runtime. Because the reflection technology has the characteristic that it does not need to compile the target class in advance, it can be used to ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44
Inventor 李先军郑雯余丹李重文马世龙
Owner BEIHANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products