CN110795087A - Method and device for processing graphic elements of UML design drawing and computer equipment - Google Patents

Method and device for processing graphic elements of UML design drawing and computer equipment Download PDF

Info

Publication number
CN110795087A
CN110795087A CN201911292009.3A CN201911292009A CN110795087A CN 110795087 A CN110795087 A CN 110795087A CN 201911292009 A CN201911292009 A CN 201911292009A CN 110795087 A CN110795087 A CN 110795087A
Authority
CN
China
Prior art keywords
primitive
document
plug
class
design drawing
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
CN201911292009.3A
Other languages
Chinese (zh)
Other versions
CN110795087B (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

Images

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)
  • Stored Programmes (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to a method, a device, computer equipment and a storage medium for processing primitives of a UML design drawing, wherein the method comprises the following steps: generating a document class; the document class is a class used when processing document contents in a document editing application; extracting primitive information of the UML design drawing; constructing a mapping relation between the document class and the primitive information; embedding the mapping relation in the document editing application in the form of a primitive plug-in. By adopting the method, the flexibility of processing the UML design drawing can be improved.

Description

Method and device for processing graphic elements of 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 an 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, a UML design drawing is drawn by using a computer so as to better guide the later development work. For example, when developing projects such as business systems, a UML design drawing is typically rendered using an EA drawing application on a computer. In the conventional technology, such drawing applications will use a well-defined design template to define the application format of a document editing application (such as a Word application, i.e., a Microsoft Office Word application), and related personnel can directly export the document according to the well-defined application format. However, if the derived document does not meet the actual application requirement, the related personnel still need to further process the UML design drawing template definition, and as a result, the processing mode of the UML design drawing is not flexible enough at present, and it is difficult to meet the actual application requirement.
Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for processing primitives of a UML design drawing, which can improve flexibility of processing the UML design drawing, in view of the above technical problems.
In a first aspect, a method for primitive processing of a UML design drawing is provided, where the method includes:
generating a document class; the document class is a class used when processing document contents in a document editing application;
extracting primitive information of the UML design drawing;
constructing a mapping relation between the document class and the primitive information;
embedding the mapping relation 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 step of generating the document class includes: creating a plug-in development project in a visual studio integrated development environment; the plug-in development project is a development project aiming at the graphic element plug-in; acquiring at least one document data member in the plug-in development project; the document data member is used for representing the processing mode of the document class to the document content; and performing position arrangement processing on the at least one document data member to obtain a document class.
In one embodiment, the step of constructing the mapping relationship between the document class and the primitive information includes: storing the primitive information in the document data members 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 graphic primitive plug-in 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 plugin is obtained, recording the operation frequency of operating the primitive plugin; according to the operation frequency, the primitive plug-in is classified into an operation reference favorite; and the operation reference favorite is used for outputting the primitive plug-in when receiving an operation reference instruction.
In one embodiment, after the step of classifying the primitive plug-in into an operation reference favorite according to the operation frequency, the method further comprises the following steps: and displaying the primitive plug-ins in the operation reference favorite 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-in; and sequencing and displaying the sorted primitive plug-ins according to the preset priority.
In a second aspect, there is provided a primitive processing apparatus for a UML design drawing, the apparatus comprising:
the document class generating module is used for generating document classes; the document class is a class used when processing document contents 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 in the document editing application in a form of primitive plug-in.
In a third aspect, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
generating a document class; the document class is a class used when processing document contents in a document editing application;
extracting primitive information of the UML design drawing;
constructing a mapping relation between the document class and the primitive information;
embedding the mapping relation in 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 processing document contents in a document editing application;
extracting primitive information of the UML design drawing;
constructing a mapping relation between the document class and the primitive information;
embedding the mapping relation in 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 UML design drawing, the document class used when the document content is processed by the document editing application is generated, the mapping relation between the document class and the extracted primitive information of the UML design drawing is constructed, and the mapping relation is embedded into the document editing application in the form of the primitive plug-in, so that the UML design drawing can be processed in the document editing application in the mode of using the primitive plug-in, the flexibility of processing the UML design drawing is improved, and the method, the device, the computer equipment and the storage medium are suitable for actual application requirements.
Drawings
FIG. 1 is a diagram of the internal structure of a computer device that performs a method for primitive processing of a UML design in one embodiment;
FIG. 2 is a flow diagram illustrating a method for primitive processing for a UML design in one embodiment;
FIG. 3 is a flow chart illustrating a method for processing primitives for a UML design drawing in accordance with another embodiment;
FIG. 4 is a block diagram of a primitive processing apparatus for UML design drawing in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase 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. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can 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 device and other terminals, and the internal structure diagram can be shown in fig. 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 comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. 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 method of primitive processing 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, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the inventive arrangements and is not intended to limit the computing devices to which the inventive arrangements may be applied, as a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, as shown in fig. 2, a method for processing primitives of a UML design drawing is provided, which is exemplified by the method applied to the computer device in fig. 1, and includes the following steps:
step S202, generating a document class.
The document content may transmit information in various display forms, such as a text form, an image form, a table form, and the like, further, the text form may include attributes such as a font, a font size, a font color, and the like, the image form may also include attributes such as an image size, an image gray value, and the like, the table form may include attributes such as a font in a table, a font size, a table row, and the like, where each attribute corresponds to one document data member. The document editing application may be an application for processing document content, such as a Word application, and specifically, the processing of the document content by the document editing application may include selecting the document content, displaying 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 when the document editing application performs corresponding processing on the document content, specifically, the document content is processed through the document class, that is, a document data member is selected and subjected to position arrangement processing to obtain the document class, so that the document editing application processes the document content through the document class, wherein the document data member is used for representing a processing mode of the document class on the document content and can correspond to an attribute of the document content; further, performing the position arrangement processing on the document data member may also be understood as performing the format and content processing on the document data member.
In this step, when the document editing application on the computer device is to process the document content, the corresponding document class may be generated first, for example, the 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 arranged positions are encapsulated into a data structure to obtain the document class.
In an embodiment, when the computer device generates a document class, the computer device may create a plug-in development project for a primitive plug-in a visual studio integrated development environment, and in the plug-in development project, obtain at least one document data member, and perform position arrangement processing on the at least one document data member, thereby obtaining the document class.
And step S204, extracting the primitive information of the UML design drawing.
The unified Modeling language UML (unified Modeling language) can be applied to a software system design process of a project to assist the development of the project, and specifically, the application mode is to show an architecture module of the software system by a UML design drawing; the UML design drawing can be composed of a plurality of graphic elements, characters and connection relations among the graphic elements; the primitives are of different kinds, for example, a primitive for representing an administrator and a primitive for representing authority management, each primitive has primitive information (such as an XML tag) corresponding to itself, the primitive information is used for representing the kind of the primitive, and further, the different kinds of primitive information can be represented by an access path.
In this step, the computer device may extract primitive information of the UML design drawing. Specifically, the computer device may invoke an interface of drawing software, through which a primitive information document holding primitive information is opened, and the primitive information is extracted from the primitive information document, where the drawing software may be used to draw a UML design drawing, such as ea (enterprise architecture) drawing software.
And step S206, constructing the mapping relation between the document class and the primitive information.
In this step, after the computer device generates the document class and acquires the primitive information, a mapping relationship between the document class and the primitive information is established. Further, when the document class is composed of document data members, the computer device may store the primitive information in the document data members of the document class, and obtain the mapping relationship between the document class and the primitive information according to the storage position of the primitive information in the document class.
And step S208, embedding the mapping relation in the document editing application in the form of a primitive plug-in.
In this step, after the computer device constructs the mapping relationship between the document class and the primitive information, the mapping relationship is embedded in the document editing application in the form of a primitive plug-in.
In the method for processing the primitives of the UML design drawing, the document class used when the document content is processed by the document editing application 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 into the document editing application in the form of primitive plug-ins, so that the UML design drawing can be processed by using the primitive plug-ins in the document editing application, the flexibility of processing the UML design drawing is improved, and the method is suitable for actual application requirements.
In one possible scenario, a document editing application may include multiple different types of primitive plug-ins that are difficult for a user to distinguish when using, resulting in a reduction in the efficiency of processing UML plans. Based on this, the present invention provides an embodiment, in this embodiment, after embedding the mapping relationship in the document editing application in the form of a primitive plug-in, the computer device may obtain a cursor position, determine a target primitive plug-in corresponding to the cursor position, and then call a preview interface to preview and display the target primitive plug-in; further, when the mouse is hovered 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 an API (application Programming interface) data access interface in the EA drawing software is called through an 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 a preview interface is called for displaying.
In the embodiment, the visualization of the primitive plugin is realized by acquiring the cursor position and calling the preview interface, that is, the mapping relationship between the document class and the primitive information is visually presented, so that the what you see is what you get effect 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 form of a primitive plug-in the document editing application, the method further comprises: when an operation instruction for the primitive plugin is obtained, recording the operation frequency of operating the primitive plugin; according to the operation frequency, the graph element plug-ins are classified into operation reference favorites; the operation reference favorites are used for outputting the primitive plug-in when receiving the operation reference instruction.
Specifically, after the computer device embeds the mapping relationship in the document editing application in the form of the primitive plug-in, the computer device may further obtain an operation instruction for the primitive plug-in, for example, a click operation instruction, record an operation frequency of operating the primitive plug-in according to the operation instruction, and then classify the primitive plug-in into an operation reference favorite according to the operation frequency; and when the computer equipment receives the operation reference instruction, calling the operation reference favorite and outputting the corresponding primitive plug-in. Further, before receiving the operation reference instruction, the computer device may further include: and displaying an operation reference control in a document editing page of the document editing application, and generating an operation reference instruction when acquiring a trigger operation on the operation application control.
In the embodiment, the corresponding operation frequency is recorded according to the operation instruction of the primitive plug-in, the primitive plug-in is classified into the operation application favorite according to the operation frequency, and after the operation reference instruction is received, the corresponding primitive plug-in is output by using the operation reference favorite, so that a user can edit the UML design drawing more conveniently and meet the personalized customization requirement of the user.
In one embodiment, after the step of placing the primitive plug-in into the operation reference favorite according to the operation frequency, the method further comprises the following steps: and displaying the primitive plug-ins in the operation reference favorite by using the treelist development control.
In this embodiment, after the computer device classifies the primitive plug-in into the operation reference favorite, the computer device may also display the primitive plug-in the operation application favorite by using the treelist development control, so that the display has a unified form.
In one embodiment, after the step of embedding the mapping relationship in the form of a primitive plug-in the document editing application, the method further comprises: classifying the primitive plug-ins; and sequencing and displaying the sorted primitive plug-ins according to the preset priority.
In this embodiment, the computer device may further classify the primitive plug-ins, and perform priority ranking display on the classified primitive plug-ins according to a preset priority, so that a user may set a priority on the computer device according to an actual use requirement, and the computer device displays the classified primitive plug-ins according to the priority, thereby improving the processing efficiency of the UML design drawing.
In order to better understand the above method, an application example of the present invention to the primitive processing method of UML design drawing in Word application is described in detail below.
As the uml (unified Modeling language) technology becomes more and more well known to many people, the application rate in work is becoming larger and larger. Corresponding auxiliary design software is also widely emerged, and EA drawing software is the auxiliary design software. Its good support and powerful functions provided for the UML concept and technology, making it a member of the outstanding ones in UML-aided design-like software. Are used in the software design process for many projects. One of the multiple functions provided by the method can be realized after various UML design drawings are completed, and a UML design diagram generated in the design process can be generated into a document according to the existing export document template provided by the method by utilizing the document export function of the method, so that the export of the design drawings is carried out, and a Word document is formed for the purposes of presentation, report and the like. However, the following two problems exist in this process:
the first is that when the exported UML design drawing needs to be exported according to the document format requirement of the derived UML design drawing, the original document export format in the EA drawing software is already defined, and in addition, the drawing types and primitives of the UML design drawing supported by the EA drawing software are not only numerous, but also complex in relation, so that the learning cost of operators is increased, and the processing efficiency of the UML design drawing is reduced.
The document format template editing function of the second EA drawing software does not realize good relational mapping between the UML design drawing in the EA drawing software and the format of the exported document when exporting various UML design drawings and the primitives thereof, so that the loss is easily caused, various primitives are everywhere, the needed UML design drawing is difficult to be correctly mapped in the exported document, the usability is poor, the user experience is poor, and the actual needs cannot be met.
Based on the UML design drawing and the primitives provided by EA drawing software, the method adopts the plug-in technology of Word application to realize the fusion with the Word application, and further performs the re-induction, classification and arrangement, abstraction and encapsulation on the primitives of the UML design drawing.
Specifically, steps that may be included in this application embodiment are described in conjunction with fig. 3:
step S302, extracting and recording XML tags of primitives of a UML design drawing in EA drawing software;
step S304, establishing a plug-in development project by utilizing the office plug-in development function of the visual studio integrated development environment, and compiling codes, wherein a corresponding EA document is opened through an api interface provided by EA drawing software, and an XML tag is stored in a corresponding data member in the document class data structure according to the document class data structure defined in the plug-in development project; in this embodiment, the document class may be the following:
Figure BDA0002319360840000091
the "public class fragment", "public class document section", "public modified tableinfo" and "public class document" may be regarded as document classes that contain one or more document data members, for example, in the "public class fragment" document class, document data members such as "private String fragment library" and "private String fragment library" are contained.
And S306, designing a favorite function (quick reference column) to realize the personalized customization requirement of the user. Recording the operation frequency of the primitive plug-in, and classifying the corresponding primitive plug-in into an operation reference favorite according to the operation frequency; and the functions and the display effects of the favorites similar to those of the internet explorer are displayed through the treelist development control.
Step S308, when the user designs, when the mouse is hovered over the primitive plug-in of the corresponding document class in the document template, the primitive plug-in of the document class corresponding to the cursor position is obtained by obtaining the cursor position of the mouse, and an 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 stored in the document class and in the EA drawing software, so as to obtain the content information stored in the UML primitive by the attribute in the document class, and finally the actual situation of the corresponding primitive plug-in seen in the EA drawing software is displayed, so that the seen and obtained new characteristics are realized.
Step S310, when the UML design drawing is processed, the actual effect of Word document format export of the UML design drawing can be checked by using a preview function, and therefore the slow and tedious process that the original EA drawing software needs to be recompiled every time and then the whole document is exported is reduced.
In the embodiment, the primitives of various UML design diagrams supported by EA (architecture agent) drawing software are fused into Word application in a plug-in mode, and the newly added characteristics of the design diagrams to be exported and elements visual mapping, what you see and what you get, are provided, so that the understanding of operators on the primitives and the relationships among the primitives of various UML design diagrams of the EA drawing software is reduced, the accuracy of writing the UML design diagrams and the primitives in a Word format document is improved, and the processing efficiency of the UML design diagrams is improved.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention.
Based on the same idea as the primitive processing method for the UML design drawing in the above embodiment, the present invention further provides a primitive processing apparatus for the UML design drawing, which can be used to execute the above primitive processing method for the UML design drawing. For convenience of explanation, in the structural schematic diagram of the primitive processing apparatus embodiment of the UML design, only the part related to the embodiment of the present invention is shown, and those skilled in the art will understand that the illustrated structure does not constitute a limitation to the apparatus, and may include more or less components than those illustrated, or combine some components, or arrange different components.
In one embodiment, as shown in fig. 4, there is provided a primitive processing apparatus 400 for a UML design drawing, comprising: a document class generation module 402, a primitive information extraction module 404, a mapping relation 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;
and the plug-in embedding module 408 is used for embedding the mapping relation 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 generation module 402 is further configured to create a plug-in development project in the visual studio integrated development environment; the plug-in development project is a development project aiming at the primitive plug-ins; acquiring at least one document data member in a plug-in development project; the document data member is used for representing the processing mode of the document class to 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 building 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 also used to obtain the cursor position; determining a target graphic primitive plug-in corresponding to the cursor position; and calling a preview interface to preview and display the target primitive plug-in.
In an embodiment, the plug-in embedding module 408 is further configured to record an operation frequency of operating the primitive plug-in when the operation instruction of the primitive plug-in is obtained; according to the operation frequency, the graph element plug-ins are classified into operation reference favorites; the operation reference favorites are used for outputting the primitive plug-in when receiving the operation reference instruction.
In one embodiment, the plug-in embedding module 408 is further configured to expose the primitive plug-ins in the operation reference favorite using a treelist development control.
In one embodiment, the plug-in embedding module 408 is further configured to classify the primitive plug-in; and sequencing and displaying the sorted primitive plug-ins according to the preset priority.
It should be noted that, the primitive processing apparatus for the UML design drawing of the present invention corresponds to the primitive processing method for the UML design drawing of the present invention one to one, and the technical features and the beneficial effects described in the above embodiments of the primitive processing method for the UML design drawing are all applicable to the embodiments of the primitive processing apparatus for the UML design drawing, and specific contents may refer to the descriptions in the embodiments of the method of the present invention, and are not described herein again, and thus it is stated that.
In addition, in the above-described exemplary embodiment of the primitive processing apparatus for the UML design drawing, the logical division of each program module is only an example, and in practical applications, the above-described function distribution may be performed by different program modules according to needs, for example, due to the configuration requirement of corresponding hardware or the convenience of implementation of software, that is, the internal structure of the primitive processing apparatus for the UML design drawing is divided into different program modules to perform all or part of the above-described functions.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the above described method embodiments when the processor executes the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the respective method embodiment as described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium and sold or used as a stand-alone product. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection component (electronic device) having one or more wires, 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). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can 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 should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions. 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 alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples are only illustrative of several embodiments of the present invention, but should not be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for processing primitives of a UML design drawing, comprising:
generating a document class; the document class is a class used when processing document contents in a document editing application;
extracting primitive information of the UML design drawing;
constructing a mapping relation between the document class and the primitive information;
embedding the mapping relation in the document editing application in the form of a primitive plug-in.
2. The method of claim 1, wherein the document editing application is a Word application; the step of generating the document class includes:
creating a plug-in development project in a visual studio integrated development environment; the plug-in development project is a development project aiming at the graphic element plug-in;
acquiring at least one document data member in the plug-in development project; the document data member is used for representing the processing mode of the document class to the document content;
and performing position arrangement processing on the at least one document data member to obtain a document class.
3. The method according to claim 2, wherein the step of constructing the mapping relationship between the document class and the primitive information comprises:
storing the primitive information in the document data members 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.
4. The method of claim 1, further comprising, after the step of embedding the mapping relationships in the document editing application in the form of primitive plug-ins:
acquiring a cursor position;
determining a target graphic primitive plug-in corresponding to the cursor position;
and calling a preview interface to preview and display the target primitive plug-in.
5. The method of claim 1, further comprising, after the step of embedding the mapping relationships in the document editing application in the form of primitive plug-ins:
when an operation instruction for the primitive plugin is obtained, recording the operation frequency of operating the primitive plugin;
according to the operation frequency, the primitive plug-in is classified into an operation reference favorite; and the operation reference favorite is used for outputting the primitive plug-in when receiving an operation reference instruction.
6. The method of claim 5, further comprising, after the step of placing the primitive plug-in into an operation reference favorite according to the frequency of operations:
and displaying the primitive plug-ins in the operation reference favorite by using a treelist development control.
7. The method of claim 1, further comprising, after the step of embedding the mapping relationships in the document editing application in the form of primitive plug-ins:
classifying the primitive plug-in;
and sequencing and displaying the sorted primitive plug-ins according to the preset priority.
8. A primitive processing apparatus for UML design drawings, the apparatus comprising:
the document class generating module is used for generating document classes; the document class is a class used when processing document contents 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 in the document editing application in a form of primitive plug-in.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
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 true CN110795087A (en) 2020-02-14
CN110795087B 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 (4)

