Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e58bc0063eb044531b9c2c1af31daa13f4122fc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
«REM»
/*******************************************************************************
 * Copyright (c) 2010 protos software gmbh (http://www.protos.de).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * CONTRIBUTORS:
 * 		Thomas Schuetz and Henrik Rentz-Reichert (initial contribution)
 * 
 *******************************************************************************/
«ENDREM»
«IMPORT room»;
«IMPORT etricegen»;

«EXTENSION extensions::Extensions»
«EXTENSION org::eclipse::xtend::util::stdlib::io»

«DEFINE dataClass FOR Root»

«FOREACH this.usedDataClasses AS dc»

«("generating "+getPath(dc)+dc.name+".java").info()»

«FILE getPath(dc)+dc.name+".java"»
package «getPackage(dc)»;

«LET this.getReferencedModels(dc) AS models»
«FOREACH models AS model»import «model.name».*;
«ENDFOREACH»
«ENDLET»

«IF dc.imports.size>0»
// user imports
«FOREACH dc.imports AS imp»import «imp.importedNamespace».*;
«ENDFOREACH»«ENDIF»

public class «dc.name»«IF dc.base!=null» extends «dc.base.name»«ENDIF» {
	«EXPAND ProcedureHelpers::Attributes FOR dc.attributes»
	«EXPAND ProcedureHelpers::AttributeSettersGetters FOR dc.attributes»
	«EXPAND ProcedureHelpers::Operations FOR dc.operations»
};
«ENDFILE»
«ENDFOREACH»
«ENDDEFINE»


Back to the top