diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java new file mode 100644 index 00000000..c8932cf6 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/PartialModelEntryImpl.java | |||
@@ -0,0 +1,195 @@ | |||
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.File; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PartialModelEntry; | ||
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>Partial Model 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.PartialModelEntryImpl#getPath <em>Path</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class PartialModelEntryImpl extends MinimalEObjectImpl.Container implements PartialModelEntry | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getPath() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected File path; | ||
43 | |||
44 | /** | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @generated | ||
48 | */ | ||
49 | protected PartialModelEntryImpl() | ||
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.PARTIAL_MODEL_ENTRY; | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | public File getPath() | ||
71 | { | ||
72 | return path; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public NotificationChain basicSetPath(File newPath, NotificationChain msgs) | ||
81 | { | ||
82 | File oldPath = path; | ||
83 | path = newPath; | ||
84 | if (eNotificationRequired()) | ||
85 | { | ||
86 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, oldPath, newPath); | ||
87 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
88 | } | ||
89 | return msgs; | ||
90 | } | ||
91 | |||
92 | /** | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @generated | ||
96 | */ | ||
97 | public void setPath(File newPath) | ||
98 | { | ||
99 | if (newPath != path) | ||
100 | { | ||
101 | NotificationChain msgs = null; | ||
102 | if (path != null) | ||
103 | msgs = ((InternalEObject)path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, null, msgs); | ||
104 | if (newPath != null) | ||
105 | msgs = ((InternalEObject)newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, null, msgs); | ||
106 | msgs = basicSetPath(newPath, msgs); | ||
107 | if (msgs != null) msgs.dispatch(); | ||
108 | } | ||
109 | else if (eNotificationRequired()) | ||
110 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH, newPath, newPath)); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: | ||
124 | return basicSetPath(null, msgs); | ||
125 | } | ||
126 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: | ||
140 | return getPath(); | ||
141 | } | ||
142 | return super.eGet(featureID, resolve, coreType); | ||
143 | } | ||
144 | |||
145 | /** | ||
146 | * <!-- begin-user-doc --> | ||
147 | * <!-- end-user-doc --> | ||
148 | * @generated | ||
149 | */ | ||
150 | @Override | ||
151 | public void eSet(int featureID, Object newValue) | ||
152 | { | ||
153 | switch (featureID) | ||
154 | { | ||
155 | case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: | ||
156 | setPath((File)newValue); | ||
157 | return; | ||
158 | } | ||
159 | super.eSet(featureID, newValue); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public void eUnset(int featureID) | ||
169 | { | ||
170 | switch (featureID) | ||
171 | { | ||
172 | case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: | ||
173 | setPath((File)null); | ||
174 | return; | ||
175 | } | ||
176 | super.eUnset(featureID); | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | @Override | ||
185 | public boolean eIsSet(int featureID) | ||
186 | { | ||
187 | switch (featureID) | ||
188 | { | ||
189 | case ApplicationConfigurationPackage.PARTIAL_MODEL_ENTRY__PATH: | ||
190 | return path != null; | ||
191 | } | ||
192 | return super.eIsSet(featureID); | ||
193 | } | ||
194 | |||
195 | } //PartialModelEntryImpl | ||