Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » how exclude object from set
how exclude object from set [message #486629] Fri, 18 September 2009 09:11
Eclipse UserFriend
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]
Previous Topic:[Acceleo] Passing external parameter
Next Topic:Check/Xtend: Regular Expression syntax
Goto Forum:
  


Current Time: Thu Jul 10 06:55:36 EDT 2025

Powered by FUDForum. Page generated in 0.02876 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top