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
Steve Hovater is currently offline Steve Hovater
Messages: 1
Registered: July 2009
Junior Member
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 Willink
Messages: 4046
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: Sun Sep 21 14:14:25 GMT 2014

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

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