Union item (IDL code)
A UML Union is a standard Modeler Class item that has the «CORBAUnion» stereotype applied to it.
Create a Union from the Model or a Package: right-click the Model or Package, and select > > . After creating the Union, you must apply the «CORBAUnion» stereotype to it.
The Union uses child Attributes to define its discriminant, cases and the default:
• An Attribute that is stereotyped by the «CORBASwitch» stereotype is generated as the discriminant.
• An Attribute that is stereotyped by the «CORBACase» stereotype is generated as a case.
• An Attribute that is stereotyped by the «CORBADefault» stereotype is generated as the default case.
The following sections provide information about how a Union is used in the model.
Owned By
![](../../Integrity_Modeler/images/di-model_186.gif)
Model (UML item)
![](../../Integrity_Modeler/images/di-package_230.gif)
Package (UML item)
Owns
![](../../Integrity_Modeler/images/di-attribute_90.gif)
Attribute - the child Attributes are used to generate the switch type, cases and the default of the Union.
Shown on these diagrams
None.
IDL Profile properties
None.