UML Modeling Techniques > Instance modeling > Slots > Setting a text value or linked values of a slot
  
Setting a text value or linked values of a slot
You can set a text value or linked values of a Slot through the Property Pages of an Instance or Slot. Alternatively, you can change the value of a Slot though an Instance symbol on an Object Diagram.
Note that if a text value or linked values have not been set for a Slot, the Slot is virtual and you can only set the value through the Instance's Property Pages.
The Linked Values can be a valid Attributes, Instances and Enumeration Literals. In addition, the Linked Values for a Specification Slot can also be valid States. Tell me more...
To set a text value or linked values of a slot through an instance's property pages:
1. Open the Instance's Property Pages and then click the Slot Values tab.
2. If you want to set a Text Value:
a. Select the required Slot entry in the list.
b. Click the selected cell in the Text Value column.
c. Type the text, and then on the keyboard press the Enter key.
To type a paragraph mark, press Ctrl + Enter.
3. If you want to set Linked Values:
a. Select the required Slot entry in the list.
b. Click the selected cell in the Linked Values column.
c. In the Links Editor, select the Attribute, Instance, Enumeration Literal and State items as appropriate, and then click OK.
If the multiplicity of a slot's underlying Role or Attribute is 'zero or one' or 'only one', then only one item can be linked as the linked value.
For more information about when Attributes, Instances, Enumeration Literals and States are valid, see Overview of instance modeling.
Alternatively, you can drag the Instance from the Packages pane to the Slot's Linked Values cell on the Instance's Property Pages.
To set a text value or linked values of a slot through a slot's property pages:
1. Open the Slot's Property Pages.
You can open a Slot's Property Pages by selecting the Slot on a diagram, or from the Slot Values tab of an Instance's Property Pages, selecting the Slot, and then clicking the Properties button.
2. If you want to set a Text Value:
a. Click the Text Value tab.
b. In the box, type the text value, and then click elsewhere in Modeler.
3. If you want to set Linked Values:
a. Click the Linked Values tab.
b. Click the Link button.
c. Through the Links Editor, select the check boxes associated with the items you want to use.
If the multiplicity of a slot's underlying Role or Attribute is 'zero or one' or 'only one', then only one item can be linked as the linked value.
For more information about when Attributes, Instances, Enumeration Literals and States are valid, see Overview of instance modeling.
To change a text value or linked values of a slot through an instance symbol on an object diagram:
1. Open the Object Diagram.
2. On the Instance symbol that is displaying the Slot whose value you want to change, click the slot.
3. Click the slot again.
If a linked value is set for the Slot: From the Links Editor, select a valid Attribute or Instance, and then click OK. Note that if the multiplicity of a slot's underlying Role or Attribute is 'zero or one' or 'only one', then only one item can be linked as the linked value.
If a text value is set for the Slot: Type the new value, and then press the Enter.