Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 UserFriend
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: Fri Apr 26 16:00:17 GMT 2024

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

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

Back to the top