Object and dictionary mutual mapping method and device

A mapping method and dictionary technology, applied in the field of information retrieval, can solve problems such as manual object and dictionary mapping, and achieve the effect of saving program development time

Pending Publication Date: 2021-12-14
深圳创云科软件技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention solves the current technical problem of manually mapping objects and dictionaries by providing a method and device for mutual mapping between objects and dictionaries

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Object and dictionary mutual mapping method and device
  • Object and dictionary mutual mapping method and device
  • Object and dictionary mutual mapping method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0062] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Apparently, the described embodiments are some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0063] The embodiment of the present invention provides a method for mutual mapping between objects and dictionaries, including two cases of mapping from selected objects to dictionaries and mapping from selected dictionaries to objects. Please refer to Figure 1 to Figure 5 .

[0064] When selecting an object-to-dictionary mapping, implementations such as figure 1 The steps S101 to S103 shown are as follows.

[0065] Step S102, creating a dictionary.

[0066] Step S102, t...

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

PUM

No PUM Login to view more

Abstract

An object and dictionary mutual mapping method and device are provided by the embodiment of the invention. The object and dictionary mutual mapping method comprises the steps: when mapping from an object to a dictionary is selected, creating the dictionary; traversing all attribute names from the class to the root class corresponding to the selected object and attribute values corresponding to the attribute names; storing all the attribute names and the corresponding attribute values serving as key value pairs in the created dictionary; when the selected dictionary is mapped to the object, traversing all key value pairs of the selected dictionary; and searching the corresponding attribute names through a key, and giving the value of the found attribute name to the object as an attribute value. By using the method, automatic mapping from the selected object to the dictionary and automatic mapping from the selected dictionary to the object are realized, the technical problem that the object and the dictionary need to be manually mapped at present is solved, and the program development time is saved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of information retrieval, and in particular to a method and device for mutual mapping between objects and dictionaries. Background technique [0002] Data dictionary refers to the definition and description of data items, data structure, data flow, data storage, processing logic, etc., and its purpose is to make detailed descriptions of each element in the data flow chart. Modeling projects. [0003] When developing computer software, developers often need to parse json or xml and assign values ​​to objects, or store objects in a database. This process needs to manually map objects and dictionaries according to the specific attributes of the class, and the work is mechanically repeated, and a lot of program development time is wasted. Contents of the invention [0004] The embodiment of the present invention solves the current technical problem of manually mapping objects and di...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/2455
CPCG06F16/2282G06F16/24566
Inventor 刘良庆
Owner 深圳创云科软件技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products