On 18 Nov 2011, at 18:50, Topcased user list where issues are discussed wrote:
> Topcased 5.1.0, with Papyrus 0.8.2 (I think? how do I tell?) on Mac OS X Lion. > > I have a class with a property (I would have called it an attribute) of type > float from Java primitive types, and I want to set a default value (I mean, > an initial value for the attribute), which I do by selecting the attribute on > the class diagram and using the Property editor. > > I press '+' and get a menu to choose what type the default is to be, which > seems to be a set of UML standard types and certainly doesn't include > LiteralFloat. > > To check it out I chose LiteralInteger; I have to include a name and the > value, but the value gets ignored as in > https://bugs.eclipse.org/bugs/show_bug.cgi?id=364184 . > > Is there a way I've missed where a profile that defines a type like float can > define a way of expressing a literal of that type? I've been reading through the OMG docs (2.0, 2.2, 2.3, 2.4.1) and it seems clear that the OMG think that a default value for a property should be a string: in Superstructure 2.3, section 7.3.44, p126 it says • / default: String [0..1] A String that is evaluated to give a default value for the Property when an object of the owning Classifier is instantiated. This is a derived value. (I have no idea what "This is a derived value" means in this context!). There are very similar remarks in Infrastructure. Looking at the superstructure cmof it's clear that they really do mean the Core PrimitiveType String. _______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
