CN101699397B - Realize the method that Java and XML data are bound - Google Patents

Realize the method that Java and XML data are bound Download PDF

Info

Publication number
CN101699397B
CN101699397B CN200910196923.8A CN200910196923A CN101699397B CN 101699397 B CN101699397 B CN 101699397B CN 200910196923 A CN200910196923 A CN 200910196923A CN 101699397 B CN101699397 B CN 101699397B
Authority
CN
China
Prior art keywords
java
xml
xml document
class
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200910196923.8A
Other languages
Chinese (zh)
Other versions
CN101699397A (en
Inventor
许正超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Baosight Software Co Ltd
Original Assignee
Shanghai Baosight Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Baosight Software Co Ltd filed Critical Shanghai Baosight Software Co Ltd
Priority to CN200910196923.8A priority Critical patent/CN101699397B/en
Publication of CN101699397A publication Critical patent/CN101699397A/en
Application granted granted Critical
Publication of CN101699397B publication Critical patent/CN101699397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

Present invention is disclosed a kind of method realizing Java and XML data and bind, comprise the following steps: 1) design XML document; 2) java class corresponding with element is created according to the structure of XML document; 3) corresponding relation of XML element and java class is set; 4) realize system of solutions algorithm, adopt recursive algorithm to realize XML document traversal of tree, create the Java object corresponding with whole XML document structure; 5) realize marshalling algorithm, adopt recursive algorithm to realize Java object traversal of tree, create the XML document corresponding with whole Java object tree construction; 6) system of solutions and compartment class is realized, the present invention realizes data-mapping two-way between java object and XML document and binds, simplify the development using XML, achieve analyzing XML file to the automation process creating java object, amended java object can be written back in XML document, and the change of XML document structure can be adapted to by a small amount of Java code revision easily.

Description