* 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
US20070074178A1 (en) * 2005-09-28 2007-03-29 Schwartz David R Method and system for broadly sharing UML-based models
US20140101534A1 (en) * 2012-10-09 2014-04-10 Electronics & Telecommunications Research Institute Method of authoring xml document and apparatus for performing the same
CN107678777A (en) * 2017-09-01 2018-02-09 郑州云海信息技术有限公司 A kind of management method of software document, device and terminal

Patent Citations (4)

* 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
US20070074178A1 (en) * 2005-09-28 2007-03-29 Schwartz David R Method and system for broadly sharing UML-based models
US20140101534A1 (en) * 2012-10-09 2014-04-10 Electronics & Telecommunications Research Institute Method of authoring xml document and apparatus for performing the same
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
CN110795087B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
US10466971B2 (en) Generation of an application from data
CN108279964B (en) Method and device for realizing covering layer rendering, intelligent equipment and storage medium
CN110489116A (en) A kind of rendering method of the page, device and computer storage medium
CN105094832A (en) WYSIWYG method and system for dynamically generating user interface
CN111666740A (en) Flow chart generation method and device, computer equipment and storage medium
CN111596911B (en) Method, device, computer equipment and storage medium for generating control
CN106027785A (en) Voice processing method and terminal
CN110688145B (en) Android MVP code automatic generation method and device, medium and electronic equipment
KR20180082845A (en) Method for Providing E-Book Service and Computer Program Therefore
CN112558967A (en) Page automatic generation method and device, electronic equipment and storage medium
CN114781344A (en) Method for rendering workflow electronic form by adopting reader for safe analysis and reader
CN111859053A (en) Data definition method of visual chart and chart library realized by data definition method
CN105808144A (en) Information copying method and device and terminal equipment
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
CN104375814A (en) Generation method and device of an interface document
US20150169508A1 (en) Obfuscating page-description language output to thwart conversion to an editable format
US11182635B2 (en) Terminal apparatus, character recognition system, and character recognition method
CN105718434A (en) Natural language formula editing method and system
CN115617441A (en) Method and device for binding model and primitive, storage medium and computer equipment
CN110795087B (en) Primitive processing method and device for UML design drawing and computer equipment
CN112685678B (en) Page configuration method, page configuration device, computer equipment and storage medium
CN114860205A (en) Application extension system, method and device of low-code development platform
CN114253536A (en) Calling method of interface design component, terminal device and readable storage medium
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