IP Library Granted Patent US 9,430,253
Granted Patent B2
US 9,430,253 · App. 13/244,646 · Granted Aug 30, 2016

Reusable and late addition enabled XML data binding

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,430,253
App. No.
13/244,646
Granted
Aug 30, 2016
Kind
B2
Abstract

Various embodiments of systems and methods for reusable and late addition enabled XML data binding are described herein. A computer receives an element class that is created for a non-atomic class. The element class comprises a first constructor, a decomposer that returns data extracted from an object for an entity to aid in serialization, and a composer that extracts value of the entity and creates a new instance of the non-atomic class using the extracted value to aid in de-serialization. The object is of type non-atomic class. The computer also receives an attribute class that is created for an atomic class to which the non-atomic class refers to. The attribute class comprises a second constructor, a serializer, and a de-serializer. The computer then generates an XML document using the element class and the attribute class.

Claims (45)

1. A computer-implemented method for Extensible Markup Language (XML) data binding, the method comprising:

a computer receiving an element class that is created for a non-atomic class from a program code used for creating objects to be serialized into an XML document, the element class comprising:

a first constructor;

a decomposer that returns data extracted from an object of the created objects in the program code, for an entity to aid in serialization, wherein the object is of type non-atomic class;

a composer that extracts value of the entity and creates a new instance of the non-atomic class using the extracted value to aid in de-serialization; and

wherein the element class extends a super element class, and wherein the super element class comprises serializing and de-serializing code;

the computer receiving an attribute class that is created for an atomic class, wherein the non-atomic class refers to the atomic class, and wherein the attribute class comprises a second constructor, a serializer, and a de-serializer; and

the computer generating the XML document using the element class, the attribute class, and serializing code in the super element class, wherein the serializing code is executed when the decomposer and the serializer are invoked.

2. The method of claim 1 , wherein the non-atomic class is a class that is represented by a nested string and the atomic class is a class that is represented by a non-nested string.

3. The method of claim 1 , wherein the first constructor creates the element class with one or more sub-elements and one or more attributes.

4. The method of claim 3 , wherein the entity comprises at least one of an attribute or a sub-element.

5. The method of claim 1 , further comprising:

receiving an XML document having a reference to the object; and

de-serializing the received XML document into the object.

6. An article of manufacture including a non-transitory computer readable storage medium to tangibly store instructions, which when executed by a computer, cause the computer to:

receive an element class that is created for a non-atomic class from a program code used for creating objects to be serialized into an XML document, the element class comprising:

a first constructor;

a decomposer that returns data extracted from an object of the created objects in the program code, for an entity to aid in serialization, wherein the object is of type non-atomic class;

a composer that extracts value of the entity and creates a new instance of the non-atomic class using the extracted value to aid in de-serialization; and

wherein the element class extends a super element class, and wherein the super element class comprises serializing and de-serializing code;

receive an attribute class that is created for an atomic class, wherein the non-atomic class refers to the atomic class, and wherein the attribute class comprises a second constructor, a serializer, and a de-serializer; and

generate the XML document using the element class, the attribute class, and

serializing code in the super element class, wherein the serializing code is executed when the decomposer and the serializer are invoked.

7. The article of manufacture of claim 6 , wherein the non-atomic class is a class that is represented by a nested string and the atomic class is a class that is represented by a non-nested string.

8. The article of manufacture of claim 6 , wherein the first constructor creates the element class with one or more sub-elements and one or more attributes.

9. The article of manufacture of claim 8 , wherein the entity comprises at least one of an attribute or a sub-element.

10. The article of manufacture of claim 6 , further comprising instructions which when executed by the computer further causes the computer to:

receive an XML document having a reference to the object; and

de-serialize the received XML document into the object.

11. A computer system for Extensible Markup Language (XML) data binding, comprising:

a computer memory to store program code; and

a processor to execute the program code to:

receive an element class that is created for a non-atomic class from a program code used for creating objects to be serialized into an XML document, the element class comprising:

a first constructor;

a decomposer that returns data extracted from an object of the created objects in the program code, for an entity to aid in serialization, wherein the object is of type non-atomic class;

a composer that extracts value of the entity and creates a new instance of the non-atomic class using the extracted value to aid in de-serialization; and

wherein the element class extends a super element class, and wherein the super element class comprises serializing and de-serializing code;

receive an attribute class that is created for an atomic class, wherein the non-atomic class refers to the atomic class, and wherein the attribute class comprises a second constructor, a serializer, and a de-serializer; and

generate the XML document using the element class, the attribute class, and serializing code in the super element class, wherein the serializing code is executed when the decomposer and the serializer are invoked.

12. The system of claim 11 , wherein the non-atomic class is a class that is represented by a nested string and the atomic class is a class that is represented by a non-nested string.

13. The system of claim 11 , wherein the first constructor creates the element class with one or more sub-elements and one or more attributes.

14. The system of claim 13 , wherein the entity comprises at least one of an attribute or a sub-element.

15. The system of claim 11 , wherein the processor further executes the program code to:

receive an XML document having a reference to the object; and

de-serialize the received XML document into the object.

Assignments (2)
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0223 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 19, 2011
From: DEBUSMANN, RALPH
To: SAP AG
Reel/Frame 027405/0300 →