Interface Properties

You can modify an object's properties from its property sheet. To open an interface property sheet, double-click its diagram symbol or its Browser entry in the Interfaces folder.

The General tab contains the following properties:

Property

Description

Name

Specifies the name of the item, which should be clear and meaningful, and should convey the item's purpose to non-technical users.

Code

Specifies the technical name of the object, which is used for generating code or scripts.

Comment

Descriptive comment for the object.

Stereotype

Extends the semantics of the object beyond the core UML definition. The following common stereotypes are available by default:


  • <<metaclass>> - interface that will interact with a model that contains classes with metaclass stereotypes

  • <<powertype>> - a metaclass whose instances are sub-classes of another class

  • <<process>> - heavyweight flow that can execute concurrently with other processes

  • <<thread>> - lightweight flow that can execute concurrently with other threads within the same process. Usually executes inside the address space of an enclosing process

  • <<utility>> - a class that has no instances

Visibility

Specifies the visibility of the object, how it is seen outside its enclosing namespace. When an interface is visible to another object, it may influence the structure or behavior of the object, or similarly, the other object can affect the properties of the interface. You can choose between:


  • Private – only to the object itself

  • Protected – only to the object and its inherited objects

  • Package – to all objects contained within the same package

  • Public – to all objects (option by default)

Inner to

Indicates the name of the class or interface to which the current interface belongs as an inner classifier

Type

Allows you to specify that an interface is a generic type, or that it is bound to one. You can choose between:


  • Interface

  • Generic

  • Bound – If you select this option, then an additional list becomes available to the right, where you can specify the generic type to which the interface is bound.

If you specify either Generic or Bound, then the Generic tab is displayed, allowing you to control the associated type variables (see Interface property sheet Generic tab). For more information on generic types and binding interfaces to them, see Generic types and methods.

Generate

The interface is automatically included among the objects generated from the model when you launch the generation process

The following tabs list objects associated with the interface:


  • Attributes - lists the attributes associated with the interface. You can create attributes directly in this page, or add already existing attributes. For more information, see Attributes (OOM).

  • Operations - lists the operations associated with the interface. You can create operations directly in this page, or add already existing operations. For more information, see Operations (OOM).

  • Inner Classifiers - lists the inner classes and interfaces associated with the interface. You can create inner classifiers directly in this page. For more information, see Composite and inner classifiers.

  • Related Diagrams - lists the model diagrams that are related to the interface. You can add diagrams in this page. For more information, see "Defining related diagrams" in the Diagrams and Symbols chapter of the Core Features Guide.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com