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

Method for generating JAVA class object and electronic device

An electronic device and object-like technology, applied in the field of data processing, can solve problems such as complex configuration of mapping rules, achieve easy debugging and tracking, and improve conversion efficiency

Inactive Publication Date: 2019-06-07
BANK OF CHINA
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the XML document itself is more suitable for describing data and does not contain context, an additional document needs to be used in the prior art to describe the mapping rules between XML document data and JAVA class files, so that the configuration of the mapping rules will be special. complex

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
  • Method for generating JAVA class object and electronic device
  • Method for generating JAVA class object and electronic device
  • Method for generating JAVA class object and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0047] An embodiment of the present invention provides an electronic device configured to execute the above method for generating a JAVA class object. Specifically, the electronic device provided by the embodiment of the present invention may be some kind of device such as a server running a service system, and the present invention does not limit this.

[0048] Figure 6 A schematic diagram of a possible structure of the electronic device involved in the embodiment of the present invention is shown. Specifically, the electronic device 20 includes: an acquiring unit 201 , a reading unit 202 , and a generating unit 203 . in:

[0049] An acquisition unit 201, configured to acquire a definition file and an XML document of a JAVA class object;

[0050] The reading unit 202 is used to read the attribute annotation in the definition file after the acquisition unit obtains the definition file of the JAVA class object; the attribute annotation includes the filling mode of XML data;...

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 embodiment of the invention provides a method for generating a JAVA class object and an electronic device, and relates to the field of data processing. According to the embodiment of the invention, the XML document can be directly converted into the JAVA class object by utilizing the JAVA class definition file, and an additional XML document is not needed to describe the conversion rule, so that the conversion efficiency is improved. Meanwhile, the attribute annotations are placed in the definition file, so that description, modification or debugging is simple and easy to understand. The method for generating the JAVA class object comprises the steps that a definition file and an XML document of the JAVA class object are acquired; reading an attribute annotation in the definition file;and according to the attribute annotations, filling XML data in the XML document into a definition file, and generating a JAVA class object. The method and the device are applied to generation of theJAVA class objects.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method and electronic equipment for generating JAVA class objects. Background technique [0002] At present, when electronic equipment is processing business, it is often necessary to introduce external parameter configurations. Simple external parameters will be placed in text files, and more complex external parameters are generally placed in XML documents. At this time, an external XML document is required. The process of parsing parameters and parsing them into JAVA class files is called OXM. Since the XML document itself is more suitable for describing data and does not contain context, additional documents need to be used in the prior art to describe the mapping rules between XML document data and JAVA class files, so that the configuration of the mapping rules will be special. complex. Contents of the invention [0003] Embodiments of the present invention provide a me...

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): G06F8/30G06F8/73
Inventor 王斌胡淼元杜园园杨彬
Owner BANK OF CHINA
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More