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

[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('MAX(') or
[ss->excludes(vec.oclAsType(ViewColumn))/]/// error here Cannot find
operation (excludes(ViewColumn)) for the type (Set())
[for (vc: ViewColumn|ss) separator(',')]/// error The 'no null' constraint
is violated
Previous Topic:[Acceleo] Passing external parameter
Next Topic:Check/Xtend: Regular Expression syntax
Goto Forum:

Current Time: Thu Oct 06 14:15:33 GMT 2022

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

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

Back to the top