XML serialization and deserialization
First Claim
1. A method for serializing an object instance to a serial format, the method comprising steps of:
- generating a mapping between an arbitrary annotated source code file and a schema, the arbitrary annotated source code file containing at least one programming type that describes a shape of an object instance and the schema describing a format of a document having a serial format, the mapping defining a correspondence between the shape of the object instance and the format of the document having the serial format; and
converting an object instance corresponding to the arbitrary annotated source code to the serial format by converting at least one of a public property, a public field and a method parameter of the object instance to a document having the serial format based on the mapping.
2 Assignments
0 Petitions
Accused Products
Abstract
An object instance is serialized to a serial format, such as an eXtensible Markup Language (XML) document, based on a mapping between an arbitrary annotated source code file and a schema. The arbitrary annotated source code contains at least one programming type that describes a shape of an object instance and the schema describes a format of a document having a serial format. The mapping defines a correspondence between the shape of the object instance and the format of the document having the serial format. Subsequently, an object instance is converted to the serial format by converting public properties, public fields and method parameters of the object instance to a document having the serial format based on the mapping. Once the mapping is defined, an XML document can also be converted to an object instance based on the mapping.
169 Citations
58 Claims
-
1. A method for serializing an object instance to a serial format, the method comprising steps of:
-
generating a mapping between an arbitrary annotated source code file and a schema, the arbitrary annotated source code file containing at least one programming type that describes a shape of an object instance and the schema describing a format of a document having a serial format, the mapping defining a correspondence between the shape of the object instance and the format of the document having the serial format; and
converting an object instance corresponding to the arbitrary annotated source code to the serial format by converting at least one of a public property, a public field and a method parameter of the object instance to a document having the serial format based on the mapping. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for converting a document in a serial format to an object instance, the method comprising steps of:
-
generating a mapping between an arbitrary annotated source code file and a schema, the mapping defining a correspondence between a shape of an object instance and a format of a document having a serial format; and
converting a document having the serial format to an object instance based on the mapping, the document in the serial format containing at least one of a public property, a public field and a method parameter of the object instance. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer-readable medium containing computer-executable instructions for performing steps comprising:
-
generating a mapping between an arbitrary annotated source code file and a schema, the arbitrary annotated source code containing at least one programming type that describes a shape of an object instance and the schema describing a format of a document having a serial format, the mapping defining a correspondence between the shape of the object instance and the format of the document having the serial format; and
converting an object instance corresponding to the arbitrary annotated source code to the serial format by converting at least one of a public property, a public field and a method parameter of the object instance to a document having the serial format based on the mapping. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
-
25. A computer-readable medium containing computer-executable instructions for performing steps comprising:
-
generating a mapping between an arbitrary annotated source code file and a schema, the mapping defining a correspondence between a shape of an object instance and a format of a document having a serial format; and
converting a document having the serial format to an object instance based on the mapping, the document in the serial format containing at least one of a public property, a public field and a method parameter of the object instance. - View Dependent Claims (26, 27, 28, 29, 30, 31, 32)
-
-
33. A method for generating a mapping for serializing an object into a document having a serial format and for deserializing a document having a serial format into an object, the method comprising steps of:
-
generating a schema corresponding to an annotated source code file, the annotated source code file containing at least one programming type that describes a shape of an object instance, and the schema describing a format of a document having a serial format; and
generating a mapping between the arbitrary annotated source code file and the schema, the mapping defining a correspondence between the shape of the object instance and the format of the document having the serial format. - View Dependent Claims (34, 35, 36, 37, 38, 39)
-
-
40. A method for serializing and deserializing an object, the method comprising steps of:
-
generating a schema corresponding to an annotated source code file, the annotated source code file containing at least one programming type that describes a shape of an object instance, and the schema describing a format of a document having a serial format; and
converting an object instance corresponding to the annotated source code to the serial format by converting at least one of a public property, a public field and a method parameter of the object instance to a document having the serial format based on a mapping. - View Dependent Claims (41, 42, 43, 44, 45, 46, 47)
-
-
48. A method for generating source code based on a schema, the method comprising steps of:
-
importing a schema describing a format of a document having a serial format; and
generating source code based on the imported schema, the generated source code containing at least one programming type that describes a shape of an object instance and is related to the serial format of a document described by the schema. - View Dependent Claims (49, 50, 51, 52, 53)
-
-
54. A method for generating a schema based on source code, the method comprising steps of:
-
importing an annotated source code file containing at least one programming type that describes a shape of an object instance; and
generating a schema based on the imported annotated source code, the generated schema describing a format of a document having a serial format. - View Dependent Claims (55, 56, 57, 58)
-
Specification