JET files and UML-to-CORBA transformation output

The UML-to-CORBA transformation uses a collection of Java Emitter Template (JET) files that specify the default format for the Interface Definition Language (IDL) source code that the transformation generates. You can edit the JET files to customize the format of the generated IDL source code.

When you run the UML-to-CORBA transformation, the transformation creates a project in the workspace called .JETEmitters. This project contains the JET files that specify a default format for the IDL source code that the UML-to-CORBA transformation generates. The templates are located in the templates folder of the .JETEmitters project, and have .idljet as a file extension. You can edit these templates to customize the format of the IDL source code that the transformation generates.

A JET file might specify the format of multiple IDL source code elements. The following table lists the JET files that specify the format for each element in the IDL source code:

IDL code elements JET file
// File:	output.idl
#ifndef _OUTPUT_IDL_ 
#define _OUTPUT_IDL_
IDLHeaderTemplate.idljet
#include <outside.idl>
#include <another.idl>
IncludeTemplate.idljet
// My Module Documentation CommentsTemplate.idljet
module myMod { ModuleTemplate.idljet
	Interface MyIntr;
FwdDeclTemplate.idljet
	struct myStruct {
StructTemplate.idljet
		MyIntr l_member;
ExceptionStructMemberTemplate.idljet
	};
TypeEndTemplate.idljet
	exception myException {
ExceptionTemplate.idljet
		string message;
ExceptionStructMemberTemplate.idljet
	};
TypeEndTemplate.idljet
	// My Interface comments
CommentsTemplate.idljet
	interface MyIntr {
InterfaceTemplate.idljet
		const short oneConst = 9;
ConstantTemplate.idljet
		attribute myStruct oneAttr;
InterfaceAttributeTemplate.idljet
		void myOp(
InterfaceOperationTemplate.idljet
			in short p1, out short p2, inout short p3
ParamTemplate.idljet
			)
			raises (myException);
OperationEndTemplate.idljet
	};
TypeEndTemplate.idljet
	enum myEnum {
EnumTemplate.idljet
		FIRST,
		SECOND
EnumLiteralTemplate.idljet
	};
TypeEndTemplate.idljet
	native myNative;
NativeTemplate.idljet
	typedef myNative newName;
TypedefTemplate.idljet
	valuetype myValue {
ValueTemplate.idljet
		attribute myEnum oneAttr;
ValueAttributeTemplate.idljet
		myEnum getAttr(
ValueOperationTemplate.idljet
		);
OperationEndTemplate.idljet
	};
TypeEndTemplate.idljet
};
TypeEndTemplate.idljet
#endif /* #ifndef _OUTPUT_IDL_ */
IDLFooterTemplate.idljet
Tabspaces and line length SettingsTemplate.idljet


Feedback