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