CN110795087B - Primitive processing method and device for UML design drawing and computer equipment - Google Patents

Primitive processing method and device for UML design drawing and computer equipment Download PDF

Info

Publication number
CN110795087B
CN110795087B CN201911292009.3A CN201911292009A CN110795087B CN 110795087 B CN110795087 B CN 110795087B CN 201911292009 A CN201911292009 A CN 201911292009A CN 110795087 B CN110795087 B CN 110795087B
Authority
CN
China
Prior art keywords
primitive
document
plug
class
document class
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.)
Active
Application number
CN201911292009.3A
Other languages
Chinese (zh)
Other versions
CN110795087A (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.)
Southern Power Grid Digital Grid Research Institute Co Ltd
CSG Finance Co Ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute Co Ltd
CSG Finance 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 Southern Power Grid Digital Grid Research Institute Co Ltd, CSG Finance Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN201911292009.3A priority Critical patent/CN110795087B/en
Publication of CN110795087A publication Critical patent/CN110795087A/en
Application granted granted Critical
Publication of CN110795087B publication Critical patent/CN110795087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a method, a device, a computer device and a storage medium for processing a graphic element of a UML design drawing, wherein the method comprises the following steps: generating a document class; the document class is a class used when document contents are processed in a document editing application; extracting the primitive information of the UML design drawing; constructing a mapping relation between the document class and the primitive information; and embedding the mapping relation into the document editing application in the form of a primitive plug-in. The method can improve the flexibility of UML design diagram processing.

Description

