A method of object transformation based on xml template

A conversion method and template technology, which is applied in the information field and can solve problems such as server restarts

Active Publication Date: 2021-01-08
武汉众邦银行股份有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to solve the problem that the conversion and adjustment of existing messages often occur at any time. Through the problem of hard coding, after the conversion is completed, the server will inevitably face the problem of restarting the operation

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
  • A method of object transformation based on xml template
  • A method of object transformation based on xml template
  • A method of object transformation based on xml template

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] The invention provides an object conversion method based on an XML template,

[0071] Step S0: Type definition

[0072] int: integer number

[0073] float: floating point number

[0074] long: long integer number

[0075] double: double-precision floating-point number

[0076] string: string type

[0077] bigDecimal: large double-precision floating-point number

[0078] bigInteger: large integer

[0079] map: an object structure similar to json's (key, value) key-value pairs

[0080] array: The element type is fixed, the array structure, that is: all its element types must be consistent.

[0081] Step S1: define the tags of the XML rule template;

[0082] Step S2: according to the XML rule template tag, define the field value rule;

[0083] Step S3: define the rule engine processing function, output the target object in json format, parameters (template, model), template is the rule XML template, and model is the source object, such ...

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 relates to the technical field of information technologies, and provides an object conversion method based on an XML template, which aims to solve the problem that the conversion adjustment of the existing message often occurs at any time and is subjected to hard coding, and the server must be restarted after the conversion is finished. According to the main scheme, the method comprises the following steps that S1, a label of an XML rule template is defined; S2, a field value rule is defined according to the XML rule template label; and S3, a rule engine processing performance function is defined, and a json format target object and a parameter (template, model) are outputted, the template is the rule XML template, the model is the source object, and the data type is a map type.

Description

technical field [0001] The invention relates to the technical field of information technology, and provides an object conversion method based on an XML template. Background technique [0002] In the current software system architecture, object and message conversion is a common problem. For example, in the Internet and financial industries, cross-institutional interface calls are often encountered, and the message protocol standards of different institutions are different. In the middle of this, we are faced with the problem of message conversion. Now the Internet industry is common in the conversion of json messages. However, the current systems are complex and huge, and this kind of message conversion work is generally done by the gateway. We know that a json message is a message with loose rules, and the general conversion is to convert one kind of json message into another kind of json message through hard coding. Although this approach is feasible, it faces the proble...

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 Patents(China)
IPC IPC(8): G06F16/84G06F16/81
CPCG06F16/81G06F16/88
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