Private classes and uml

java, uml

Solution

UML is for designing or describing complex architectures. I don't think an inner class is that important to mention it in an UML class diagram. If you design your system on the interface level your implementation and so the private class is out of focus, as well as all private methods. Your diagrams should only contain public methods = interface methods.

Problem

I have some inner private classes and I am unsure where to put them in my class diagrams. Should they be in their external classes or on their own?

Original source