Primitive processing method and device for UML design drawing and computer equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for processing primitives of a UML design drawing, a computer device, and a storage medium.
Background
With the development of computer technology, when various projects are developed, UML design drawings are drawn by using a computer to better guide the later development work. For example, in the development of business systems, UML design drawings are typically drawn using EA drawing applications on a computer. In the conventional technology, such drawing applications use a well-defined design drawing template to define an application format to be used in a document editing application (such as a Word application, i.e. a Microsoft Office Word application), and related personnel can directly derive the application format according to the well-defined application document format. However, if the exported document does not meet the actual application requirement, the related personnel further need to process the template definition of the UML design drawing, so that the current processing mode of the UML design drawing is not flexible enough, and is difficult to meet the actual application requirement.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a primitive processing method, apparatus, computer device, and storage medium for a UML design drawing that can improve flexibility in processing the UML design drawing.
In a first aspect, a method for processing primitives of a UML design, the method comprising:
generating a document class; the document class is a class used when document contents are processed in a document editing application;
extracting the primitive information of the UML design drawing;
constructing a mapping relation between the document class and the primitive information;
and embedding the mapping relation into the document editing application in the form of a primitive plug-in.
In one embodiment, the document editing application is a Word application; the step of generating a document class includes: creating a plug-in development project in a visual studio integrated development environment; the plug-in development engineering is development engineering aiming at the primitive plug-in; in the plug-in development engineering, at least one document data member is obtained; the document data member is used for representing the processing mode of the document class on the document content; and carrying out position arrangement processing on the at least one document data member to obtain a document class.
In one embodiment, the step of constructing a mapping relationship between the document class and the primitive information includes: storing the primitive information in a document data member of the document class; and obtaining the mapping relation between the document class and the primitive information according to the storage position of the primitive information.
In one embodiment, after the step of embedding the mapping relationship in the document editing application in the form of a primitive plug-in, the method further comprises: acquiring a cursor position; determining a target primitive plugin corresponding to the cursor position; and calling a preview interface to preview and display the target primitive plug-in.
In one embodiment, after the step of embedding the mapping relationship in the document editing application in the form of a primitive plug-in, the method further comprises: when an operation instruction for the primitive plug-in is obtained, recording the operation frequency of the primitive plug-in; according to the operation frequency, classifying the primitive plug-in into an operation reference favorites; the operation reference favorites are used for outputting the primitive plugins when operation reference instructions are received.
In one embodiment, after the step of classifying the primitive plugin into an operation reference favorite according to the operation frequency, the method further includes: and displaying the primitive plugins in the operation reference favorites by using a treelist development control.
In one embodiment, after the step of embedding the mapping relationship in the document editing application in the form of a primitive plug-in, the method further comprises: classifying the primitive plug-ins; and according to the preset priority, sorting and displaying the priority levels of the classified primitive plug-ins.
In a second aspect, there is provided a primitive processing device for a UML design, the device comprising:
the document class generating module is used for generating a document class; the document class is a class used when document contents are processed in a document editing application;
the primitive information extraction module is used for extracting primitive information of the UML design drawing;
the mapping relation construction module is used for constructing the mapping relation between the document class and the primitive information;
and the plug-in embedding module is used for embedding the mapping relation into the document editing application in the form of a graphic primitive plug-in.
In a third aspect, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
generating a document class; the document class is a class used when document contents are processed in a document editing application;
extracting the primitive information of the UML design drawing;
constructing a mapping relation between the document class and the primitive information;
and embedding the mapping relation into the document editing application in the form of a primitive plug-in.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
generating a document class; the document class is a class used when document contents are processed in a document editing application;
extracting the primitive information of the UML design drawing;
constructing a mapping relation between the document class and the primitive information;
and embedding the mapping relation into the document editing application in the form of a primitive plug-in.
According to the method, the device, the computer equipment and the storage medium for processing the primitives of the UML design drawing, the document class used when the document editing application processes the document content is generated, the mapping relation between the document class and the primitive information of the extracted UML design drawing is constructed, and the mapping relation is embedded in the document editing application in the form of the primitive plug-in, so that the UML design drawing can be processed in a mode of using the primitive plug-in the document editing application, the flexibility of processing the UML design drawing is improved, and the practical application requirements are met.
Drawings
FIG. 1 is an internal block diagram of a computer device that performs a primitive processing method for UML design drawings in one embodiment;
FIG. 2 is a flow diagram of a method of primitive processing for a UML design diagram in one embodiment;
FIG. 3 is a flow chart illustrating a primitive processing method for UML design in another embodiment;
fig. 4 is a block diagram illustrating a structure of a primitive processing device for a UML design drawing in one embodiment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The primitive processing method for the UML design drawing provided by the invention can be applied to computer equipment, wherein the computer equipment can be a computer, a tablet equipment and other terminals, and the internal structure diagram of the computer equipment can be shown as figure 1. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a primitive processing method for a UML design drawing. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the architecture shown in fig. 1 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements may be implemented, as a particular computer device may include more or less components than those shown, or may be combined with some components, or may have a different arrangement of components.
In one embodiment, as shown in fig. 2, a primitive processing method for a UML design drawing is provided, and the method is applied to the computer device in fig. 1 for illustration, and includes the following steps:
step S202, generating a document class.
The document content can be transmitted in various display forms, such as a text form, a picture form, a table form and the like, further, the text form can comprise attributes of fonts, font sizes, font colors and the like, the picture form can also comprise attributes of picture sizes, picture gray values and the like, and the table form can comprise attributes of fonts, font sizes, table rows and the like in a table, wherein each attribute corresponds to one document data member. The document editing application may be an application for processing document content, for example, a Word application, and specifically, the processing of the document content by the document editing application may include selection of the document content, presentation form of the document content, and the like; the document editing application can process the document content through the document class, that is, the document class can be a class used by the document editing application when the document content is processed correspondingly, specifically, the document class can process the document content by selecting document data members and performing position arrangement processing on the document data members to obtain the document class, so that the document editing application can process the document content through the document class, wherein the document data members are used for representing the processing mode of the document class on the document content and can correspond to the attribute of the document content; further, the processing of the document data member by the position arrangement can be understood as processing the format and the content of the document data member.
In this step, when the document editing application on the computer device is to process the document content, a corresponding document class may be generated first, for example, a display form of the document content may be selected, the positions of the document content may be arranged, and then the display form and the arrangement positions may be packaged into a data structure, so as to obtain the document class.
In one embodiment, when the computer device generates the document class, the computer device may create a plug-in development project for the primitive plug-in the visual studio integrated development environment, and in the plug-in development project, obtain at least one document data member, and perform location arrangement processing on the at least one document data member, so as to obtain the document class.
Step S204, extracting the primitive information of the UML design drawing.
The unified modeling language UML (Unified Modeling language) can be applied to the software system design process of the project to assist in the development of the project, specifically, the application mode is to present the architecture module of the software system in the UML design diagram; the UML design drawing can be composed of a plurality of primitives, characters and connection relations among the primitives; the primitives have different kinds, for example, primitives for representing administrators and primitives for representing rights management, each primitive has primitive information (such as XML tags) corresponding to itself, the primitive information is used for representing the kinds of primitives, and further, the access paths can be used for representing the different kinds of primitive information.
In this step, the computer device may extract the primitive information of the UML design drawing. Specifically, the computer device may invoke an interface of drawing software, which may be used to draw a UML design drawing, such as EA (Enterprise Architect) drawing software, through which a primitive information document holding primitive information is opened and the primitive information is extracted from the primitive information document.
Step S206, constructing a mapping relation between the document class and the primitive information.
In this step, the computer device constructs a mapping relationship between the document class and the primitive information after generating the document class and acquiring the primitive information. Further, when the document class is constituted by document data members, the computer device may store the primitive information in the document data members of the document class, and obtain a mapping relationship between the document class and the primitive information by a storage position of the primitive information in the document class.
Step S208, embedding the mapping relation in the document editing application in the form of a primitive plug-in.
In this step, the computer device embeds the mapping relationship in the document editing application in the form of a primitive plug-in after constructing the mapping relationship of the document class and the primitive information.
In the primitive processing method for the UML design drawing, the document class is generated by generating the document class used when the document editing application processes the document content, the mapping relation is constructed between the document class and the primitive information of the extracted UML design drawing, and the mapping relation is embedded in the document editing application in the form of the primitive plug-in, so that the UML design drawing can be processed by using the primitive plug-in the document editing application, the flexibility of processing the UML design drawing is improved, and the practical application requirements are met.
In one possible scenario, the document editing application may include multiple primitive plugins of different types that are difficult for a user to distinguish when in use, resulting in reduced efficiency in processing UML design drawings. Based on this, the present invention provides an embodiment, in this embodiment, after embedding a mapping relationship in a document editing application in the form of a primitive plug-in, a computer device may acquire a cursor position, determine a target primitive plug-in corresponding to the cursor position, and then call a preview interface to preview the target primitive plug-in; further, when the mouse hovers over the primitive plug-in of the corresponding document class in the document editing software, the primitive plug-in of the document class corresponding to the cursor position is obtained by obtaining the cursor position of the mouse, and the API (Application Programming Interface) data access interface in the EA drawing software is called through the access path of the primitive of the UML design drawing in the EA drawing software stored in the document class, so that the corresponding primitive is obtained, and the preview interface is called for displaying.
In the embodiment, the visualization of the primitive plug-in is realized by acquiring the cursor position and calling the preview interface, that is, the mapping relation between the document class and the primitive information is visually presented, the effect obtained by the user is realized, and the efficiency of processing the UML design drawing is improved.
In one embodiment, after the step of embedding the mapping relationship in the document editing application in the form of a primitive plug-in, further comprising: when an operation instruction for the primitive plug-in is acquired, recording the operation frequency of the primitive plug-in; according to the operation frequency, the primitive plug-in is classified into an operation quotation favorites; the operation reference favorites are used for outputting the primitive plugins when operation reference instructions are received.
Specifically, after embedding the mapping relation in the document editing application in the form of a primitive plug-in, the computer device may further obtain an operation instruction, for example, a click operation instruction, for the primitive plug-in, record an operation frequency of operating the primitive plug-in according to the operation instruction, and then, according to the operation frequency, assign the primitive plug-in to an operation reference favorites; and when the computer equipment receives the operation reference instruction, the operation reference favorites are called, and the corresponding primitive plugins are output. Further, before receiving the operation referencing instruction, the computer apparatus may further include: and displaying the operation reference control in a document editing page of the document editing application, and generating an operation reference instruction when the triggering operation of the operation application control is acquired.
In the above embodiment, according to the operation instruction to the primitive plugin, the corresponding operation frequency is recorded, and the primitive plugin is classified into the operation application favorites according to the operation frequency, after the operation reference instruction is received, the corresponding primitive plugin is output by using the operation reference favorites, so that the user can edit the UML design drawing more conveniently, and the personalized customization requirement of the user is met.
In one embodiment, after the step of attributing the primitive plugin to the operation reference favorites according to the operation frequency, the method further comprises: and displaying the primitive plugins in the operation quotation favorites by using the treelist development control.
In this embodiment, after the graphic element plugin is categorized into the operation reference favorites, the computer device may further utilize a treelist development control to display the graphic element plugin in the operation application favorites, so that the display has a unified form.
In one embodiment, after the step of embedding the mapping relationship in the document editing application in the form of a primitive plug-in, further comprising: classifying the primitive plug-ins; and according to the preset priority, sorting and displaying the priority levels of the classified primitive plug-ins.
In this embodiment, the computer device may further classify the primitive plugins, and perform sorting display of priority levels on the classified primitive plugins according to preset priorities, so that a user may set priorities on the computer device according to actual use requirements, and the computer device displays the classified primitive plugins according to the priorities, thereby improving processing efficiency on the UML design drawing.
In order to better understand the above method, an application example of the primitive processing method of the UML design drawing applied to Word application of the present invention is described in detail below.
As UML (Unified Modeling language) technology is becoming more and more well known, the scale of applications in work is becoming larger and larger. The corresponding auxiliary design class software is also largely emerging, as is EA drawing software. Its good support and powerful capabilities for UML concepts and technologies make it a member of UML aided design class software. Are used in the software design process of many projects. Among the functions provided by the method, one function can be realized after various UML design diagrams are completed, a document export function of the function can be utilized, a document is generated from UML design diagrams generated in the design process according to an existing export document template provided by the function, the design diagrams are exported, and Word documents are formed for purposes of teaching, reporting and the like. However, there are two problems in this process:
when the exported UML design drawing is required to be exported according to the own document format requirement, the original document export format in EA drawing software is defined, and the drawing types and the graphic elements of the UML design drawing supported by the EA drawing software are complex, so that the learning cost of operators is high, and the processing efficiency of the UML design drawing is reduced.
When the document format template editing function of the second EA drawing software exports various UML design drawings and graphic elements thereof, good relation mapping between the UML design drawings in the EA drawing software and the format of an exported document is not realized, the mapping is easy to cause lost, various graphic elements are everywhere, the UML design drawings are difficult to accurately map in the exported document, usability is poor, user experience is poor, and practical requirements cannot be met.
Based on the method, the method utilizes the plug-in technology of Word application to realize fusion with the Word application on the basis of the UML design drawing and the graphic element provided by EA drawing software, and further carries out re-induction, classification and arrangement on the graphic element of the UML design drawing, and abstracts and encapsulates the graphic element.
Specifically, the steps that may be included in this application embodiment are described in connection with fig. 3:
step S302, extracting and recording XML labels of primitives of UML design drawings in EA drawing software;
step S304, using the office plug-in development function of the visual studio integrated development environment, creating a plug-in development project, and writing codes, wherein corresponding EA documents are opened through an api interface provided by EA drawing software, and XML labels are stored in corresponding data members in the data structure of document class according to the data structure of the document class defined in the plug-in development project; in this embodiment, the document class may be the following:
herein, "public class paragraph", "public class documentSection", "public modifyTableInfo", "public class document" may be considered as document classes containing one or more document data members, for example, "private String paragraphTitle", "private String paragraphTitleFont" etc. document data members are contained in the document class "public class paragraph".
Step S306, designing a favorites function (shortcut reference column) to realize personalized customization requirements of users. Recording the operation frequency of the primitive plug-in, and classifying the corresponding primitive plug-in into an operation reference favorites according to the operation frequency; and through treelist development control, the favorite function and the display effect similar to internet explorer are displayed.
Step S308, when a user performs design, when a mouse hovers over a primitive plug-in of a corresponding document class in a document template, acquiring the primitive plug-in of the document class corresponding to the cursor position by acquiring the cursor position of the mouse, calling a API (Application Programming Interface) data access interface in EA drawing software by an access path of primitives of UML design drawings stored in the document class and in the EA drawing software, acquiring content information stored in UML primitives by attributes in the document class, and finally displaying actual conditions seen in the EA drawing software by the corresponding primitive plug-in, thereby realizing the seen and obtained newly added characteristics.
In step S310, when the UML design diagram is processed, the actual effect derived from the Word document format of the UML design diagram can be checked by utilizing the preview function, so that the need of recompilation and then whole document derivation in the original EA drawing software each time is reduced, and the process is slow and tedious.
In the embodiment, the graphic elements of various UML design drawings supported by EA drawing software are fused into Word application in the form of plug-in, and the newly added characteristics of the design drawings to be exported and element visualization mapping, the obtained and the like are provided, so that the understanding of the relation between the graphic elements of various UML design drawings of EA drawing software and the graphic elements by operators is reduced, the accuracy of writing UML design drawings and graphic elements in Word format documents is improved, and the processing efficiency of UML design drawings is improved.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present invention is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present invention.
Based on the same ideas as the primitive processing method for the UML design drawing in the above embodiment, the present invention also provides a primitive processing device for the UML design drawing, which can be used to execute the primitive processing method for the UML design drawing. For ease of illustration, only those portions of the illustrated structure that are relevant to embodiments of the present invention are shown in the schematic structural diagram of an embodiment of a primitive processing device in a UML design, and those skilled in the art will appreciate that the illustrated structure is not limiting of the device and may include more or fewer components than illustrated, or may combine certain components, or a different arrangement of components.
In one embodiment, as shown in fig. 4, a primitive processing device 400 for a UML design drawing is provided, including: a document class generation module 402, a primitive information extraction module 404, a mapping relationship construction module 406, and a plug-in embedding module 408, wherein:
a document class generation module 402, configured to generate a document class; the document class is a class used when processing document contents in a document editing application;
a primitive information extraction module 404, configured to extract primitive information of the UML design drawing;
a mapping relationship construction module 406, configured to construct a mapping relationship between the document class and the primitive information;
plug-in embedding module 408 is configured to embed the mapping relationship in the document editing application in the form of a primitive plug-in.
In one embodiment, the document editing application is a Word application; the document class generating module 402 is further configured to create a plug-in development project in the visual studio integrated development environment; the plug-in development engineering is development engineering aiming at the graphic element plug-in; in plug-in development engineering, at least one document data member is acquired; the document data member is used for representing the processing mode of the document class on the document content; and carrying out position arrangement processing on at least one document data member to obtain a document class.
In one embodiment, the mapping relationship construction module 406 is further configured to store the primitive information in a document data member of the document class; and obtaining the mapping relation between the document class and the primitive information according to the storage position of the primitive information.
In one embodiment, the plug-in embedding module 408 is further configured to obtain a cursor position; determining a target graphic element plug-in corresponding to the cursor position; and calling a preview interface to preview and display the target primitive plug-in.
In one embodiment, the plug-in embedding module 408 is further configured to record, when an operation instruction for the primitive plug-in is obtained, an operation frequency of operating the primitive plug-in; according to the operation frequency, the primitive plug-in is classified into an operation quotation favorites; the operation reference favorites are used for outputting the primitive plugins when operation reference instructions are received.
In one embodiment, plug-in embedding module 408 is also used to expose primitive plug-ins in the operational reference favorites using treelist development controls.
In one embodiment, plug-in embedding module 408 is also used to categorize primitive plug-ins; and according to the preset priority, sorting and displaying the priority levels of the classified primitive plug-ins.
It should be noted that, the primitive processing device for the UML design drawing and the primitive processing method for the UML design drawing according to the present invention are in one-to-one correspondence, and the technical features and the beneficial effects described in the embodiments of the primitive processing method for the UML design drawing are applicable to the embodiments of the primitive processing device for the UML design drawing, and specific content may be referred to the description in the embodiments of the method according to the present invention, which is not repeated herein.
In addition, in the embodiment of the primitive processing device for a UML design drawing in the foregoing example, the logic division of each program module is merely illustrative, and in practical application, the above-mentioned function allocation may be performed by different program modules according to needs, for example, in view of configuration requirements of corresponding hardware or convenience of implementation of software, that is, the internal structure of the primitive processing device for a UML design drawing is divided into different program modules to perform all or part of the functions described above.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the method embodiments described above when the processor executes the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the respective method embodiments described above.
It will be appreciated by those skilled in the art that implementing all or part of the processes of the above embodiments may be accomplished by computer programs to instruct related hardware, and that the programs may be stored on a computer readable storage medium for sale or use as stand alone products. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires (electronic device), a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
The terms "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or (module) elements is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present invention and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. A method for processing primitives of a UML design, comprising:
generating a document class; the document class is a class used when document content is processed in Word application;
extracting XML labels of primitives of UML design drawings in EA drawing software;
storing the XML tag in a data member of the document class according to the document class belonging to the data structure defined in the plug-in development engineering so as to construct a mapping relation of the document class and the XML tag of the primitive;
embedding the mapping relation into the Word application in the form of a graphic element plug-in; the UML design diagram is correctly mapped in a Word document formed by the EA drawing software export in a manner that a primitive plug-in is used in the Word application.
2. The method of claim 1, wherein the step of generating a document class comprises:
creating a plug-in development project in a visual studio integrated development environment; the plug-in development engineering is development engineering aiming at the primitive plug-in;
in the plug-in development engineering, at least one document data member is obtained; the document data member is used for representing the processing mode of the document class on the document content;
and carrying out position arrangement processing on the at least one document data member to obtain a document class.
3. The method of claim 1, further comprising, after the step of embedding the mapping relationship in the Word application in the form of a primitive plug-in:
acquiring a cursor position;
determining a target primitive plugin corresponding to the cursor position;
and calling a preview interface to preview and display the target primitive plug-in.
4. The method of claim 1, further comprising, after the step of embedding the mapping relationship in the Word application in the form of a primitive plug-in:
when an operation instruction for the primitive plug-in is obtained, recording the operation frequency of the primitive plug-in;
according to the operation frequency, classifying the primitive plug-in into an operation reference favorites; the operation reference favorites are used for outputting the primitive plugins when operation reference instructions are received.
5. The method of claim 4, further comprising, after the step of attributing the primitive plugin to an operation reference favorites according to the operation frequency:
and displaying the primitive plugins in the operation reference favorites by using a treelist development control.
6. The method of claim 1, further comprising, after the step of embedding the mapping relationship in the document editing application in the form of a primitive plug-in:
classifying the primitive plug-ins;
and according to the preset priority, sorting and displaying the priority levels of the classified primitive plug-ins.
7. A primitive processing device for a UML design, the device comprising:
the document class generating module is used for generating a document class; the document class is a class used when document content is processed in Word application;
the primitive information extraction module is used for extracting XML labels of UML design drawings in EA drawing software;
the mapping relation construction module is used for storing the XML tag in a data member of the document class according to the document class which belongs to a data structure and is defined in the plug-in development engineering so as to construct the mapping relation of the document class and the XML tag of the primitive;
the plug-in embedding module is used for embedding the mapping relation into the Word application in the form of a graphic primitive plug-in; the UML design diagram is correctly mapped in a Word document formed by the EA drawing software export in a manner that a primitive plug-in is used in the Word application.
8. The apparatus of claim 7, wherein the document class generation module is further configured to: creating a plug-in development project in a visual studio integrated development environment; in the plug-in development engineering, at least one document data member is obtained; the plug-in development engineering is development engineering aiming at the primitive plug-in; the document data member is used for representing the processing mode of the document class on the document content; and carrying out position arrangement processing on the at least one document data member to obtain a document class.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN201911292009.3A 2019-12-16 2019-12-16 Primitive processing method and device for UML design drawing and computer equipment Active CN110795087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911292009.3A CN110795087B (en) 2019-12-16 2019-12-16 Primitive processing method and device for UML design drawing and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911292009.3A CN110795087B (en) 2019-12-16 2019-12-16 Primitive processing method and device for UML design drawing and computer equipment

