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