Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [TCS] Optional keywords in TCS vs. boolean attributes in metamodel...
[TCS] Optional keywords in TCS vs. boolean attributes in metamodel... [message #602821] Tue, 31 July 2007 14:28
Eclipse User
Originally posted by: escalise.gmail.com

Hello all!

I'm using TCS to generate a model of data to be used by a chain of ATL
transformations.

I have a boolean attribute in a class of the metamodel. In the DSL, this
attribute is associated with an optional keyword.

Metamodel excerpt:

class MyClass {
...
attribute booleanFlag : Boolean ;
...
}

TCS excerpt:

template MyClass
: ...
(booleanFlag ? "optionalKeyword") "otherkword" ":" otherAttr ","
...
;

The problem is in the output model. The attribute booleanFlag does not
appear in the model (it must be "false") when the "optionalKeyword" was
not found in the DSL text. I could expect this behavior if the attribute
is optional, but that's not the case.

Any idea?

Thanks in advance

Eugenio Scalise
Previous Topic:No activator in org.epsilon.ant.eclipse.dt
Next Topic:[TCS] Optional keywords in TCS vs. boolean attributes in metamodel...
Goto Forum:
  


Current Time: Sun Oct 26 07:12:11 GMT 2014

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

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