Publications (2)

Publication Number Publication Date
CN110795087A CN110795087A (en) 2020-02-14
CN110795087B true CN110795087B (en) 2023-11-17

Family

ID=69448330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911292009.3A Active CN110795087B (en) 2019-12-16 2019-12-16 Primitive processing method and device for UML design drawing and computer equipment

Country Status (1)

Country Link
CN (1) CN110795087B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5671429A (en) * 1992-06-02 1997-09-23 Fuji Xerox Co., Ltd. Document processing system providing facilitated modification of document images
CN107678777A (en) * 2017-09-01 2018-02-09 郑州云海信息技术有限公司 A kind of management method of software document, device and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716573B2 (en) * 2005-09-28 2010-05-11 International Business Machines Corporation Method and system for broadly sharing UML-based models
KR101407069B1 (en) * 2012-10-09 2014-06-12 한국전자통신연구원 Method for authoring xml document and apparatus for performing the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5671429A (en) * 1992-06-02 1997-09-23 Fuji Xerox Co., Ltd. Document processing system providing facilitated modification of document images
CN107678777A (en) * 2017-09-01 2018-02-09 郑州云海信息技术有限公司 A kind of management method of software document, device and terminal

Also Published As

Publication number Publication date
CN110795087A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
CN108279964B (en) Method and device for realizing covering layer rendering, intelligent equipment and storage medium
KR101890831B1 (en) Method for Providing E-Book Service and Computer Program Therefore
CN105094832A (en) WYSIWYG method and system for dynamically generating user interface
CN107704239B (en) Configuration generation method and device and electronic equipment
CN110096275B (en) Page processing method and device
CN110688145B (en) Android MVP code automatic generation method and device, medium and electronic equipment
CN116484812A (en) Method and system for off-line page signing and reading circulation
CN111859053B (en) Data definition method of visual chart and chart library system
CN105956133B (en) Method and device for displaying file on intelligent terminal
CN113742530A (en) System, method, device, processor and storage medium for realizing generation and processing of digital poster picture based on SVG
CN104375814A (en) Generation method and device of an interface document
CN104715004B (en) Page description language output is obscured to hinder to be converted to editable format
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN117093316A (en) Cross-platform page rendering system, electronic equipment and storage medium
CN105808144A (en) Information copying method and device and terminal equipment
CN114168853A (en) Data visualization display method, device, medium and electronic equipment
CN102193789B (en) Method and equipment for realizing configurable skip link
CN105718434A (en) Natural language formula editing method and system
KR101709186B1 (en) Interactive multimedia E-book authoring apparatus and method
CN110795087B (en) Primitive processing method and device for UML design drawing and computer equipment
US11526578B2 (en) System and method for producing transferable, modular web pages
CN114443022A (en) Method for generating page building block and electronic equipment
CN114548056A (en) Rich text editing method, device and equipment
CN113010129A (en) Virtual studio full-flow multi-terminal blackboard writing extraction method and device

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
GR01 Patent grant
GR01 Patent grant