Book a Demo

Author Topic: Class Properties: Class Implements Interface?  (Read 2640 times)

avexus_kms

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Class Properties: Class Implements Interface?
« on: January 15, 2003, 10:27:40 am »
I want to indicate that a class will implement an interface. How can I do this in EA?

There is nothing (that I can see) in the ClassProperties window that will allow me to do this. Correct me if I am wrong.

Alternatively, I guess I can place both the interface and the class onto a Class Diagram and connect them with a "realise" relationship, but I can't figure out how to do this either. If I drag an interface from the ProjectExplorer onto my diagram then EA makes an instance of this interface and names it the same as the package within which the interface lies. There is no way to change the name of the object. For example, I have a package called "db" and within that package have an interface called "TransferObject". If I drag the "TransferObject" onto the diagram I get an object with the following notation:

<<interface>>
db:TransferObject

(I've tried turning AutoInstance off, but that seems to have no effect.)

When I open up the properties for this object there is no way to change the "db" to what the actual class will be called, which is "Account", by the way.

Is there a way (it should be very simple to do) to indicate on a class diagram that a class implements an interface?