主权项 |
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; andwherein 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. |