UML representation of interfaces

Issue #33 new
Marco Bresciani created an issue

The interfaces should be represented with interface Xyz instead of class Xyz, so that the proper icon will be displayed: I almost fainted when I saw a class "inheriting" from three other classes (in Java!) while they actually were interfaces. 😃

Actually, same for enums.

Comments (2)

  1. Marco Bresciani reporter

    It seems the interfaces are properly represented, but only if they are in the same package. Create, for example, an interface Interface and class Clazz that implements Runnable and such Interface interface. While Interface is correctly shown as interface, Runnable is not.

  2. Philippe MESMEUR repo owner

    You're right. I your example, when Clazz implements Runnable, Runnable is not "known" in the plantuml file. By default, it decide to display it as being a class. I would have to “forward declare it“ as an interface.

      interface Runnable
    
      Clazz ..|> Runnable
    
  3. Log in to comment