Attributes and operations of «CORBAInterface»

A «CORBAInterface» class can have both attributes and operations. These elements are generated into attributes and operations with the same names in the IDL interface.

Data types used for attributes and operations are generated "as-is" in the IDL files. Therefore, you must use CORBA data types, defined in either the predefined CORBA types package or in your own «CORBAModule» or «CORBAInterface».

Create subclasses in the model to realize IDL interfaces as follows:

To simplify the process, you can drag-and-drop CORBA operations and attributes from a CORBA interface to a regular class. IBM® Rational® Rhapsody® automatically converts the types.

The following constraints apply to CORBA interfaces concerning code generation:

You can make an attribute of a CORBA interface readonly (a CORBA keyword) by setting the attribute's CORBA::Attribute:IsReadOnly property to True. To make an operation of a CORBA interface oneway, set the operation's CORBA::Operation::IsOneWay property to True.

In addition, the following standard UML options are available for operations:


Feedback