Realize the method that Java and XML data are bound
Technical field
The present invention relates to government and business management software field, particularly a kind of method realizing Java and XML data and bind.
Background technology
XML (Extensible Markup Language) i.e. extend markup language, that a kind of simple data store language, use a series of simple mark data of description, and these marks can be set up by mode easily, because XML is simply easy to grasp and use, make XML be widely used in various application software, become the important component part of current software development configuration and the common language of exchanges data.In Java, the basic API of processing XML is DOM, SAX, JDOM, dom4j etc., and these API are that Java processing XML provides solution, but unfortunately using method is complicated, easily makes a mistake in the process used.
It is a kind of more senior XML treatment mechanism be based upon on basic API that Java and XML data are bound, it provide simply a kind of and direct method uses XML in Java platform application program, achieve XML document data binding to Java object, or by Java object data binding to XML document, application program can ignore the practical structures of XML document to a great extent, and directly use the data content of those documents, XML data content is concerned about for those, and do not pay close attention to the application program of XML document CONSTRUCTED SPECIFICATION, such as exchanges data and the configuration file with fixed sturcture, relatively be applicable to adopting Java and XML data binding technology to read and write XML.
Technology common at present has JAXB, XStream, JiBX etc.
1、JAXB
JAXB (Java Architecture for XML Binding, Java XML binds framework) be a Java platform data binding standard being in development, this technology can provide method XML instance document oppositely being generated Java object tree, and the content that Java object is set can be write XML instance document again.In addition, JAXB provides quick and easy method and is represented to Java by XML mode binding, thus makes Java developer conveniently can load XML data in java application, and using XML file as data storage method.
2、XStream
The conversion that XStream adopts xpp to carry out between XML and object, the conversion that it does not need schema or other mapping file just can carry out between java object and XML file, API Calls is got up very convenient, and expanded function is powerful.In the XML generated, object name becomes masurium, and the character string in class constitutes the element content in XML.The class of XStream serializing is used not need to realize Serializable interface.XStream can be described as a kind of serializing instrument instead of data binding instrument.Compare with other serializing instruments, XStream has three outstanding features:
XStream is indifferent to the observability of the field of the class of serializing/opposite sequence.
The field of serializing/opposite sequence class does not need getter and setter method.
The class of serializing/opposite sequence is without the need for default constructor.
Do not need to revise class, use the XStream just any third party's class of energy direct sequence/opposite sequenceization.
3、JiBX
JiBX is the framework of a binding XML data to Java object.JiBX defines with binding definition literary composition gear (binding definition document) rule that XML data and Java object change, the process of JiBX is used to be divided into two processes, one is binding compiler, and another is binding runtime.Binding compiler is an early-stage preparations process, and comprise definition binding definition literary composition gear, the Java object that definition and XML bind together, then compiles.It is not according to DTD or Schema generating code that JiBX uses syllabified code enhancing instead of reflection when project build, hook to be added to application code JiBX, but uses binding definition, and the class that user provides by this definition is associated with XML structure.Advantage is that it is a kind of data binding framework designed for performance, and shortcoming needs to strengthen POJO, all must re-start enhancing after each recompility.
JAXB and JiBX generates Java code and respective profiles according to XML Schema, and this is a kind of code building mode that process Java and XML data are bound.Another kind of major way is the map bindings method using certain form, in map bindings method, the class building oneself (or builds java class according to schema at first, then them are revised to meet your requirements), and specify these classes how to be associated with XML document to binding framework.XStream and our rule adopt the second way.
Table: Property comparison
Adopt the major defect of JAXB and JiBX of code building mode as follows:
1) sturdy reflect file structure by like this, make close-coupled between application code and file structure.
2) if XML document structure changes, then need to regenerate code, and revise application code to use final amended data class.
Map bindings mode has greater flexibility than code building.Use real object class by data together with behavior combination.Also being coupled between object class with actual XML can be removed to a certain extent.Change small in amendment mapping definition (and not needing to change application code) usual processing XML file structure.Even can define independent input and output mapping with a kind of form and data decomposition is carried out to document, and organize into groups them with another kind of form.
In order to solve the problem, China Patent Publication No.: CN101339500, disclosing a kind of data binding application program interface creation method based on XML pattern for the complicated XMLschema specification existed in reality, proposing a kind of automatic generation for operating the method for the data binding API of the XML file meeting XMLSchema specification.It is characterized by the method based on data binding technology, first generating a set of middle layer irrelevant with generating target language type, then pass through independently code building engine and generate required type target code.The CNMLSchema (Chinese news markup language) promulgated based on Xinhua News Agency herein and CNML contribution template carry out code building and test, experiment proves, this method is on the guarantee robustness of API and the basis of correctness, be provided with great dirigibility simultaneously, significantly can reduce the API maintenance cost that the transition of schema specification bring, keep the basically identical property of multilingual api interface to reduce training cost, simultaneously also for providing stable support based on the application system on API.But in actual use, the usable range of Java is higher, and the present invention does not provide the Data Binding Method for Java.
In view of this, this area inventor have developed a kind of method realizing Java and XML data and bind.
Summary of the invention
The object of the invention is to, a kind of method realizing Java and XML data and bind is provided, overcome the difficulty of prior art, reach and realized data-mapping two-way between java object and XML document and bind, simplify the development using XML, achieve analyzing XML file to the automation process creating java object, amended java object can be written back to the object in XML document, and the change of XML document structure can be adapted to by a small amount of Java code revision easily.
The present invention adopts following technical scheme:
A kind of method realizing Java and XML data and bind of the present invention, comprises the following steps:
1) XML document is designed;
2) java class corresponding with XML element is created according to the structure of XML document;
3) corresponding relation of XML element and java class is set;
4) realize system of solutions algorithm, adopt recursive algorithm to realize XML document traversal of tree, create the Java object corresponding with whole XML document structure;
5) realize marshalling algorithm, adopt recursive algorithm to realize Java object traversal of tree, create the XML document corresponding with whole Java object tree construction;
6) system of solutions and compartment class is realized.
Further, described step 2) in, the type of described XML element comprises simple types and complicated type, the value of described simple types does not comprise daughter element or attribute, complicated type is the user-defined data type that can comprise other daughter elements or attribute, and complicated type can comprise the element being defined as simple types or complicated type.
Further, described step 2) in, each complicated type in described XML document has a java class to correspond.
Further, described step 2) in, the Attribute Relative of the attribute in complex type element and simple types daughter element and java class should.
Further, described step 3) in, deposited the corresponding relation of described XML element and java class by the correspondence table of a node type and java class, the key of described correspondence table is XML document element term, is worth the fullpath for java class.
Further, described step 4) in, basic XML API is adopted to be read in inlet flow by XML document, establishment becomes XML document object, then the root element obtaining document imports the system of solutions method realizing recursive algorithm into, obtain the corresponding relation of XML document element and java class in a recursive process, adopt Java reflex mechanism to create Java object.
Further, described step 4) comprise the following steps:
401) XML document is read in inlet flow, creates and become XML document, and obtain root element;
402) XML document element is imported into system of solutions method;
403) java class corresponding with currentElement is obtained, during configuration is left that element is corresponding with java class in and shown;
404) use Java reflex mechanism, create the Java object example corresponding with currentElement;
405) obtain all properties of currentElement, circulation reading attributes, use Java reflex mechanism to call setXxx method, property value is imported into as parameter;
406) all daughter elements of currentElement are obtained;
407) judged whether daughter element, if having, performed step 408), if do not have, perform step 410);
408) carry out circulation to all daughter elements to read;
409) Java reflex mechanism is used, the getXxxList () method calling java class obtains the List container for current daughter element in current Java object, the object that recursive call method obtains self is joined in this List container, perform step 402);
410) existing object example is returned;
411) object that system of solutions method finally returns is the Java object example corresponding with whole XML document.
Further, described step 5) in, Java object is imported into and realizes in the grouping method of recursive algorithm, obtain the corresponding relation of XML document element and java class in a recursive process, adopt XML basis API to create XML document.
Further, described step 5) in, comprise the following steps:
501) Java root object is obtained;
502) Java object is passed to grouping method;
503) use Java reflex mechanism, obtain the class.path of existing object;
504) from XML element is corresponding with java class show obtain the XML element term corresponding with existing object class.path, and with this title create element;
505) Java reflex mechanism is used, obtain all properties of existing object, circulation is carried out to all properties and reads, if Property Name does not have List and Map ending, after then Property Name being converted to the XML Property Name of specification, add in the attribute of XML currentElement;
506) if Property Name has List ending, then added in daughter element list;
507) judge whether to there is subobject, if so, perform step 508), if not, perform step 510);
508) antithetical phrase element list carries out circulation reading, obtains each daughter element; And then all subobjects obtained in daughter element list, subobject is set to existing object;
509) call grouping method to obtain returning element, will element be returned be added to the daughter element of currentElement, and perform step 502);
510) currentElement is returned;
511) element that grouping method finally returns is the XML element corresponding with Java object.
Further, described step 6) in, in system of solutions class, use XML basis API to read XML document from inlet flow, then call system of solutions method reading XML document and be mapped as Java object tree; In compartment class, call grouping method reading Java object tree and be mapped as XML document, and XML basis API can be used XML document to be outputted in output stream.
This method mainly adopts recursive algorithm to travel through XML document and Java object tree, the data binding of Java and XML is realized by Java reflex mechanism and the basic API of XML process, the process making Java developer not need to understand too many XML knowledge can to realize XML, simplify the development using XML, reduce development difficulty, improve development efficiency.
Java reflex mechanism is a kind of method of the information of operationally accessing about Java language class, available it visit field in class example and method, thus provide one and operationally class is dynamically linked up with together, the method but without the need to there being any source code to link between class.Reflection is the Java technical characteristic that a kind of function is very powerful, but by it with call method or compared with the field of directly accessing in compiled code, it is some shortcoming in performance.
Owing to have employed above technology, the present invention compared with prior art, is bound by Java and XML data, XML document can be mapped as Java object by Java developer, by object accesses data, can more easily see real data clearly like this, also more be easy to access these data.Be present in internal memory owing to mapping the Java generated, do not need traversed documents structure to obtain data, therefore can obtain better access speed.When inputting, the data (such as numeral and date) of some specific types can be converted into internal representation, instead of are left textual form; This makes application program can more effectively usage data value.When adjustment occurs XML document structure, as long as the java class revising corresponding mapping just can meet the needs of read-write, and do not need amendment XML analysis program, very convenient.If the element increase and decrease attribute of XML or daughter element, also only need to make an amendment in the java class mapped.
The method that this Java and XML data are bound will have a good application prospect in exchanges data and software configuration file, make Java developer can conveniently load and use XML data in the application, and using XML file as data storage method.
Accompanying drawing explanation
Fig. 1 is the message exchange chart that the Java of the embodiment of the present invention and XML data bind example-customer information;
Fig. 2 is the process flow diagram of Java of the present invention and XML data binding method;
Fig. 3 is the step 4 of the inventive method) in the process flow diagram of system of solutions algorithm;
Fig. 4 is the step 5 of the inventive method) in the process flow diagram of recursive algorithm.
Embodiment
Below by Fig. 1 to 4, introduce a kind of specific embodiment of the present invention.
As shown in Figures 2 to 4, a kind of method realizing Java and XML data and bind of the present invention, comprises the following steps:
Step one: design meets the XML document of specification, the XML adopting this method to realize data binding needs to meet XML design specifications.
Step 2: the structure according to XML document creates the java class corresponding with element.
XML element type comprises simple types and complicated type, and the value of simple types can not containing element or attribute, and complicated type can produce the effect of nested element in other elements, or is that element increases attribute.
The element of each complicated type in XML document should have a java class to correspond, the Attribute Relative of the attribute in element and the daughter element of simple types and java class is answered, and these attributes should be designed to the xxx of the array type (such as Integer [] or String []) of Java fundamental type packaging type (such as Integer), String and these types; If there is the daughter element of complicated type, be then designed to the xxxMap of xxxList and the Map type of List type.Finally, for these attributes provide getXxx () and setXxx () method.
Customer information corresponds to two java class: Customer and Address, increases the attribute definition of childFields, indicates those attributes needing to show by the mode of daughter element.
Step 3: the corresponding relation that XML element and java class are set.This corresponding relation can be deposited by the correspondence table of a node type and java class.Key is XML document element term, is worth the fullpath for java class,
Step 4: realize system of solutions algorithm, adopts recursive algorithm to realize XML document traversal of tree, creates the Java object corresponding with whole XML document structure.Basic XML API is adopted to be read in inlet flow by XML document, establishment becomes XML document object, then the root element obtaining document imports the system of solutions method realizing recursive algorithm into, obtain the corresponding relation of XML document element and java class in a recursive process, adopt Java reflex mechanism to create Java object.
See Fig. 3, described step 4) comprise the following steps:
401) XML document is read in inlet flow, creates and become XML document, and obtain root element;
402) XML document element is imported into system of solutions method;
403) java class corresponding with currentElement is obtained, during configuration is left that element is corresponding with java class in and shown;
404) use Java reflex mechanism, create the Java object example corresponding with currentElement;
405) obtain all properties of currentElement, circulation reading attributes, use Java reflex mechanism to call setXxx method, property value is imported into as parameter;
406) all daughter elements of currentElement are obtained;
407) judged whether daughter element, if having, performed step 408), if do not have, show to arrive leaf elements, perform step 410);
408) carry out circulation to all daughter elements to read;
409) Java reflex mechanism is used, the getXxxList () method calling java class obtains the List container for current daughter element in current Java object, the object that recursive call method obtains self is joined in this List container, perform step 402);
410) existing object example is returned;
411) object that system of solutions method finally returns is the Java object example corresponding with whole XML document.
Step 5: realize marshalling algorithm, adopts recursive algorithm to realize Java object traversal of tree, creates the XML document corresponding with whole Java object tree construction.Java object being imported into realizes in the grouping method of recursive algorithm, obtains the corresponding relation of XML document element and java class in a recursive process, adopts XML basis API to create XML document.So just achieve data binding two-way between Java object and XML document.
See Fig. 4, described step 5) comprise the following steps:
501) Java root object is obtained;
502) Java object is passed to grouping method;
503) use Java reflex mechanism, obtain the class.path of existing object;
504) from element is corresponding with java class show obtain the XML element term corresponding with existing object class.path, and with this title create element;
505) Java reflex mechanism is used, obtain all properties of existing object, circulation is carried out to all properties and reads, if Property Name does not have List and Map ending, after then Property Name being converted to the XML Property Name of specification, add in the attribute of XML currentElement;
506) if Property Name has List ending, then added in daughter element list;
507) judging whether to there is subobject, by judging the length of daughter element list in the present embodiment, if length is 0, showing that existing object does not have subobject, if length is greater than 0, perform step 510); If the length of daughter element list is greater than 0, perform step 508);
508) antithetical phrase element list carries out circulation reading, obtains each daughter element; And then all subobjects obtained in daughter element list, subobject is set to existing object;
509) call grouping method to obtain returning element, will element be returned be added to the daughter element of currentElement, and perform step 502);
510) currentElement is returned;
511) element that grouping method finally returns is the XML element corresponding with Java object.
Step 6: realize the system of solutions and compartment class.In system of solutions class, use XML basis API to read XML document from inlet flow, then call system of solutions method reading XML document and be mapped as Java object tree.In compartment class, call grouping method reading Java object tree and be mapped as XML document, and XML basis API can be used XML document to be outputted in output stream.
See Fig. 1, test technique scheme, step is as follows:
1) read " d:/customer.xml " to inlet flow, " d:/customer.xml " file is the XML document of " inventory one ";
Such as following example:
2) by system of solutions class UnmarshallingContext, by XML document, it is mapped to Customer object;
3) read the attribute of Customer and subobject Address list and output to control desk;
4) the postcode attribute of the name and address Addess of client Customer is revised;
5) by compartment class MarshallingContext by Customer object map to XML document;
6) output to " d:/test.xml ".
Code is as follows:
Inventory two: test code
Output rusults is as follows:
Inventory three: the output on test console
Inventory four: " d:/test.xml " file content of output
Result is checked, the information of the client in " inventory three " is consistent compared with " inventory one ", the XML document of " inventory four " is through amended information, and identical with the structure of " inventory one ", therefore can show the effect that this method can reach Java and XML data and binds.
This method have employed recursive algorithm and travels through tree, and also can be revised as the non-recursive algorithm adopting stack to store and travel through, non-recursive algorithm can play certain effect of optimization when the hierarchical structure of XML is more.
The technical scheme of this method mainly applies Java XML basis API analyzing XML file, also can use other XML analytic technique, as DOM, SAX, DOM4J etc.
In addition, the java class in this method is Hand writing, can generate corresponding java class by some Code Generators from XML Schema.
In Taihu Lake basin management board of Ministry of Water Resources electronic government affairs system, namely the configuration file of Workflow Management adopts this method to realize.
In summary, the present invention is bound by Java and XML data, and XML document can be mapped as Java object by Java developer, by object accesses data, can more easily see real data clearly like this, also more be easy to access these data.Be present in internal memory owing to mapping the Java generated, do not need traversed documents structure to obtain data, therefore can obtain better access speed.When inputting, the data (such as numeral and date) of some specific types can be converted into internal representation, instead of are left textual form; This makes application program can more effectively usage data value.When adjustment occurs XML document structure, as long as the java class revising corresponding mapping just can meet the needs of read-write, and do not need amendment XML analysis program, very convenient.If the element increase and decrease attribute of XML or daughter element, also only need to make an amendment in the java class mapped.
The method that this Java and XML data are bound will have a good application prospect in exchanges data and software configuration file, make Java developer can conveniently load and use XML data in the application, and using XML file as data storage method.
Above-described embodiment is only for illustration of technological thought of the present invention and feature, its object is to enable those skilled in the art understand content of the present invention and implement according to this, only can not limit the scope of the claims of the present invention with the present embodiment, namely all equal changes of doing according to disclosed spirit or modification, still drop in the scope of the claims of the present invention.

