diff options
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java')
-rw-r--r-- | plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java | 329 |
1 files changed, 161 insertions, 168 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java index 558b94ecb97..39c94cf9294 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java @@ -4,13 +4,10 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.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.property.xtext.umlProperty.DefaultValueRule; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage; import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; @@ -23,172 +20,168 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value; * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li> + * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.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 UmlPropertyPackage.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, UmlPropertyPackage.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 - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs); - if (newDefault != null) - msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs); - msgs = basicSetDefault(newDefault, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.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 UmlPropertyPackage.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 UmlPropertyPackage.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 UmlPropertyPackage.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 UmlPropertyPackage.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 UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: - return default_ != null; - } - return super.eIsSet(featureID); - } - -} //DefaultValueRuleImpl +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 UmlPropertyPackage.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, UmlPropertyPackage.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 - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs); + if (newDefault != null) + msgs = ((InternalEObject) newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs); + msgs = basicSetDefault(newDefault, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.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 UmlPropertyPackage.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 UmlPropertyPackage.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 UmlPropertyPackage.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 UmlPropertyPackage.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 UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT: + return default_ != null; + } + return super.eIsSet(featureID); + } + +} // DefaultValueRuleImpl |