COMMAND LINE SHELL COMMAND GENERATION BASED ON SCHEMA
First Claim
1. A method executed at least in part in a computing device for automatic command shell command code generation based on a schema, the method comprising:
- receiving the schema;
generating a model for classes associated with the schema;
optimizing the model to enable direct translation of the schema to an application programming interface (API); and
generating code for a command for enabling manipulation of data structured according to the schema based on classes defined by the optimized model.
2 Assignments
0 Petitions
Accused Products
Abstract
A code generator tool capable of creating command shell commands at compile time or runtime from a schema such as an XSD schema is provided. The code generator generates classes to represent data defined by a schema and the command shell generation code may use knowledge of the classes to generate appropriate command shell classes to manipulate the data. Plug-ins may be inserted following optimization of a model of classes generated by the code generation tool. The plug-ins can modify the model, insert their own code, or disable code generation and generate their own code from the model.
19 Citations
20 Claims
-
1. A method executed at least in part in a computing device for automatic command shell command code generation based on a schema, the method comprising:
-
receiving the schema; generating a model for classes associated with the schema; optimizing the model to enable direct translation of the schema to an application programming interface (API); and generating code for a command for enabling manipulation of data structured according to the schema based on classes defined by the optimized model. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computing device for providing automatic command shell command code generation based on a schema, the computing device comprising:
-
a memory; a processor coupled to the memory, wherein the processor executes a code generator tool configured to; receive the schema; generate a model for classes associated with the schema; optimize the model to enable direct translation of the schema to an application programming interface (API); if a plug-in is provided, insert the plug-in, wherein the plug-in is configured to; modify the model, disable code generation, generate a plug-in code, and insert the plug-in code; and generate code for a command for enabling manipulation of data structured according to the schema based on classes defined by the optimized model. - View Dependent Claims (14, 15, 16, 17)
-
-
18. A computer-readable storage medium with instructions stored thereon for automatic command shell cmdlet code generation based on a schema, the instructions comprising:
-
receiving the schema defining a structure for data to be manipulated; generating a model for classes associated with the schema; optimizing the model to enable direct translation of the schema to an application programming interface (API); if a plug-in is provided, inserting the plug-in, wherein the plug-in performs at least one from a set of;
modifying the model, disabling code generation, generating a plug-in code for the cmdlet, and inserting the plug-in code; andgenerating code for the cmdlet for enabling manipulation of the data structured according to the schema based on classes defined by the optimized model. - View Dependent Claims (19, 20)
-
Specification