[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2t] how exclude object from set

Dear All,
I have small problem, I want to execlude some objects from a set(mv.columns) and then iterate on the result set, I tried to use the code below but there are some errors that I could not solve Any help is highly appreciated
Regards,
Omran


[let ss:Set(ViewColumn)= Set{}] ///error here Invalid Type:Set(ViewColumn)
[for (vec : ViewExpColumn |mv.columns->select(oclIsTypeOf(ViewExpColumn)))]//error here The 'no null' constraint is violated
[if not (vec.expression.trim().toUpper().startsWith('SUM(') or
vec.expression.trim().toUpper().startsWith('AVG(') or
vec.expression.trim().toUpper().startsWith('MIN(')or
vec.expression.trim().toUpper().startsWith('MAX(') or vec.expression.trim().toUpper().startsWith('COUNT('))]
[ss->excludes(vec.oclAsType(ViewColumn))/]/// error here Cannot find operation (excludes(ViewColumn)) for the type (Set())
[/if]
[/for]
[for (vc: ViewColumn|ss) separator(',')]/// error The 'no null' constraint is violated
[vc.name/]
[/for]
[/let]