Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » EnumerationLiterals?(UML ParameterDirectionKind problems)
EnumerationLiterals? [message #488170] Fri, 25 September 2009 18:47 Go to next message
Eclipse UserFriend
hi all

Using Rational Software Architect 7.5.3, and observed what seems to be odd behavior.

Consider a UML Parameter. A Parameter may have a direction, specified by a UML Enumeration ParameterDirectionKind.

When I ask a parameter for its direction, the value being returned doesn't think it's an enumeration:

uml::Parameter.allInstances().direction.oclIsKindOf(uml::Enu merationLiteral)
returns false

or stranger still:

uml::Parameter.allInstances().direction.oclIsTypeOf(uml::Par ameterDirectionKind)

returns false. ?

Thoughts appreciated..
cheers
Steve
Re: EnumerationLiterals? [message #488221 is a reply to message #488170] Sat, 26 September 2009 05:10 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Steve

The Bag resulting from your implicit collect is not an EnumerationLIteral.

Regards

Ed Willink


Steve Hovater wrote:
> hi all
>
> Using Rational Software Architect 7.5.3, and observed what seems to be
> odd behavior.
>
> Consider a UML Parameter. A Parameter may have a direction, specified by
> a UML Enumeration ParameterDirectionKind.
>
> When I ask a parameter for its direction, the value being returned
> doesn't think it's an enumeration:
>
> uml::Parameter.allInstances().direction.oclIsKindOf(uml::Enu
> merationLiteral) returns false
>
> or stranger still:
>
> uml::Parameter.allInstances().direction.oclIsTypeOf(uml::Par
> ameterDirectionKind)
>
> returns false. ?
>
> Thoughts appreciated..
> cheers
> Steve
Previous Topic:Exception while parsing OCL file
Next Topic:XML representation of OCL constraints ?
Goto Forum:
  


Current Time: Sat Apr 27 04:25:37 GMT 2024

Powered by FUDForum. Page generated in 0.03582 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top