Customizing the metamodel > Keywords for USRPROPS > INVISIBLE
  
INVISIBLE
The INVISIBLE keyword makes a property invisible in the graphic dialog without deleting it. Invisible properties are used in situations where a property is needed for a definition, but is meaningless to the user.
Example
In the following example, the Stereotype property is used with both the Symbol and the Definition of a class. It must match. You can choose the stereotype property in the class, and that value is automatically given to the symbol, where it is used to determine how the symbol is displayed. However, you do not need to see the Stereotype property in the Symbol tab of the Class definition, since it is already in the Class definition dialog. To have it in both places might be confusing, so it is made invisible.
SYMBOL "Class" in "Class"
{
PROPERTY "Package" { EDIT OneOf "Package" READONLY }
PROPERTY "Stereotype"
{ INVISIBLE EDIT Text ListOnly List "Class Stereotypes"
DEFAULT "" LENGTH 20 }
PROPERTY "Programming Language"
{ INVISIBLE EDIT Text ListOnly List "Programming Languages"
DEFAULT "" LENGTH 30}
}
DEFINITION "Class"
{
PROPERTY "Package"
{ KEY EDIT OneOf "Package" RELATE BY "is keyed by" READONLY}
PROPERTY "Stereotype"
{ EDIT Text LIST "Class Stereotypes"
INIT_FROM_SYMBOL Default "" LENGTH 20 }
PROPERTY "Programming Language"
{ EDIT Text ListOnly LIST "Programming Languages"
INIT_FROM_SYMBOL Default "CORBA"
LENGTH 30 INITIAL USER REQUIRED READONLY
}
}
See also
VISIBLE
Keywords for USRPROPS