Claims (6)

1. realize the method that Java and XML data are bound, it is characterized in that comprising the following steps:
1) XML document is designed;
2) java class corresponding with XML element is created according to the structure of XML document;
3) corresponding relation of XML element and java class is set;
4) system of solutions algorithm is realized, recursive algorithm is adopted to realize XML document traversal of tree, create the Java object corresponding with whole XML document structure, in this step, adopt basic XML API to be read in inlet flow by XML document, create and become XML document object, the root element then obtaining document imports the system of solutions method realizing recursive algorithm into, obtain the corresponding relation of XML document element and java class in a recursive process, adopt Java reflex mechanism to create Java object; This step specifically comprises:
401) XML document is read in inlet flow, creates and become XML document, and obtain root element;
402) XML document element is imported into system of solutions method;
403) java class corresponding with currentElement is obtained, during configuration is left that element is corresponding with java class in and shown;
404) use Java reflex mechanism, create the Java object example corresponding with currentElement;
405) obtain all properties of currentElement, circulation reading attributes, use Java reflex mechanism to call setXxx method, property value is imported into as parameter;
406) all daughter elements of currentElement are obtained;
407) judged whether daughter element, if having, performed step 408), if do not have, perform step 410);
408) carry out circulation to all daughter elements to read;
409) Java reflex mechanism is used, the getXxxList () method calling java class obtains the List container for current daughter element in current Java object, the object that recursive call method obtains self is joined in this List container, perform step 402);
410) existing object example is returned;
411) object that system of solutions method finally returns is the Java object example corresponding with whole XML document;
5) marshalling algorithm is realized, recursive algorithm is adopted to realize Java object traversal of tree, create the XML document corresponding with whole Java object tree construction, in this step, Java object being imported into realizes in the grouping method of recursive algorithm, obtain the corresponding relation of XML document element and java class in a recursive process, adopt XML basis API to create XML document; This step specifically comprises:
501) Java root object is obtained;
502) Java object is passed to grouping method;
503) use Java reflex mechanism, obtain the class.path of existing object;
504) from XML element is corresponding with java class show obtain the XML element term corresponding with existing object class.path, and with this title create element;
505) Java reflex mechanism is used, obtain all properties of existing object, circulation is carried out to all properties and reads, if Property Name does not have List and Map ending, after then Property Name being converted to the XML Property Name of specification, add in the attribute of XML currentElement;
506) if Property Name has List ending, then added in daughter element list;
507) judge whether to there is subobject, if so, perform step 508), if not, perform step 510);
508) antithetical phrase element list carries out circulation reading, obtains each daughter element; And then all subobjects obtained in daughter element list, subobject is set to existing object;
509) call grouping method to obtain returning element, will element be returned be added to the daughter element of currentElement, and perform step 502);
510) currentElement is returned;
511) element that grouping method finally returns is the XML element corresponding with Java object;
6) system of solutions and compartment class is realized.
2. the method realizing Java and XML data and bind according to claim 1, it is characterized in that: described step 2) in, the type of described XML element comprises simple types and complicated type, the value of described simple types does not comprise daughter element or attribute, complicated type is the user-defined data type that can comprise other daughter elements or attribute, and complicated type can comprise the element being defined as simple types or complicated type.
3. the method realizing Java and XML data and bind according to claim 2, is characterized in that: described step 2) in, each complicated type in described XML document has a java class to correspond.
4. the method realizing Java and XML data and bind according to claim 2, is characterized in that: described step 2) in, the Attribute Relative of the attribute in complex type element and simple types daughter element and java class should.
5. the method realizing Java and XML data and bind according to claim 1, it is characterized in that: described step 3) in, the corresponding relation of described XML element and java class is deposited by the correspondence table of a node type and java class, the key of described correspondence table is XML document element term, is worth the fullpath for java class.
6. the method realizing Java and XML data and bind according to claim 1, it is characterized in that: described step 6) in, in system of solutions class, use XML basis API to read XML document from inlet flow, then call system of solutions method reading XML document and be mapped as Java object tree; In compartment class, call grouping method reading Java object tree and be mapped as XML document, and XML basis API can be used XML document to be outputted in output stream.
CN200910196923.8A 2009-10-09 2009-10-09 Realize the method that Java and XML data are bound Active CN101699397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910196923.8A CN101699397B (en) 2009-10-09 2009-10-09 Realize the method that Java and XML data are bound

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910196923.8A CN101699397B (en) 2009-10-09 2009-10-09 Realize the method that Java and XML data are bound

