Command line shell command generation based on schema
First Claim
1. A method executed at least in part in a computing device to generate automatic command shell command code based on a schema, the method comprising:
- receiving the schema that includes one or more of;
element declarations, attribute declarations, simple type definitions and complex type definitions;
reading the schema to create a model for classes that include an interface and a structure, wherein the classes validate constraints in the schema;
optimizing the model to translate the schema to an application programming interface (API); and
inserting a plug-in to the optimized model to generate a command for a command shell based on the optimized model by;
disabling generation of a default code for the command, using the plug-in; and
generating a plug-in code for the command, using the plug-in, wherein the command manipulates data that is structured based on the classes according to a class definition in a data store associated with the schema defined by the optimized model at runtime.
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.
27 Citations
17 Claims
-
1. A method executed at least in part in a computing device to generate automatic command shell command code based on a schema, the method comprising:
-
receiving the schema that includes one or more of;
element declarations, attribute declarations, simple type definitions and complex type definitions;reading the schema to create a model for classes that include an interface and a structure, wherein the classes validate constraints in the schema; optimizing the model to translate the schema to an application programming interface (API); and inserting a plug-in to the optimized model to generate a command for a command shell based on the optimized model by; disabling generation of a default code for the command, using the plug-in; and generating a plug-in code for the command, using the plug-in, wherein the command manipulates data that is structured based on the classes according to a class definition in a data store associated with the schema defined by the optimized model at runtime. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computing device to generate automatic command shell command code 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 that includes one or more of;
element declarations, attribute declarations, simple type definitions and complex type definitions, and the schema components belonging to a target namespace;read the schema to create a model for classes that include an inters and a structure, wherein the classes validate constraints in the schema; optimize the model to translate the schema to an application programming interface (API); and insert a plug-in to the optimized model to generate a command for a command shell based on the optimized model, wherein the plug-in is configured to; disable generation of a default code for the command; and generate a plug-in code for the command, wherein the command manipulates data that is structured based on the classes defined by the optimized model at runtime. - View Dependent Claims (12, 13, 14)
-
-
15. A computer-readable memory device with instructions stored thereon to generate automatic command shell cmdlet code based on a schema, the instructions comprising:
-
receiving the schema that includes one or more of;
element declarations, attribute declarations, simple type definitions and complex type definitions, the schema components belonging to a target namespace;reading the schema to create a model for classes, wherein the classes validate constraints within the schema; optimizing the model to translate the schema to an application programming interface (API); and inserting a plug-in to the model to generate a cmdlet for a command shell based on the optimized model by; disabling generation of a default code for the cmdlet, using the plug-in; and generating a plug-in code for the cmdlet, using the plug-in, wherein the cmdlet manipulates data that is structured based on the classes defined by the optimized model at runtime. - View Dependent Claims (16, 17)
-
Specification