[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
|
|
|
Powered by
FUDForum. Page generated in 0.03853 seconds