Publications (2)

Publication Number Publication Date
CN101699397A CN101699397A (en) 2010-04-28
CN101699397B true CN101699397B (en) 2015-09-16

Family

ID=42147857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910196923.8A Active CN101699397B (en) 2009-10-09 2009-10-09 Realize the method that Java and XML data are bound

Country Status (1)

Country Link
CN (1) CN101699397B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844678A (en) * 2017-01-24 2017-06-13 山东浪潮商用系统有限公司 A kind of exchange method of Mybatis data sources and connection pool

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916202B (en) * 2010-08-09 2014-04-09 中兴通讯股份有限公司 Signaling display method and system
CN102566984B (en) * 2010-12-07 2015-07-15 北大方正集团有限公司 Method and device for configuring parameters
CN102281152B (en) * 2011-06-08 2014-10-29 烽火通信科技股份有限公司 Distributed communication system, implementation method, marshalling and unmarshalling method of remote API (Application Program Interface)
CN103279333B (en) * 2012-09-29 2016-03-02 南京国电南自轨道交通工程有限公司 A kind of method of the multinode sequential control based on SCADA system
CN102937992A (en) * 2012-11-01 2013-02-20 上海方正数字出版技术有限公司 Object mapping transformation design method based on Java and X extensive makeup language (XML) database
CN103049271B (en) * 2012-12-27 2016-01-27 微梦创科网络科技(中国)有限公司 The method and apparatus of the description document of automatic generation api interface
CN104679500B (en) * 2013-12-03 2020-02-14 南京中兴力维软件有限公司 Method and device for realizing automatic generation of entity class
CN104270453B (en) * 2014-10-11 2018-02-13 苏州科达科技股份有限公司 Data communications method and server between a kind of multistage server
CN104461513B (en) * 2014-11-21 2018-01-09 山东航天信息有限公司 A kind of method and device for generating form interface
CN108090069A (en) * 2016-11-22 2018-05-29 北京神州泰岳软件股份有限公司 A kind of method and apparatus for showing web page resources in a browser
CN107239492A (en) * 2017-04-25 2017-10-10 大象慧云信息技术有限公司 XML document is converted to the method and device that object, object are converted to XML document
CN107038148A (en) * 2017-04-25 2017-08-11 大象慧云信息技术有限公司 The analytic method and resolver of XML document
CN107766039B (en) * 2017-10-30 2020-04-10 中国平安财产保险股份有限公司 Method, server and storage medium for accessing attribute value from Java object
CN108519964B (en) * 2018-03-09 2022-03-04 中国工程物理研究院计算机应用研究所 Method for converting XML Schema document into Java code
CN109857387A (en) * 2019-01-03 2019-06-07 中国银行股份有限公司 A kind of method and electronic equipment generating JAVA class object
CN110457260A (en) * 2019-08-14 2019-11-15 深圳前海微众银行股份有限公司 Document handling method, device, equipment and computer readable storage medium
CN111694729A (en) * 2020-04-29 2020-09-22 北京三快在线科技有限公司 Application testing method and device, electronic equipment and computer readable medium
CN114490889A (en) * 2022-01-25 2022-05-13 成都鼎桥通信技术有限公司 Configuration information processing method, device, equipment, medium and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549966A (en) * 2001-07-02 2004-11-24 BEAϵͳ��˾ Programming language extensions for processing xml objects and related applications
CN1783090A (en) * 2004-11-30 2006-06-07 国际商业机器公司 Sharable two way method and system for switching between object model and XML
CN101290625A (en) * 2008-06-11 2008-10-22 华东师范大学 XML document storage and search method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549966A (en) * 2001-07-02 2004-11-24 BEAϵͳ��˾ Programming language extensions for processing xml objects and related applications
CN1783090A (en) * 2004-11-30 2006-06-07 国际商业机器公司 Sharable two way method and system for switching between object model and XML
CN101290625A (en) * 2008-06-11 2008-10-22 华东师范大学 XML document storage and search method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Java的XML数据绑定;姜力;《浙江万里学院学报》;20041031;第17卷(第5期);第30-33页 *
基于JAXB的Java和XML数据绑定框架设计与应用;宋旦益;《万方数据库的中国学位论文全文数据库》;20060227;正文第2部分 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844678A (en) * 2017-01-24 2017-06-13 山东浪潮商用系统有限公司 A kind of exchange method of Mybatis data sources and connection pool

