Method and system for automatically generating source code based on a mark-up language message definition
AssigneeHewlett-Packard Development Company, L.P.
InventorSamo Zorc
Life of this patent
Estimating the term…
Abstract
A method and system for automatically generating source code based on a mark-up language message definition. A mark-up language message definition is received. A first in-memory representation of the message definition is generated based on the received message definition. A second in-memory representation of source code is generated based on the first in-memory representation of the message definition.
Claims22
A method for automatically generating source code for manipulating at least one mark-up language message based on a mark-up language message definition, the method comprising:
- receiving the mark-up language message definition;
- generating a first in-memory representation of the message definition based on the received message definition;
- generating a second in-memory representation of a source code based on the first in-memory representation of the message definition, said generating a second in memory representation comprising generating a schema object tree by employing a blackboard architecture that includes agents and solutions;
- wherein the schema object tree includes one or more nodes;
- and wherein the nodes of the schema object tree are agents and the nodes of an associated source object tree are the solutions;
- and
- generating source files based on the second in-memory representation of the source code.
A method for automatically generating source code for manipulating at least one mark-up language message comprising:
- receiving a schema definition for a mark-up language message;
- generating a first in-memory representation of the schema definition based on the schema definition;
- generating a second in-memory representation of source code based on the first in-memory representation of the schema definition;
- wherein the step of generating a second in-memory representation of source code based an the first in-memory representation of the schema definition includes performing one of context free processing and context sensitive processing;
- reading a portion of the schema definition that corresponds to one or an element or an attribute from a schema definition file:
- constructing a schema object hierarchy based on the read portion, wherein the schema object hierarchy includes a plurality of objects;
- compiling the schema object hierarchy into a source object hierarchy;
- and writing the source object hierarchy to one or more object-oriented source files.
Dependencies are inferred from the claim text.