Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

associating class in two different naemspace

0 votes
set namespaceSeperator ::

class Name1::ClassA {

+void foo();

+Name2::ClassB m_Member;

}

 

class Name2::ClassB {

+void bar();

}

 

How do I show aggregation reation between Class B and Class A.

Name1::ClassA *- Name2::ClassB doesn't seem to work
asked Mar 27, 2014 by sys83 (150 points)

1 Answer

+1 vote

Hello,

Thanks for the report.

We have a bug in the parser. The : is not recognized right now.
We will fix that, but as workarround, you can use quotes:

@startuml
set namespaceSeparator ::
class Name1::ClassA {
  +void foo();
  +Name2::ClassB m_Member;
}
class Name2::ClassB {
  +void bar();
}
"Name1::ClassA" *- "Name2::ClassB"
@enduml

 

answered Mar 27, 2014 by plantuml (125,210 points)
Thanks for the swift reply. This solution works for me.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...