Interface

You create a CORBA interface using a class with the <<CORBAInterface>> stereotype.

However, it is possible to design a CORBA interface using a PowerDesigner interface. When you create an interface, the <<CORBAInterface>> stereotype is automatically assigned. It is allowed to draw associations between these interfaces.

Interface properties mapping:

IDL concept

PowerDesigner implementation

Inheritance between interfaces

Generalization link between classes with <<CORBAInterface>> stereotype

Readonly attribute

readonly stereotype for attribute

Local interface

isLocal extended attribute set to True

Abstract interface

Abstract property selected in class property sheet

Interface declaration

Use inner link between <<CORBAInterface>> class and other items

Note:

You can use an inner link to declare an item inner to another.



interface TestInterface {
 struct TestStruct {
  string member1;
 };

 attribute string StringA;
 attribute TestInterface::TestStruct MyStructAttr;
 void OperationA(inout TestStruct t, in string str);
 boolean OperationB(inout TestStruct t);
 
};

In this example, the composition link indicates that an attribute in TestInterface uses the other interface TestStruct as data type. The declaration inside the interface is performed with an inner link.


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