diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddAttributeImpl.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddAttributeImpl.java | 331 |
1 files changed, 170 insertions, 161 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddAttributeImpl.java b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddAttributeImpl.java index 97fac951373..ad2a20e60db 100644 --- a/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddAttributeImpl.java +++ b/plugins/org.eclipse.osee.framework.core.dsl/src-gen/org/eclipse/osee/framework/core/dsl/oseeDsl/impl/AddAttributeImpl.java @@ -4,181 +4,190 @@ package org.eclipse.osee.framework.core.dsl.oseeDsl.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; + import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; + import org.eclipse.emf.ecore.impl.ENotificationImpl; + import org.eclipse.osee.framework.core.dsl.oseeDsl.AddAttribute; import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDslPackage; import org.eclipse.osee.framework.core.dsl.oseeDsl.XAttributeTypeRef; /** - * <!-- begin-user-doc --> An implementation of the model object '<em><b>Add Attribute</b></em>'. <!-- end-user-doc --> + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Add Attribute</b></em>'. + * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> - * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddAttributeImpl#getAttribute <em>Attribute</em>}</li> + * <li>{@link org.eclipse.osee.framework.core.dsl.oseeDsl.impl.AddAttributeImpl#getAttribute <em>Attribute</em>}</li> * </ul> - * </p> * * @generated */ -public class AddAttributeImpl extends AttributeOverrideOptionImpl implements AddAttribute { - /** - * The cached value of the '{@link #getAttribute() <em>Attribute</em>}' containment reference. <!-- begin-user-doc - * --> <!-- end-user-doc --> - * - * @see #getAttribute() - * @generated - * @ordered - */ - protected XAttributeTypeRef attribute; - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - protected AddAttributeImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return OseeDslPackage.Literals.ADD_ATTRIBUTE; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public XAttributeTypeRef getAttribute() { - return attribute; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - public NotificationChain basicSetAttribute(XAttributeTypeRef newAttribute, NotificationChain msgs) { - XAttributeTypeRef oldAttribute = attribute; - attribute = newAttribute; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE, oldAttribute, newAttribute); - if (msgs == null) { - msgs = notification; - } else { - msgs.add(notification); - } - } - return msgs; - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void setAttribute(XAttributeTypeRef newAttribute) { - if (newAttribute != attribute) { - NotificationChain msgs = null; - if (attribute != null) { - msgs = ((InternalEObject) attribute).eInverseRemove(this, - EOPPOSITE_FEATURE_BASE - OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE, null, msgs); - } - if (newAttribute != null) { - msgs = ((InternalEObject) newAttribute).eInverseAdd(this, - EOPPOSITE_FEATURE_BASE - OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE, null, msgs); - } - msgs = basicSetAttribute(newAttribute, msgs); - if (msgs != null) { - msgs.dispatch(); - } - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, - OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE, newAttribute, newAttribute)); - } - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: - return basicSetAttribute(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: - return getAttribute(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: - setAttribute((XAttributeTypeRef) newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: - setAttribute((XAttributeTypeRef) null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: - return attribute != null; - } - return super.eIsSet(featureID); - } +public class AddAttributeImpl extends AttributeOverrideOptionImpl implements AddAttribute +{ + /** + * The cached value of the '{@link #getAttribute() <em>Attribute</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttribute() + * @generated + * @ordered + */ + protected XAttributeTypeRef attribute; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AddAttributeImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OseeDslPackage.Literals.ADD_ATTRIBUTE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XAttributeTypeRef getAttribute() + { + return attribute; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetAttribute(XAttributeTypeRef newAttribute, NotificationChain msgs) + { + XAttributeTypeRef oldAttribute = attribute; + attribute = newAttribute; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE, oldAttribute, newAttribute); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAttribute(XAttributeTypeRef newAttribute) + { + if (newAttribute != attribute) + { + NotificationChain msgs = null; + if (attribute != null) + msgs = ((InternalEObject)attribute).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE, null, msgs); + if (newAttribute != null) + msgs = ((InternalEObject)newAttribute).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE, null, msgs); + msgs = basicSetAttribute(newAttribute, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE, newAttribute, newAttribute)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: + return basicSetAttribute(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: + return getAttribute(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: + setAttribute((XAttributeTypeRef)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: + setAttribute((XAttributeTypeRef)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OseeDslPackage.ADD_ATTRIBUTE__ATTRIBUTE: + return attribute != null; + } + return super.eIsSet(featureID); + } } //AddAttributeImpl |