diff options
author | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2018-01-13 19:33:26 +0100 |
---|---|---|
committer | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2018-01-13 19:33:26 +0100 |
commit | 7e50434905cbb7f5d03636033b698e17a9075e9d (patch) | |
tree | 10e0968c20ac55dae4f5dc6077f39cf9947e3cb9 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java | |
parent | Test and measurement runners (diff) | |
download | VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.gz VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.zst VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.zip |
Initial commit of the configuration language and application
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java | 207 |
1 files changed, 207 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java new file mode 100644 index 00000000..fcb0790a --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java | |||
@@ -0,0 +1,207 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; | ||
9 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
21 | |||
22 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
23 | import org.eclipse.emf.ecore.util.InternalEList; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>Configuration Script</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl#getImports <em>Imports</em>}</li> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl#getCommands <em>Commands</em>}</li> | ||
35 | * </ul> | ||
36 | * | ||
37 | * @generated | ||
38 | */ | ||
39 | public class ConfigurationScriptImpl extends MinimalEObjectImpl.Container implements ConfigurationScript | ||
40 | { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getImports() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected EList<Import> imports; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getCommands() <em>Commands</em>}' containment reference list. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getCommands() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected EList<Command> commands; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | protected ConfigurationScriptImpl() | ||
67 | { | ||
68 | super(); | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | protected EClass eStaticClass() | ||
78 | { | ||
79 | return ApplicationConfigurationPackage.Literals.CONFIGURATION_SCRIPT; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | public EList<Import> getImports() | ||
88 | { | ||
89 | if (imports == null) | ||
90 | { | ||
91 | imports = new EObjectContainmentEList<Import>(Import.class, this, ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS); | ||
92 | } | ||
93 | return imports; | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | public EList<Command> getCommands() | ||
102 | { | ||
103 | if (commands == null) | ||
104 | { | ||
105 | commands = new EObjectContainmentEList<Command>(Command.class, this, ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS); | ||
106 | } | ||
107 | return commands; | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
117 | { | ||
118 | switch (featureID) | ||
119 | { | ||
120 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
121 | return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs); | ||
122 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
123 | return ((InternalEList<?>)getCommands()).basicRemove(otherEnd, msgs); | ||
124 | } | ||
125 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
135 | { | ||
136 | switch (featureID) | ||
137 | { | ||
138 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
139 | return getImports(); | ||
140 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
141 | return getCommands(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @SuppressWarnings("unchecked") | ||
152 | @Override | ||
153 | public void eSet(int featureID, Object newValue) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
158 | getImports().clear(); | ||
159 | getImports().addAll((Collection<? extends Import>)newValue); | ||
160 | return; | ||
161 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
162 | getCommands().clear(); | ||
163 | getCommands().addAll((Collection<? extends Command>)newValue); | ||
164 | return; | ||
165 | } | ||
166 | super.eSet(featureID, newValue); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void eUnset(int featureID) | ||
176 | { | ||
177 | switch (featureID) | ||
178 | { | ||
179 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
180 | getImports().clear(); | ||
181 | return; | ||
182 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
183 | getCommands().clear(); | ||
184 | return; | ||
185 | } | ||
186 | super.eUnset(featureID); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public boolean eIsSet(int featureID) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
200 | return imports != null && !imports.isEmpty(); | ||
201 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
202 | return commands != null && !commands.isEmpty(); | ||
203 | } | ||
204 | return super.eIsSet(featureID); | ||
205 | } | ||
206 | |||
207 | } //ConfigurationScriptImpl | ||