diff options
Diffstat (limited to 'extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/ExtensionAttributeValueImpl.java')
-rw-r--r-- | extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/ExtensionAttributeValueImpl.java | 280 |
1 files changed, 280 insertions, 0 deletions
diff --git a/extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/ExtensionAttributeValueImpl.java b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/ExtensionAttributeValueImpl.java new file mode 100644 index 00000000000..a6f625139e7 --- /dev/null +++ b/extraplugins/bpmn/org.eclipse.papyrus.bpmn/src/org/eclipse/papyrus/bpmn/BPMNProfile/impl/ExtensionAttributeValueImpl.java @@ -0,0 +1,280 @@ +/** + */ +package org.eclipse.papyrus.bpmn.BPMNProfile.impl; + +import org.eclipse.emf.common.notify.Notification; + +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.bpmn.BPMNProfile.BPMNProfilePackage; +import org.eclipse.papyrus.bpmn.BPMNProfile.ExtensionAttributeDefinition; +import org.eclipse.papyrus.bpmn.BPMNProfile.ExtensionAttributeValue; + +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Slot; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Extension Attribute Value</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.bpmn.BPMNProfile.impl.ExtensionAttributeValueImpl#getBase_Slot <em>Base Slot</em>}</li> + * <li>{@link org.eclipse.papyrus.bpmn.BPMNProfile.impl.ExtensionAttributeValueImpl#getValueRef <em>Value Ref</em>}</li> + * <li>{@link org.eclipse.papyrus.bpmn.BPMNProfile.impl.ExtensionAttributeValueImpl#getExtensionAttributeDefinition <em>Extension Attribute Definition</em>}</li> + * </ul> + * + * @generated + */ +public class ExtensionAttributeValueImpl extends MinimalEObjectImpl.Container implements ExtensionAttributeValue { + /** + * The cached value of the '{@link #getBase_Slot() <em>Base Slot</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBase_Slot() + * @generated + * @ordered + */ + protected Slot base_Slot; + + /** + * The cached value of the '{@link #getValueRef() <em>Value Ref</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValueRef() + * @generated + * @ordered + */ + protected Element valueRef; + + /** + * The cached value of the '{@link #getExtensionAttributeDefinition() <em>Extension Attribute Definition</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExtensionAttributeDefinition() + * @generated + * @ordered + */ + protected ExtensionAttributeDefinition extensionAttributeDefinition; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ExtensionAttributeValueImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return BPMNProfilePackage.eINSTANCE.getExtensionAttributeValue(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Slot getBase_Slot() { + if (base_Slot != null && base_Slot.eIsProxy()) { + InternalEObject oldBase_Slot = (InternalEObject)base_Slot; + base_Slot = (Slot)eResolveProxy(oldBase_Slot); + if (base_Slot != oldBase_Slot) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__BASE_SLOT, oldBase_Slot, base_Slot)); + } + } + return base_Slot; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Slot basicGetBase_Slot() { + return base_Slot; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBase_Slot(Slot newBase_Slot) { + Slot oldBase_Slot = base_Slot; + base_Slot = newBase_Slot; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__BASE_SLOT, oldBase_Slot, base_Slot)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Element getValueRef() { + if (valueRef != null && valueRef.eIsProxy()) { + InternalEObject oldValueRef = (InternalEObject)valueRef; + valueRef = (Element)eResolveProxy(oldValueRef); + if (valueRef != oldValueRef) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__VALUE_REF, oldValueRef, valueRef)); + } + } + return valueRef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Element basicGetValueRef() { + return valueRef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValueRef(Element newValueRef) { + Element oldValueRef = valueRef; + valueRef = newValueRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__VALUE_REF, oldValueRef, valueRef)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ExtensionAttributeDefinition getExtensionAttributeDefinition() { + if (extensionAttributeDefinition != null && extensionAttributeDefinition.eIsProxy()) { + InternalEObject oldExtensionAttributeDefinition = (InternalEObject)extensionAttributeDefinition; + extensionAttributeDefinition = (ExtensionAttributeDefinition)eResolveProxy(oldExtensionAttributeDefinition); + if (extensionAttributeDefinition != oldExtensionAttributeDefinition) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__EXTENSION_ATTRIBUTE_DEFINITION, oldExtensionAttributeDefinition, extensionAttributeDefinition)); + } + } + return extensionAttributeDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ExtensionAttributeDefinition basicGetExtensionAttributeDefinition() { + return extensionAttributeDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setExtensionAttributeDefinition(ExtensionAttributeDefinition newExtensionAttributeDefinition) { + ExtensionAttributeDefinition oldExtensionAttributeDefinition = extensionAttributeDefinition; + extensionAttributeDefinition = newExtensionAttributeDefinition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__EXTENSION_ATTRIBUTE_DEFINITION, oldExtensionAttributeDefinition, extensionAttributeDefinition)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__BASE_SLOT: + if (resolve) return getBase_Slot(); + return basicGetBase_Slot(); + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__VALUE_REF: + if (resolve) return getValueRef(); + return basicGetValueRef(); + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__EXTENSION_ATTRIBUTE_DEFINITION: + if (resolve) return getExtensionAttributeDefinition(); + return basicGetExtensionAttributeDefinition(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__BASE_SLOT: + setBase_Slot((Slot)newValue); + return; + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__VALUE_REF: + setValueRef((Element)newValue); + return; + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__EXTENSION_ATTRIBUTE_DEFINITION: + setExtensionAttributeDefinition((ExtensionAttributeDefinition)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__BASE_SLOT: + setBase_Slot((Slot)null); + return; + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__VALUE_REF: + setValueRef((Element)null); + return; + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__EXTENSION_ATTRIBUTE_DEFINITION: + setExtensionAttributeDefinition((ExtensionAttributeDefinition)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__BASE_SLOT: + return base_Slot != null; + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__VALUE_REF: + return valueRef != null; + case BPMNProfilePackage.EXTENSION_ATTRIBUTE_VALUE__EXTENSION_ATTRIBUTE_DEFINITION: + return extensionAttributeDefinition != null; + } + return super.eIsSet(featureID); + } + +} //ExtensionAttributeValueImpl |