IDL Converter by Keng Lim
Rose CORBA does not recognise models created with the IDL CodeMapper Addin. This script converts IDL CodeMapper models for Rose CORBA
conversion rules can be found in Technical Application Note 10603.
The script will convert :
- Classes : converts IDL property to CORBA property.
a) The IDLSpecificationType tag is converted to the valid CORBA stereotype.
b) import the ImplementationType to the CORBA ImplementationType
c) import the ConstValue to the CORBA ConstValue
- Operations
a) import the Context to the CORBA Context
b) import the OperationIsOneWay to the CORBA OperationIsOneWay
c) import Raises to the CORBA Raises ....
In the CORBA addin Raises exception classes must be part of the model. So the convertor checks for this and throws an error if the Raises class is not in the model. Any Raises found in the property tags are fully qualified before it is added to the CORBA addin.
d) converts the Parameters and Return values to their fully qualified name as required by the CORBA
addin.
- Attributes
a) import the CaseSpecifier to CORBA CaseSpecifier
b) import the IsReadOnly to CORBA IsReadOnly
c) convert to the fully qualified name to the attribute Type as required by the CORBA addin
NOTE: classes and all elements belonging to a class will only be process if the class IDL property
tag value "IDLElement" = true
- Associations.
a) Assoications Roles which are navigable with no Role names will be given the default of "the + classname". This is to handle the defect, that the CORBA code generator does not provide a default Role name.
- Modules/Components
a) if the GenerateIDLModule = true then the AssignedLanguage for the module will be
set to CORBA.
b) import the CmIdentification to CORBA CmIdentification
c) import CopyrightNotice to CORBA CopyrightNotice
d) each IDL tag for AdditionalIncludes will then be process for the module. These includes will be fully qualified as required by the CORBA
addin. If the included module is not found, a dialog will appear prompting you to create the missing module. If you choose not to create the module then a warning message will be written to the log. The include will not be imported to the CORBA
addin.
New Features
This updated version now deals with arrays and namespaces.
Download (8KB) (21-Mar-2000)
www.rationalrose.com/scripts/idl_converter.zip |