The CORBA package
Overview of the CORBA package
Objecteering CORBA Designer provides the CORBA package, which contains a number of classes required when modeling a "typedef" or "sequence".
The CORBA package also contains a template class, "fixed", which has two template parameters. This class is used to model the instantiation of the CORBA fixed template.
The examples at the end of this section provide further details on how the contents of the CORBA package are used.
Contents of the CORBA package
The CORBA package contains the following classes, which are stereotyped <<CORBAPrimitive>>:
· short
· long
· long long
· double
· unsigned short
· unsigned long
· unsigned long long
· any
· Boolean
· String
· octet
· void
· char
· wchar
· float
· wstring
· typecode
· native
Example 1
The "UML Profile for CORBA specification" indicates that in order to obtain the following IDL code:
typedef sequence<short> mySeqShort;
you should create a class named "mySeqShort" and stereotyped <<CORBASequence>>, and then create an association (with multiplicity of 1) from this class to the "CORBA::short" class.
Example 2
The "UML Profile for CORBA specification" indicates that in order to obtain the following IDL code:
typedef unsigned long ulong;
you should create a class named "ulong" and stereotyped <<CORBATypedef>>, and then make this class specialize the "CORBA::unsigned long long" class.
Note: In Objecteering, the association and the generalization in examples 1 and 2 require that "short" and "unsigned long long" be classes. To distinguish them from ordinary classes, they are stereotyped <<CORBAPrimitive>>.
Example 3
The "UML Profile for CORBA specification" indicates that in order to obtain the following IDL code:
typedef sequence<MyClass> myClassSequence.
you should create a class named "MyClassSequence" and stereotyped <<CORBASequence>>, and then create an association (with multiplicity of 1). On this association, you must also create a qualifier named "index" on the opposite association end.

Figure 13. The "MyClassSequence" class stereotyped <<CORBASequence>>
Example 4
The "UML Profile for CORBA specification" indicates that in order to obtain the following IDL code:
typedef sequence<MyClass> myClassSequence.
you should create a class named "MyTypedef" and stereotyped <<CORBATypedef>>, and make this class specialize the "MyClass" class. If you want to create a typedef from a primitive class (as short or unsigned long), you must create a class stereotyped <<CORBAPrimitive>>.

Figure 14. The "MyTypedef" class stereotyped <<CORBATypedef>>