Harshana
Harshana

Reputation: 7647

UML sequence diagram inner class representation

I would like to know how to represent inner class in UML sequence diagram? Suppose i am making a call from class A inside method a1 to method c1 on Inner class C of class B. Something like in below pseudocode

class A{
  method a1(){
    B.C.c1();
  }
}

class B{
   static class C{
     static method c1(){
      // do something
     }
   }
}

Upvotes: 2

Views: 3034

Answers (2)

Martin V.
Martin V.

Reputation: 3710

UML does not have standard notation for inner classes, that's just Java stuff. I would suggest to omit the fact that there's some inner class or just put some note on parent class if it's really important...

Upvotes: 3

kuriouscoder
kuriouscoder

Reputation: 5582

I do not have it installed to provide a screenshot but you could try eclipsediver to generate sequence diagrams.

Upvotes: 0

Related Questions