aboutsummaryrefslogtreecommitdiffstats
path: root/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java')
-rw-r--r--Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java
index 6d23dc78..847b6ee1 100644
--- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java
+++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java
@@ -35,6 +35,7 @@ import org.eclipse.emf.ecore.util.InternalEList;
35 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getInputs <em>Inputs</em>}</li> 35 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getInputs <em>Inputs</em>}</li>
36 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs <em>Outputs</em>}</li> 36 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs <em>Outputs</em>}</li>
37 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition <em>Component Definition</em>}</li> 37 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition <em>Component Definition</em>}</li>
38 * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getName <em>Name</em>}</li>
38 * </ul> 39 * </ul>
39 * 40 *
40 * @generated 41 * @generated
@@ -71,6 +72,26 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
71 protected ComponentDefinition componentDefinition; 72 protected ComponentDefinition componentDefinition;
72 73
73 /** 74 /**
75 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
76 * <!-- begin-user-doc -->
77 * <!-- end-user-doc -->
78 * @see #getName()
79 * @generated
80 * @ordered
81 */
82 protected static final String NAME_EDEFAULT = null;
83
84 /**
85 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
86 * <!-- begin-user-doc -->
87 * <!-- end-user-doc -->
88 * @see #getName()
89 * @generated
90 * @ordered
91 */
92 protected String name = NAME_EDEFAULT;
93
94 /**
74 * <!-- begin-user-doc --> 95 * <!-- begin-user-doc -->
75 * <!-- end-user-doc --> 96 * <!-- end-user-doc -->
76 * @generated 97 * @generated
@@ -160,6 +181,29 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
160 * <!-- end-user-doc --> 181 * <!-- end-user-doc -->
161 * @generated 182 * @generated
162 */ 183 */
184 @Override
185 public String getName() {
186 return name;
187 }
188
189 /**
190 * <!-- begin-user-doc -->
191 * <!-- end-user-doc -->
192 * @generated
193 */
194 @Override
195 public void setName(String newName) {
196 String oldName = name;
197 name = newName;
198 if (eNotificationRequired())
199 eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__NAME, oldName, name));
200 }
201
202 /**
203 * <!-- begin-user-doc -->
204 * <!-- end-user-doc -->
205 * @generated
206 */
163 @SuppressWarnings("unchecked") 207 @SuppressWarnings("unchecked")
164 @Override 208 @Override
165 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { 209 public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
@@ -203,6 +247,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
203 case CftPackage.COMPONENT__COMPONENT_DEFINITION: 247 case CftPackage.COMPONENT__COMPONENT_DEFINITION:
204 if (resolve) return getComponentDefinition(); 248 if (resolve) return getComponentDefinition();
205 return basicGetComponentDefinition(); 249 return basicGetComponentDefinition();
250 case CftPackage.COMPONENT__NAME:
251 return getName();
206 } 252 }
207 return super.eGet(featureID, resolve, coreType); 253 return super.eGet(featureID, resolve, coreType);
208 } 254 }
@@ -227,6 +273,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
227 case CftPackage.COMPONENT__COMPONENT_DEFINITION: 273 case CftPackage.COMPONENT__COMPONENT_DEFINITION:
228 setComponentDefinition((ComponentDefinition)newValue); 274 setComponentDefinition((ComponentDefinition)newValue);
229 return; 275 return;
276 case CftPackage.COMPONENT__NAME:
277 setName((String)newValue);
278 return;
230 } 279 }
231 super.eSet(featureID, newValue); 280 super.eSet(featureID, newValue);
232 } 281 }
@@ -248,6 +297,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
248 case CftPackage.COMPONENT__COMPONENT_DEFINITION: 297 case CftPackage.COMPONENT__COMPONENT_DEFINITION:
249 setComponentDefinition((ComponentDefinition)null); 298 setComponentDefinition((ComponentDefinition)null);
250 return; 299 return;
300 case CftPackage.COMPONENT__NAME:
301 setName(NAME_EDEFAULT);
302 return;
251 } 303 }
252 super.eUnset(featureID); 304 super.eUnset(featureID);
253 } 305 }
@@ -266,8 +318,26 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo
266 return outputs != null && !outputs.isEmpty(); 318 return outputs != null && !outputs.isEmpty();
267 case CftPackage.COMPONENT__COMPONENT_DEFINITION: 319 case CftPackage.COMPONENT__COMPONENT_DEFINITION:
268 return componentDefinition != null; 320 return componentDefinition != null;
321 case CftPackage.COMPONENT__NAME:
322 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
269 } 323 }
270 return super.eIsSet(featureID); 324 return super.eIsSet(featureID);
271 } 325 }
272 326
327 /**
328 * <!-- begin-user-doc -->
329 * <!-- end-user-doc -->
330 * @generated
331 */
332 @Override
333 public String toString() {
334 if (eIsProxy()) return super.toString();
335
336 StringBuilder result = new StringBuilder(super.toString());
337 result.append(" (name: ");
338 result.append(name);
339 result.append(')');
340 return result.toString();
341 }
342
273} //ComponentImpl 343} //ComponentImpl