Object and dictionary mutual mapping method and device

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 cl...

Full description

Saved in:
Bibliographic Details
Main Author LIU LIANGQING
Format Patent
LanguageChinese
English
Published 14.12.2021
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary: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 n
Bibliography:Application Number: CN202110989300