| [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
How can I cast objects after oclIsTypeOf to that type and how can I do a "return;" as in Java?
best regards, Gilbert