Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java')
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java410
1 files changed, 194 insertions, 216 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java
index a2021800b26..b7b292b27d1 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java
@@ -1,216 +1,194 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.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.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Default Value Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DefaultValueRuleImpl extends MinimalEObjectImpl.Container implements DefaultValueRule
-{
- /**
- * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDefault()
- * @generated
- * @ordered
- */
- protected Value default_;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected DefaultValueRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.DEFAULT_VALUE_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Value getDefault()
- {
- return default_;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDefault(Value newDefault, NotificationChain msgs)
- {
- Value oldDefault = default_;
- default_ = newDefault;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, oldDefault, newDefault);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setDefault(Value newDefault)
- {
- if (newDefault != default_)
- {
- NotificationChain msgs = null;
- if (default_ != null) {
- msgs = ((InternalEObject) default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
- }
- if (newDefault != null) {
- msgs = ((InternalEObject) newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
- }
- msgs = basicSetDefault(newDefault, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, newDefault, newDefault));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return basicSetDefault(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 UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return getDefault();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- setDefault((Value) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- setDefault((Value) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return default_ != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // DefaultValueRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.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.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Default Value Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class DefaultValueRuleImpl extends MinimalEObjectImpl.Container implements DefaultValueRule
+{
+ /**
+ * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefault()
+ * @generated
+ * @ordered
+ */
+ protected Value default_;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DefaultValueRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.DEFAULT_VALUE_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Value getDefault()
+ {
+ return default_;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetDefault(Value newDefault, NotificationChain msgs)
+ {
+ Value oldDefault = default_;
+ default_ = newDefault;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, oldDefault, newDefault);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDefault(Value newDefault)
+ {
+ if (newDefault != default_)
+ {
+ NotificationChain msgs = null;
+ if (default_ != null)
+ msgs = ((InternalEObject)default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
+ if (newDefault != null)
+ msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
+ msgs = basicSetDefault(newDefault, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, newDefault, newDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return basicSetDefault(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 UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return getDefault();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ setDefault((Value)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ setDefault((Value)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return default_ != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //DefaultValueRuleImpl

Back to the top