[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] Re: [QVTO] How to cast and do a return?

Hi Gilbert,

You cast by using oclAsType(Foo) operation from the OCL Standard Library.

You may return from helper operations exactly the same way as in Java:

helper String::toUpperCase() : String {
	return self.toUpper();
}


Regards, /Radek


On Wed, 09 Sep 2009 13:51:21 +0200, Gilbert Mirenque <formatzeh@xxxxxx> wrote:


How can I cast objects after oclIsTypeOf to that type and how can I do a
"return;" as in Java?

best regards,
Gilbert