Java enumeration code generating

General discussions about code engineering

Moderator: Moderators

Java enumeration code generating

Postby thanhnq » Thu Sep 27, 2007 9:05 am

I am trying to use Magicdraw 12.5 to generate Java 5 enumeration but it
gives out an error:

model contains the following errors:

Error: RTComponent has to contain at least one class.
RTComponentOrderType.java.

I am using jdk 1.5_10. Is it a bug?


thanhnq
 
Posts Rating:

Re: Java enumeration code generating

Postby Egidijus Vaisnora » Mon Oct 01, 2007 6:24 am

Hello,

Try to use class with stereotype <<JavaEnumeration>> from the Java profile. Standard UML enumeration doesn't cover all Java
enumeration cases and is not used for mapping.

Best Regards,
--
Egidijus Vaisnora
Senior Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT 49425 Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
WWW: http://www.magicdraw.com
--
MagicDraw - Architecture made simple!

Egidijus Vaisnora
 
Posts Rating:

Re: Java enumeration code generating

Postby thanhnq » Thu Oct 04, 2007 11:58 am

I have used this stereo but the same result. Java class generation is OK
except Enumeration.

"Egidijus Vaisnora" <egidijus.vaisnora> wrote in message
news:27253707.1191248100758.JavaMail.tadjar@peleda...
> Hello,
>
> Try to use class with stereotype <<JavaEnumeration>> from the Java
> profile. Standard UML enumeration doesn't cover all Java enumeration cases
> and is not used for mapping.
>
> Best Regards,
> --
> Egidijus Vaisnora
> Senior Programmer
> No Magic Lithuanian Development Center
> Savanoriu pr. 363, LT 49425 Kaunas
> Phone: +370 37 324032 Fax: +370 37 320670
> WWW: http://www.magicdraw.com
> --
> MagicDraw - Architecture made simple!
>


thanhnq
 
Posts Rating:

Re: Java enumeration code generating

Postby Egidijus Vaisnora » Fri Oct 05, 2007 3:25 am

Hello,

Find in your code engineering set in the browser RT component with a name "RTComponentOrderType.java" and remove it. It seems
doesn't contain any class assigned for generation. If it won't help, when perhaps you could send us your project (including mdr
file located near by project file) to the magicdraw

Best Regards,
--
Egidijus Vaisnora
Senior Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT 49425 Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
WWW: http://www.magicdraw.com
--
MagicDraw - Architecture made simple!


Egidijus Vaisnora
 
Posts Rating:

Re: Java enumeration code generating

Postby adityaeipl@hotmail.com » Fri Dec 16, 2011 3:56 am

Hello,

I am facing similar error. I have created components. Can you please point me to a documentation which will guide me for generating code? Is there a step-by-step guide/Samples for all types of diagrams?

Thanks,
Aditya
adityaeipl@hotmail.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Fri Dec 16, 2011 3:53 am


Return to Code engineering

Who is online

Users browsing this forum: No registered users and 0 guests