A KET template starts with the definition of the tag <%@ket %>
.
This tag is helpful to define how the Kermeta file should be generated.
There is eight parameters either mandatory (m) or optional (o):
package (m) - root package of the Kermeta file
require (m) - set of requires that the Kermeta file should contain (separated by whitespaces)
using (m) - set of using that the Kermeta file should contain (separated by whitespaces)
class (m) - main class of the Kermeta file
isAspectClass (o) - true if the main class should be an aspect (reopen an existing class)
operation (o) - name of the main operation
isMethod (o) - true if the main operation is a redefinition of an existing operation
parameters (m) - parameters of the generate(...)
method. Those parameters can be used in KET tags to acquire data from outside the generator
<%@ket package="example" require="my_require other_require" using="package1 package2" isAspectClass="false" class="example" isMethod="false" operation="generate" parameters="" %>