How to work with nested namespaces ?

0 votes
asked Mar 11, 2016 in Closed question / help by anonymous
edited Mar 11, 2016

hey,

i try to work with nested namspace and i can do that correctly.

@startuml

namespace core {
    namespace view {
        baseview.ClassicalView <|-- TestView
    }

    namespace baseview {
        abstract class ClassicalView
    }
}

@enduml

in this exemple,

baseview.ClassicalView <|-- TestView

TestView doesn't seem to point to the abstract class wich is what i want and base view should be in core namespace

Can you explain me the correct way to do this ?

Thank u !

Jérôme

Edit:

Sorry just found i had to full name correctly the namespace as 

@startuml

namespace core {

    namespace core.baseview {
        abstract class ClassicalView #9FF{
        }
    }

    namespace core.view {
        core.baseview.ClassicalView  <|-- TestView

        class TestView{
        }
    }
}

@enduml

1 Answer

0 votes
answered Mar 14, 2016 by habdank (760 points)

Hi,

I found this one working as well:

@startuml
 
namespace core {
    namespace view {
    }
 
    namespace baseview {
        abstract class ClassicalView
        ClassicalView <|-- core.view.TestView
    }
}
 
@enduml
 
Best regards,
Seweryn.
 
...