diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java | 394 |
1 files changed, 197 insertions, 197 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java index b4c550ac..df03e568 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ObjectiveEntryImpl.java | |||
@@ -1,197 +1,197 @@ | |||
1 | /** | 1 | /** |
2 | * generated by Xtext 2.21.0 | 2 | * generated by Xtext 2.21.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.ObjectiveEntry; | 7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveEntry; |
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveFunction; | 8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectiveFunction; |
9 | 9 | ||
10 | import org.eclipse.emf.common.notify.Notification; | 10 | import org.eclipse.emf.common.notify.Notification; |
11 | import org.eclipse.emf.common.notify.NotificationChain; | 11 | import org.eclipse.emf.common.notify.NotificationChain; |
12 | 12 | ||
13 | import org.eclipse.emf.ecore.EClass; | 13 | import org.eclipse.emf.ecore.EClass; |
14 | import org.eclipse.emf.ecore.InternalEObject; | 14 | import org.eclipse.emf.ecore.InternalEObject; |
15 | 15 | ||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | 17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * <!-- begin-user-doc --> | 20 | * <!-- begin-user-doc --> |
21 | * An implementation of the model object '<em><b>Objective Entry</b></em>'. | 21 | * An implementation of the model object '<em><b>Objective Entry</b></em>'. |
22 | * <!-- end-user-doc --> | 22 | * <!-- end-user-doc --> |
23 | * <p> | 23 | * <p> |
24 | * The following features are implemented: | 24 | * The following features are implemented: |
25 | * </p> | 25 | * </p> |
26 | * <ul> | 26 | * <ul> |
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveEntryImpl#getFunction <em>Function</em>}</li> | 27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ObjectiveEntryImpl#getFunction <em>Function</em>}</li> |
28 | * </ul> | 28 | * </ul> |
29 | * | 29 | * |
30 | * @generated | 30 | * @generated |
31 | */ | 31 | */ |
32 | public class ObjectiveEntryImpl extends MinimalEObjectImpl.Container implements ObjectiveEntry | 32 | public class ObjectiveEntryImpl extends MinimalEObjectImpl.Container implements ObjectiveEntry |
33 | { | 33 | { |
34 | /** | 34 | /** |
35 | * The cached value of the '{@link #getFunction() <em>Function</em>}' containment reference. | 35 | * The cached value of the '{@link #getFunction() <em>Function</em>}' containment reference. |
36 | * <!-- begin-user-doc --> | 36 | * <!-- begin-user-doc --> |
37 | * <!-- end-user-doc --> | 37 | * <!-- end-user-doc --> |
38 | * @see #getFunction() | 38 | * @see #getFunction() |
39 | * @generated | 39 | * @generated |
40 | * @ordered | 40 | * @ordered |
41 | */ | 41 | */ |
42 | protected ObjectiveFunction function; | 42 | protected ObjectiveFunction function; |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * <!-- begin-user-doc --> | 45 | * <!-- begin-user-doc --> |
46 | * <!-- end-user-doc --> | 46 | * <!-- end-user-doc --> |
47 | * @generated | 47 | * @generated |
48 | */ | 48 | */ |
49 | protected ObjectiveEntryImpl() | 49 | protected ObjectiveEntryImpl() |
50 | { | 50 | { |
51 | super(); | 51 | super(); |
52 | } | 52 | } |
53 | 53 | ||
54 | /** | 54 | /** |
55 | * <!-- begin-user-doc --> | 55 | * <!-- begin-user-doc --> |
56 | * <!-- end-user-doc --> | 56 | * <!-- end-user-doc --> |
57 | * @generated | 57 | * @generated |
58 | */ | 58 | */ |
59 | @Override | 59 | @Override |
60 | protected EClass eStaticClass() | 60 | protected EClass eStaticClass() |
61 | { | 61 | { |
62 | return ApplicationConfigurationPackage.Literals.OBJECTIVE_ENTRY; | 62 | return ApplicationConfigurationPackage.Literals.OBJECTIVE_ENTRY; |
63 | } | 63 | } |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * <!-- begin-user-doc --> | 66 | * <!-- begin-user-doc --> |
67 | * <!-- end-user-doc --> | 67 | * <!-- end-user-doc --> |
68 | * @generated | 68 | * @generated |
69 | */ | 69 | */ |
70 | @Override | 70 | @Override |
71 | public ObjectiveFunction getFunction() | 71 | public ObjectiveFunction getFunction() |
72 | { | 72 | { |
73 | return function; | 73 | return function; |
74 | } | 74 | } |
75 | 75 | ||
76 | /** | 76 | /** |
77 | * <!-- begin-user-doc --> | 77 | * <!-- begin-user-doc --> |
78 | * <!-- end-user-doc --> | 78 | * <!-- end-user-doc --> |
79 | * @generated | 79 | * @generated |
80 | */ | 80 | */ |
81 | public NotificationChain basicSetFunction(ObjectiveFunction newFunction, NotificationChain msgs) | 81 | public NotificationChain basicSetFunction(ObjectiveFunction newFunction, NotificationChain msgs) |
82 | { | 82 | { |
83 | ObjectiveFunction oldFunction = function; | 83 | ObjectiveFunction oldFunction = function; |
84 | function = newFunction; | 84 | function = newFunction; |
85 | if (eNotificationRequired()) | 85 | if (eNotificationRequired()) |
86 | { | 86 | { |
87 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, oldFunction, newFunction); | 87 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, oldFunction, newFunction); |
88 | if (msgs == null) msgs = notification; else msgs.add(notification); | 88 | if (msgs == null) msgs = notification; else msgs.add(notification); |
89 | } | 89 | } |
90 | return msgs; | 90 | return msgs; |
91 | } | 91 | } |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * <!-- begin-user-doc --> | 94 | * <!-- begin-user-doc --> |
95 | * <!-- end-user-doc --> | 95 | * <!-- end-user-doc --> |
96 | * @generated | 96 | * @generated |
97 | */ | 97 | */ |
98 | @Override | 98 | @Override |
99 | public void setFunction(ObjectiveFunction newFunction) | 99 | public void setFunction(ObjectiveFunction newFunction) |
100 | { | 100 | { |
101 | if (newFunction != function) | 101 | if (newFunction != function) |
102 | { | 102 | { |
103 | NotificationChain msgs = null; | 103 | NotificationChain msgs = null; |
104 | if (function != null) | 104 | if (function != null) |
105 | msgs = ((InternalEObject)function).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, null, msgs); | 105 | msgs = ((InternalEObject)function).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, null, msgs); |
106 | if (newFunction != null) | 106 | if (newFunction != null) |
107 | msgs = ((InternalEObject)newFunction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, null, msgs); | 107 | msgs = ((InternalEObject)newFunction).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, null, msgs); |
108 | msgs = basicSetFunction(newFunction, msgs); | 108 | msgs = basicSetFunction(newFunction, msgs); |
109 | if (msgs != null) msgs.dispatch(); | 109 | if (msgs != null) msgs.dispatch(); |
110 | } | 110 | } |
111 | else if (eNotificationRequired()) | 111 | else if (eNotificationRequired()) |
112 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, newFunction, newFunction)); | 112 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION, newFunction, newFunction)); |
113 | } | 113 | } |
114 | 114 | ||
115 | /** | 115 | /** |
116 | * <!-- begin-user-doc --> | 116 | * <!-- begin-user-doc --> |
117 | * <!-- end-user-doc --> | 117 | * <!-- end-user-doc --> |
118 | * @generated | 118 | * @generated |
119 | */ | 119 | */ |
120 | @Override | 120 | @Override |
121 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | 121 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) |
122 | { | 122 | { |
123 | switch (featureID) | 123 | switch (featureID) |
124 | { | 124 | { |
125 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: | 125 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: |
126 | return basicSetFunction(null, msgs); | 126 | return basicSetFunction(null, msgs); |
127 | } | 127 | } |
128 | return super.eInverseRemove(otherEnd, featureID, msgs); | 128 | return super.eInverseRemove(otherEnd, featureID, msgs); |
129 | } | 129 | } |
130 | 130 | ||
131 | /** | 131 | /** |
132 | * <!-- begin-user-doc --> | 132 | * <!-- begin-user-doc --> |
133 | * <!-- end-user-doc --> | 133 | * <!-- end-user-doc --> |
134 | * @generated | 134 | * @generated |
135 | */ | 135 | */ |
136 | @Override | 136 | @Override |
137 | public Object eGet(int featureID, boolean resolve, boolean coreType) | 137 | public Object eGet(int featureID, boolean resolve, boolean coreType) |
138 | { | 138 | { |
139 | switch (featureID) | 139 | switch (featureID) |
140 | { | 140 | { |
141 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: | 141 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: |
142 | return getFunction(); | 142 | return getFunction(); |
143 | } | 143 | } |
144 | return super.eGet(featureID, resolve, coreType); | 144 | return super.eGet(featureID, resolve, coreType); |
145 | } | 145 | } |
146 | 146 | ||
147 | /** | 147 | /** |
148 | * <!-- begin-user-doc --> | 148 | * <!-- begin-user-doc --> |
149 | * <!-- end-user-doc --> | 149 | * <!-- end-user-doc --> |
150 | * @generated | 150 | * @generated |
151 | */ | 151 | */ |
152 | @Override | 152 | @Override |
153 | public void eSet(int featureID, Object newValue) | 153 | public void eSet(int featureID, Object newValue) |
154 | { | 154 | { |
155 | switch (featureID) | 155 | switch (featureID) |
156 | { | 156 | { |
157 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: | 157 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: |
158 | setFunction((ObjectiveFunction)newValue); | 158 | setFunction((ObjectiveFunction)newValue); |
159 | return; | 159 | return; |
160 | } | 160 | } |
161 | super.eSet(featureID, newValue); | 161 | super.eSet(featureID, newValue); |
162 | } | 162 | } |
163 | 163 | ||
164 | /** | 164 | /** |
165 | * <!-- begin-user-doc --> | 165 | * <!-- begin-user-doc --> |
166 | * <!-- end-user-doc --> | 166 | * <!-- end-user-doc --> |
167 | * @generated | 167 | * @generated |
168 | */ | 168 | */ |
169 | @Override | 169 | @Override |
170 | public void eUnset(int featureID) | 170 | public void eUnset(int featureID) |
171 | { | 171 | { |
172 | switch (featureID) | 172 | switch (featureID) |
173 | { | 173 | { |
174 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: | 174 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: |
175 | setFunction((ObjectiveFunction)null); | 175 | setFunction((ObjectiveFunction)null); |
176 | return; | 176 | return; |
177 | } | 177 | } |
178 | super.eUnset(featureID); | 178 | super.eUnset(featureID); |
179 | } | 179 | } |
180 | 180 | ||
181 | /** | 181 | /** |
182 | * <!-- begin-user-doc --> | 182 | * <!-- begin-user-doc --> |
183 | * <!-- end-user-doc --> | 183 | * <!-- end-user-doc --> |
184 | * @generated | 184 | * @generated |
185 | */ | 185 | */ |
186 | @Override | 186 | @Override |
187 | public boolean eIsSet(int featureID) | 187 | public boolean eIsSet(int featureID) |
188 | { | 188 | { |
189 | switch (featureID) | 189 | switch (featureID) |
190 | { | 190 | { |
191 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: | 191 | case ApplicationConfigurationPackage.OBJECTIVE_ENTRY__FUNCTION: |
192 | return function != null; | 192 | return function != null; |
193 | } | 193 | } |
194 | return super.eIsSet(featureID); | 194 | return super.eIsSet(featureID); |
195 | } | 195 | } |
196 | 196 | ||
197 | } //ObjectiveEntryImpl | 197 | } //ObjectiveEntryImpl |