Chapter 11 Generating for a Language
You can generate the following types of objects for the following supported languages in an OOM:
Object language | What is generated |
---|---|
Analysis | No files generated as this language is mainly used for modeling purpose |
C# | .CS definition files |
C++ | C++ definition files (.h and .cpp) |
IDL-CORBA | IDL-CORBA definition files |
Java | Java files from classes and interfaces of the model. Includes support of EJB and J2EE |
PowerBuilder | .PBL application or .SRU files from classes of the model |
Visual Basic.Net | .VB files |
XML–DTD | .DTD files |
XML–Schema | .XSD files. Includes standard XML language properties |
You can use the Generation Template Language (GTL) mechanism to produce user-defined text for code generation. It allows you to access all elements of the model and to customize the generation process. It is available for all object languages supported in an OOM.
For more information on the Generation Template Language mechanism, see section Defining Generation Template Language, in chapter Generation Reference Guide in the Advanced User Documentation .
You can display the generation templates that generate code from the Preview page in object property sheets, provided the Enable Trace Mode check box is selected in the object language, or extended model definition editors.
For more information on the trace mode property, see section Object language properties, in chapter Object Languages Reference Guide in the Advanced User Documentation .
You can check your model before generation if you select the Check Model check box. This check box is available for all languages. The generation stops if an error is found: you must correct this error before starting the generation again.
For more information on the Check Model feature, see section Checking an OOM in chapter Working with Object-Oriented Models.
Copyright (C) 2005. Sybase Inc. All rights reserved. |