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 New > IDL Profile > Union. 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
Model (UML item)
Package (UML item)
Owns
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.