Community
Participate
Working Groups
Build Identifier: In the Tutorial: http://www.eclipse.org/Xtext/documentation/1_0_0/xtext.html#getting-started-xpand we write an generator. The Xpand templates generates getter and setter for each feature. But the feachure can have a cardinality of "*" see: TypeRef: referenced=[Type] (multi?='*')?; This "*" cardinality is not recognized by there generator template cause it always only generates getter and setter... Reproducible: Always Steps to Reproduce: Just do the tutorial and have a look at the generated code. For example entity Speaker extends Person { sessions : Session* } Should not just be genetared with getter and setter for Sessions cause sessions is a List.
Are there any solutions to this problem?
There are many solutions to implement multi-valued features depending on the usage scenario, e.g. as a list or as an array, mutable or immutable, with add / remove or with a getter for a list etc. Our credo is that users should write their own code generators perfectly fitting their usecases. That's why we focus on creating technology that makes it easy to write code generators instead of delivering "cartridges" matching as many scenarios as possible. I guess with the information learned in the tutorial it should be straight forward for users to implement that feature themselves. We are currently restructuring the infrastructure for the docs and therefore do not fix all documentation bugs individually. We will take this bug into account next time we iterate through the docs. Is that a blocker for you?
Obsolete since we rewrote the tutorial