[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmt] Re: [MOFScript]couldn't print list element

Hello,

Well, I am not sure what your (s:string) is. Is "s" a reference to some meta 
thing in your metamodel? In that case you have forgotten the 
inModel.string.. Like if you e.g. want to filter a collection to only return 
a uml class you would have to write self.ownedElement->forEach(c: uml.Class) 
where uml is the name of your input model parameter.

/Gøran


"Ye Liu" <yeliu@xxxxxx> wrote in message 
news:1798ee79fedc5f1b938f6d47d731ebd5$1@xxxxxxxxxxxxxxxxxx
> Hello,
>  I don't think this is related to the question about self. doesn't work.
> I suppose maybe the syntax is wrong somewhere,but couldn't find any 
> clue.Do you have any idea?
>
>
> Many thanks!
>
>
> Ye
>