Minor thing, should the model checking have picked up this? [javac] common/src/java/net/starmap/cannonical/RoleType.java:22: contains(java.lang.Object) in java.util.Collection cannot be applied to (int) [javac] if (!values.contains(value)) { [javac]
^ The enumeration type was int, not Integer Also having fixed above then got: [javac] /hda6/andromda-work/Star-map/common/src/java/net/starmap/cannonical/RoleType.java:32: incompatible types [javac] found : java.lang.Integer [javac] required: java.lang.String [javac] return value; which was in the toString method of the generated enumeration code. Fixed by modifying Enumeration.vsl template ... public String toString() { // AMW return "" + value; } beware after rebuilding and reinstalling, have to copy andromda-java-cartridge....jar to ant/lib On Tue, 2004-07-27 at 12:43, Martin West wrote: > doh, yes the field above the type > > Thanks > > On Tue, 2004-07-27 at 12:35, Chad Brandon wrote: > > Its not a tagged value, its the initial value defined on your attribute. So > > you'll need to define the Initial Value through the attribute specification > > general tab of Magic Draw. > > > > Chad > > > > ----- Original Message ----- > > From: "Martin West" <[EMAIL PROTECTED]> > > To: "Andromda User" <[EMAIL PROTECTED]> > > Sent: Tuesday, July 27, 2004 7:27 AM > > Subject: [Andromda-user] Enumeration tagged value Magicdraw > > > > > > > I defined a class RoleType in Magicdraw, made it an <<Enumeration>> > > > stereotype, added a frozen attribute. Everything generated hunky dory > > > except ... > > > public static final RoleType PHONE = new > > > RoleType(${attribute.defaultValue}); > > > > > > I assume ${attribute.defaultValue} is a tagged value for the attribute > > > but I cannot figure out how to get the tagged value into magicdraw. > > > > > > -- > > > Martin West > > > Head of Product Design and Development > > > http://www.star-map.net > > > +44(0)207 318 0308 > > > +44(0)787 968 0096 > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > FREE Java Enterprise J2EE developer tools! > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > > _______________________________________________ > > > Andromda-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > _______________________________________________ > > Andromda-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/andromda-user -- Martin West Head of Product Design and Development http://www.star-map.net +44(0)207 318 0308 +44(0)787 968 0096 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user