When using namespace (fully qualified name) for inner classes, is it possible to remove parent class name prefix?

0 votes
asked Feb 20, 2020 in Question / help by Kate

Hi, 

I was wondering if there is a way to handle using namespaces for  inner classes but to disable the parent class name appearing before the inner class name? 

I know we could stop using the fully qualified name and instead use the outer class' package as our namespace, but this will cause an issue if we have multiple inner classes in the same package /w the same name. 

I have coded an example here:

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuU9ApaaiBbOeIIqkqSlCoqij0lF1N4Tdi5Gr5wUkGgAXWfL2S4bHPbuwc6k4uDOID4BF4oIAR5eccd6Pv9Y7O6AQdsc8R20NSMxJrjKbprOS5f1eAhwuS4BoNH9gu2KH6NPEsECY2Ice87nIp2CS5qd4n8KJjhWWprOS5f1eAXSGEAJcfG2p2000 

In this example, is it possible to continue using these namespaces but to disable the outer class names prefixed to the inner classes? Let me know if you need any more info!

Kind Regards,

Kate

1 Answer

+1 vote
answered Feb 20, 2020 by plantuml (294,660 points)
commented Feb 20, 2020 by Kate
Thank you, this works perfectly!
...