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

Inter-object conversion and assignment method and device

An object-to-object and value-assignment technology, which is applied in the computer field, can solve problems such as large code volume, high coupling degree, and insufficient generality, and achieve the effects of overcoming large code volume, improving versatility, and convenient conversion and assignment

Pending Publication Date: 2020-02-07
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the embodiment of the present invention provides a method for converting and assigning values ​​between objects, which can overcome the technical problems of large amount of code, high degree of coupling, and insufficient versatility in the conversion and assignment between objects in the prior art, and achieve the conversion between objects. The technical effect of making the assignment more convenient and greatly improving the versatility of conversion and assignment

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
  • Inter-object conversion and assignment method and device
  • Inter-object conversion and assignment method and device
  • Inter-object conversion and assignment method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0077] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0078] figure 1 is a schematic diagram of the main flow of the method for conversion and assignment between objects according to an embodiment of the present invention, such as figure 1 shown, including:

[0079] Step S101, adding annotations to the fields of the source object according to the custom annotation class;

[0080] Step S102, according to the annotation, ass...

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

PUM

No PUM Login to View More

Abstract

The invention discloses an inter-object conversion and assignment method and device, and relates to the technical field of computer technologies. A specific embodiment of the method comprises the steps of adding annotations to fields of a source object according to a user-defined annotation class; and according to the annotation, assigning the value of the field of the source object to the field of the target object. According to the embodiment, the technical problems that in the prior art, the code amount of conversion and assignment between objects is large, the coupling degree is high, anduniversality is not achieved are solved, and the technical effects that conversion and assignment between objects are more convenient, and the universality of conversion and assignment is greatly improved are achieved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for converting and assigning values ​​between objects. Background technique [0002] Conversion and assignment between objects refers to setting the fields in the source object to the fields in the target object. But the field settings may or may not be the same between the source and target objects. Common conversion and assignment methods between objects include: hard coding and calling third-party tool classes. [0003] In the course of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: [0004] 1. Although the hard-coded method is simple in coding, the amount of code is large; [0005] 2. The method of third-party tool class needs to make the name and field nesting layer of the source object and the target object the same, which is not universal enough. Contents of the invention [0...

Claims

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

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/41G06F8/30
CPCG06F8/315G06F8/443
Inventor 韩有凰
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products