Can an item inside a map refer to a package?

0 votes
asked Jan 26, 2021 in Wanted features by dolf (120 points)
It looks like an item inside a map can refer to a nested object inside a package, but not to the package itself. Could we have this feature?

@startuml

package foo {
    object baz
}

package oink {
    map a {
        b *-> foo.baz
        'c *-> foo
    }
}

@enduml

1 Answer

0 votes
answered Jan 26, 2021 by The-Lu (63,920 points)

Hello D.,

A possible workaround will be to use empty map and then a normal arrow outside the map definition;

Here is an example:

@startuml
package foo {
    object baz
}

package oink {
    map a {
        b *-> foo.baz
        c =>
    }
}

a::c --> foo
@enduml


[See on PlantUML online server]

If that can help,
Regards,
Th.

...