Also Published As

Publication number Publication date
CN101699397A (en) 2010-04-28

Similar Documents

Publication Publication Date Title
CN101699397B (en) Realize the method that Java and XML data are bound
Syme et al. Expert F♯
Beazley Automated scientific software scripting with SWIG
US20070143285A1 (en) System and method for matching schemas to ontologies
US8701087B2 (en) System and method of annotating class models
EP2207104A2 (en) System and method for transforming a UML model into an OWL representation
Schauerhuber et al. Bridging existing Web modeling languages to model-driven engineering: a metamodel for WebML
JP2012504826A (en) Programming language with extensible syntax
Shinwell The Fresh Approach: functional programming with names and binders
Moreno et al. An overview of model-driven web engineering and the MDA
Vermolen et al. Heterogeneous coupled evolution of software languages
Nosál et al. Language composition using source code annotations
Ressia et al. Talents: an environment for dynamically composing units of reuse
Moreno et al. Towards interoperable Web engineering methods
Simonsen et al. Pragmatics annotated coloured petri nets for protocol software generation and verification
Rohl et al. Flexible integration of XML into modeling and simulation systems
Labath et al. A functional language for hyperstreaming XSLT
CN101055521A (en) Mapping rule visualized generation method and system
Seifert et al. Static source code analysis using OCL
Günther Development of internal domain-specific languages: design principles and design patterns
Narayanan et al. Specifications for mapping UML models to XML schemas
Cepa Product-line development for mobile device applications with attribute supported containers
Limyr et al. Semaphore–a model-based semantic mapping framework
Djuric et al. Adventures in modeling spaces: Close encounters of the semantic web and MDA kinds
Malý XML Document Adaptation and Integrity Constraints in XML

Legal Events

Date Code Title Description
C57 Notification of unclear or unknown address
DD01 Delivery of document by public notice

Addressee: Hu Yun

Document name: Notification of Passing Preliminary Examination of the Application for Invention

C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant