diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CftImportImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CftImportImpl.java | 176 |
1 files changed, 176 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CftImportImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CftImportImpl.java new file mode 100644 index 00000000..35a0ecf1 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CftImportImpl.java | |||
@@ -0,0 +1,176 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.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.CftImport; | ||
8 | |||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
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 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Cft Import</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CftImportImpl#getImportedCft <em>Imported Cft</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class CftImportImpl extends ImportImpl implements CftImport | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getImportedCft() <em>Imported Cft</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getImportedCft() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected CftModel importedCft; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected CftImportImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return ApplicationConfigurationPackage.Literals.CFT_IMPORT; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public CftModel getImportedCft() | ||
71 | { | ||
72 | if (importedCft != null && importedCft.eIsProxy()) | ||
73 | { | ||
74 | InternalEObject oldImportedCft = (InternalEObject)importedCft; | ||
75 | importedCft = (CftModel)eResolveProxy(oldImportedCft); | ||
76 | if (importedCft != oldImportedCft) | ||
77 | { | ||
78 | if (eNotificationRequired()) | ||
79 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.CFT_IMPORT__IMPORTED_CFT, oldImportedCft, importedCft)); | ||
80 | } | ||
81 | } | ||
82 | return importedCft; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public CftModel basicGetImportedCft() | ||
91 | { | ||
92 | return importedCft; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public void setImportedCft(CftModel newImportedCft) | ||
102 | { | ||
103 | CftModel oldImportedCft = importedCft; | ||
104 | importedCft = newImportedCft; | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.CFT_IMPORT__IMPORTED_CFT, oldImportedCft, importedCft)); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | @Override | ||
115 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
116 | { | ||
117 | switch (featureID) | ||
118 | { | ||
119 | case ApplicationConfigurationPackage.CFT_IMPORT__IMPORTED_CFT: | ||
120 | if (resolve) return getImportedCft(); | ||
121 | return basicGetImportedCft(); | ||
122 | } | ||
123 | return super.eGet(featureID, resolve, coreType); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public void eSet(int featureID, Object newValue) | ||
133 | { | ||
134 | switch (featureID) | ||
135 | { | ||
136 | case ApplicationConfigurationPackage.CFT_IMPORT__IMPORTED_CFT: | ||
137 | setImportedCft((CftModel)newValue); | ||
138 | return; | ||
139 | } | ||
140 | super.eSet(featureID, newValue); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void eUnset(int featureID) | ||
150 | { | ||
151 | switch (featureID) | ||
152 | { | ||
153 | case ApplicationConfigurationPackage.CFT_IMPORT__IMPORTED_CFT: | ||
154 | setImportedCft((CftModel)null); | ||
155 | return; | ||
156 | } | ||
157 | super.eUnset(featureID); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public boolean eIsSet(int featureID) | ||
167 | { | ||
168 | switch (featureID) | ||
169 | { | ||
170 | case ApplicationConfigurationPackage.CFT_IMPORT__IMPORTED_CFT: | ||
171 | return importedCft != null; | ||
172 | } | ||
173 | return super.eIsSet(featureID); | ||
174 | } | ||
175 | |||
176 | } //CftImportImpl | ||