how to check the type of a property if it is String [message #537534] |
Wed, 02 June 2010 19:19 |
wafaa Messages: 163 Registered: January 2010 Location: Egypt |
Senior Member |
|
|
hi all
can some one tells how to check the type of a property in order to return it back in a helper
is this one allowed
helper context UML!Class def: getRangeType() : UML!PrimitiveType =
if self.ownedAttribute ->select(p | p.hasStereotype('range'))->asSequence() ->first().type = 'String'
then
thisModule.stringType
while thismodule.stringtype is a primitive type i created in the transformation rule, but what if I want to refer to the uml metamodel string
like this
if self.ownedAttribute ->select(p | p.hasStereotype('range'))->asSequence() ->first().type = 'String'
then
UML!PrimitiveType.String -----or some thing like this, because I do not want to create in my system,
|
|
|
Powered by
FUDForum. Page generated in 0.03006 seconds