FlowDirection java export

Discussions about systems engineering product SysML functionalities

Moderator: Moderators

FlowDirection java export

Postby andras.joo@accenture.com » Fri Feb 26, 2021 9:27 am

Dear All,

When a sysml-derived profile is exported to Java, com.nomagic.magicdraw.sysml.util.SysMLUtilities$FlowDirection inner enum is exported as FlowDirectionEnum.

This breaks the compilation and requires manual patching (the import directive is also missing from the exported Java file).

My question is this:
1. Is this a SysML profile related issue, or
2. the Java export is broken, as it automatically appends an Enum suffix to enums?

Thank you.
Regards,
A.
andras.joo@accenture.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Fri Feb 26, 2021 9:17 am

Re: FlowDirection java export

Postby andras.joo@accenture.com » Mon Mar 01, 2021 2:44 am

It seems that "Enum" suffix is mechanically appended to enums during export. Therefore if you have an XEnum defined in the profile, this will end up as XEnumEnum in the generated Java code.
andras.joo@accenture.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Fri Feb 26, 2021 9:17 am


Return to SysML

Who is online

Users browsing this forum: No registered users and 0 guests