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