Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » how exclude object from set
how exclude object from set [message #486629] Fri, 18 September 2009 13:11
Omran  is currently offline Omran Friend
Messages: 21
Registered: July 2009
Junior Member
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: Fri Mar 29 06:50:12 GMT 2024

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

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

Back to the top