| /** |
| * Copyright (c) 2016 CEA LIST and others. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * CEA LIST - Initial API and implementation |
| * |
| */ |
| package org.eclipse.papyrus.interoperability.rpy.rpymetamodel.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.papyrus.interoperability.rpy.rpymetamodel.DefaultSubsystemType; |
| import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IDescription; |
| import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.OwnerHandleType; |
| import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.TheMainDiagramType; |
| import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.UMLRpyPackage; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>The Main Diagram Type</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getId <em>Id</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getLastModifiedTime <em>Last Modified Time</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getRequiremenTracabilityHandle <em>Requiremen Tracability Handle</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getDefaultSubsystem <em>Default Subsystem</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getDescription <em>Description</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getUmlDependencyID <em>Uml Dependency ID</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getLastID <em>Last ID</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getMyState <em>My State</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getOwnerHandle <em>Owner Handle</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getObjectCreation <em>Object Creation</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getName <em>Name</em>}</li> |
| * <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.TheMainDiagramTypeImpl#getCmheader <em>Cmheader</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public abstract class TheMainDiagramTypeImpl extends M_pModelObjectTypeImpl implements TheMainDiagramType { |
| /** |
| * The default value of the '{@link #getId() <em>Id</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getId() |
| * @generated |
| * @ordered |
| */ |
| protected static final String ID_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getId() <em>Id</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getId() |
| * @generated |
| * @ordered |
| */ |
| protected String id = ID_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getLastModifiedTime() <em>Last Modified Time</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getLastModifiedTime() |
| * @generated |
| * @ordered |
| */ |
| protected static final String LAST_MODIFIED_TIME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getLastModifiedTime() <em>Last Modified Time</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getLastModifiedTime() |
| * @generated |
| * @ordered |
| */ |
| protected String lastModifiedTime = LAST_MODIFIED_TIME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getRequiremenTracabilityHandle() <em>Requiremen Tracability Handle</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRequiremenTracabilityHandle() |
| * @generated |
| * @ordered |
| */ |
| protected static final String REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getRequiremenTracabilityHandle() <em>Requiremen Tracability Handle</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRequiremenTracabilityHandle() |
| * @generated |
| * @ordered |
| */ |
| protected String requiremenTracabilityHandle = REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getDefaultSubsystem() <em>Default Subsystem</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultSubsystem() |
| * @generated |
| * @ordered |
| */ |
| protected DefaultSubsystemType defaultSubsystem; |
| |
| /** |
| * The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDescription() |
| * @generated |
| * @ordered |
| */ |
| protected IDescription description; |
| |
| /** |
| * The default value of the '{@link #getUmlDependencyID() <em>Uml Dependency ID</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getUmlDependencyID() |
| * @generated |
| * @ordered |
| */ |
| protected static final String UML_DEPENDENCY_ID_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getUmlDependencyID() <em>Uml Dependency ID</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getUmlDependencyID() |
| * @generated |
| * @ordered |
| */ |
| protected String umlDependencyID = UML_DEPENDENCY_ID_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getLastID() <em>Last ID</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getLastID() |
| * @generated |
| * @ordered |
| */ |
| protected static final String LAST_ID_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getLastID() <em>Last ID</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getLastID() |
| * @generated |
| * @ordered |
| */ |
| protected String lastID = LAST_ID_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMyState() <em>My State</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMyState() |
| * @generated |
| * @ordered |
| */ |
| protected static final String MY_STATE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getMyState() <em>My State</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMyState() |
| * @generated |
| * @ordered |
| */ |
| protected String myState = MY_STATE_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getOwnerHandle() <em>Owner Handle</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getOwnerHandle() |
| * @generated |
| * @ordered |
| */ |
| protected OwnerHandleType ownerHandle; |
| |
| /** |
| * The default value of the '{@link #getObjectCreation() <em>Object Creation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getObjectCreation() |
| * @generated |
| * @ordered |
| */ |
| protected static final String OBJECT_CREATION_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getObjectCreation() <em>Object Creation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getObjectCreation() |
| * @generated |
| * @ordered |
| */ |
| protected String objectCreation = OBJECT_CREATION_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getName() <em>Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String NAME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getName() <em>Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getName() |
| * @generated |
| * @ordered |
| */ |
| protected String name = NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getCmheader() <em>Cmheader</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCmheader() |
| * @generated |
| * @ordered |
| */ |
| protected static final String CMHEADER_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getCmheader() <em>Cmheader</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCmheader() |
| * @generated |
| * @ordered |
| */ |
| protected String cmheader = CMHEADER_EDEFAULT; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected TheMainDiagramTypeImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return UMLRpyPackage.eINSTANCE.getTheMainDiagramType(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getId() { |
| return id; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setId(String newId) { |
| String oldId = id; |
| id = newId; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__ID, oldId, id)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getLastModifiedTime() { |
| return lastModifiedTime; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setLastModifiedTime(String newLastModifiedTime) { |
| String oldLastModifiedTime = lastModifiedTime; |
| lastModifiedTime = newLastModifiedTime; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_MODIFIED_TIME, oldLastModifiedTime, lastModifiedTime)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getRequiremenTracabilityHandle() { |
| return requiremenTracabilityHandle; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRequiremenTracabilityHandle(String newRequiremenTracabilityHandle) { |
| String oldRequiremenTracabilityHandle = requiremenTracabilityHandle; |
| requiremenTracabilityHandle = newRequiremenTracabilityHandle; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__REQUIREMEN_TRACABILITY_HANDLE, oldRequiremenTracabilityHandle, requiremenTracabilityHandle)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DefaultSubsystemType getDefaultSubsystem() { |
| if (defaultSubsystem != null && defaultSubsystem.eIsProxy()) { |
| InternalEObject oldDefaultSubsystem = (InternalEObject)defaultSubsystem; |
| defaultSubsystem = (DefaultSubsystemType)eResolveProxy(oldDefaultSubsystem); |
| if (defaultSubsystem != oldDefaultSubsystem) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DEFAULT_SUBSYSTEM, oldDefaultSubsystem, defaultSubsystem)); |
| } |
| } |
| return defaultSubsystem; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DefaultSubsystemType basicGetDefaultSubsystem() { |
| return defaultSubsystem; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDefaultSubsystem(DefaultSubsystemType newDefaultSubsystem) { |
| DefaultSubsystemType oldDefaultSubsystem = defaultSubsystem; |
| defaultSubsystem = newDefaultSubsystem; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DEFAULT_SUBSYSTEM, oldDefaultSubsystem, defaultSubsystem)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public IDescription getDescription() { |
| if (description != null && description.eIsProxy()) { |
| InternalEObject oldDescription = (InternalEObject)description; |
| description = (IDescription)eResolveProxy(oldDescription); |
| if (description != oldDescription) { |
| InternalEObject newDescription = (InternalEObject)description; |
| NotificationChain msgs = oldDescription.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION, null, null); |
| if (newDescription.eInternalContainer() == null) { |
| msgs = newDescription.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION, null, msgs); |
| } |
| if (msgs != null) msgs.dispatch(); |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION, oldDescription, description)); |
| } |
| } |
| return description; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public IDescription basicGetDescription() { |
| return description; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetDescription(IDescription newDescription, NotificationChain msgs) { |
| IDescription oldDescription = description; |
| description = newDescription; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION, oldDescription, newDescription); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDescription(IDescription newDescription) { |
| if (newDescription != description) { |
| NotificationChain msgs = null; |
| if (description != null) |
| msgs = ((InternalEObject)description).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION, null, msgs); |
| if (newDescription != null) |
| msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION, null, msgs); |
| msgs = basicSetDescription(newDescription, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION, newDescription, newDescription)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getUmlDependencyID() { |
| return umlDependencyID; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setUmlDependencyID(String newUmlDependencyID) { |
| String oldUmlDependencyID = umlDependencyID; |
| umlDependencyID = newUmlDependencyID; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__UML_DEPENDENCY_ID, oldUmlDependencyID, umlDependencyID)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getLastID() { |
| return lastID; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setLastID(String newLastID) { |
| String oldLastID = lastID; |
| lastID = newLastID; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_ID, oldLastID, lastID)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getMyState() { |
| return myState; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMyState(String newMyState) { |
| String oldMyState = myState; |
| myState = newMyState; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__MY_STATE, oldMyState, myState)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OwnerHandleType getOwnerHandle() { |
| if (ownerHandle != null && ownerHandle.eIsProxy()) { |
| InternalEObject oldOwnerHandle = (InternalEObject)ownerHandle; |
| ownerHandle = (OwnerHandleType)eResolveProxy(oldOwnerHandle); |
| if (ownerHandle != oldOwnerHandle) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OWNER_HANDLE, oldOwnerHandle, ownerHandle)); |
| } |
| } |
| return ownerHandle; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public OwnerHandleType basicGetOwnerHandle() { |
| return ownerHandle; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setOwnerHandle(OwnerHandleType newOwnerHandle) { |
| OwnerHandleType oldOwnerHandle = ownerHandle; |
| ownerHandle = newOwnerHandle; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OWNER_HANDLE, oldOwnerHandle, ownerHandle)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getObjectCreation() { |
| return objectCreation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setObjectCreation(String newObjectCreation) { |
| String oldObjectCreation = objectCreation; |
| objectCreation = newObjectCreation; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OBJECT_CREATION, oldObjectCreation, objectCreation)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getName() { |
| return name; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setName(String newName) { |
| String oldName = name; |
| name = newName; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__NAME, oldName, name)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getCmheader() { |
| return cmheader; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setCmheader(String newCmheader) { |
| String oldCmheader = cmheader; |
| cmheader = newCmheader; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__CMHEADER, oldCmheader, cmheader)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION: |
| return basicSetDescription(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 UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__ID: |
| return getId(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_MODIFIED_TIME: |
| return getLastModifiedTime(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__REQUIREMEN_TRACABILITY_HANDLE: |
| return getRequiremenTracabilityHandle(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DEFAULT_SUBSYSTEM: |
| if (resolve) return getDefaultSubsystem(); |
| return basicGetDefaultSubsystem(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION: |
| if (resolve) return getDescription(); |
| return basicGetDescription(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__UML_DEPENDENCY_ID: |
| return getUmlDependencyID(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_ID: |
| return getLastID(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__MY_STATE: |
| return getMyState(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OWNER_HANDLE: |
| if (resolve) return getOwnerHandle(); |
| return basicGetOwnerHandle(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OBJECT_CREATION: |
| return getObjectCreation(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__NAME: |
| return getName(); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__CMHEADER: |
| return getCmheader(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__ID: |
| setId((String)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_MODIFIED_TIME: |
| setLastModifiedTime((String)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__REQUIREMEN_TRACABILITY_HANDLE: |
| setRequiremenTracabilityHandle((String)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DEFAULT_SUBSYSTEM: |
| setDefaultSubsystem((DefaultSubsystemType)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION: |
| setDescription((IDescription)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__UML_DEPENDENCY_ID: |
| setUmlDependencyID((String)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_ID: |
| setLastID((String)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__MY_STATE: |
| setMyState((String)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OWNER_HANDLE: |
| setOwnerHandle((OwnerHandleType)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OBJECT_CREATION: |
| setObjectCreation((String)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__NAME: |
| setName((String)newValue); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__CMHEADER: |
| setCmheader((String)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__ID: |
| setId(ID_EDEFAULT); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_MODIFIED_TIME: |
| setLastModifiedTime(LAST_MODIFIED_TIME_EDEFAULT); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__REQUIREMEN_TRACABILITY_HANDLE: |
| setRequiremenTracabilityHandle(REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DEFAULT_SUBSYSTEM: |
| setDefaultSubsystem((DefaultSubsystemType)null); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION: |
| setDescription((IDescription)null); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__UML_DEPENDENCY_ID: |
| setUmlDependencyID(UML_DEPENDENCY_ID_EDEFAULT); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_ID: |
| setLastID(LAST_ID_EDEFAULT); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__MY_STATE: |
| setMyState(MY_STATE_EDEFAULT); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OWNER_HANDLE: |
| setOwnerHandle((OwnerHandleType)null); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OBJECT_CREATION: |
| setObjectCreation(OBJECT_CREATION_EDEFAULT); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__NAME: |
| setName(NAME_EDEFAULT); |
| return; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__CMHEADER: |
| setCmheader(CMHEADER_EDEFAULT); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__ID: |
| return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_MODIFIED_TIME: |
| return LAST_MODIFIED_TIME_EDEFAULT == null ? lastModifiedTime != null : !LAST_MODIFIED_TIME_EDEFAULT.equals(lastModifiedTime); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__REQUIREMEN_TRACABILITY_HANDLE: |
| return REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT == null ? requiremenTracabilityHandle != null : !REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT.equals(requiremenTracabilityHandle); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DEFAULT_SUBSYSTEM: |
| return defaultSubsystem != null; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__DESCRIPTION: |
| return description != null; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__UML_DEPENDENCY_ID: |
| return UML_DEPENDENCY_ID_EDEFAULT == null ? umlDependencyID != null : !UML_DEPENDENCY_ID_EDEFAULT.equals(umlDependencyID); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__LAST_ID: |
| return LAST_ID_EDEFAULT == null ? lastID != null : !LAST_ID_EDEFAULT.equals(lastID); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__MY_STATE: |
| return MY_STATE_EDEFAULT == null ? myState != null : !MY_STATE_EDEFAULT.equals(myState); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OWNER_HANDLE: |
| return ownerHandle != null; |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__OBJECT_CREATION: |
| return OBJECT_CREATION_EDEFAULT == null ? objectCreation != null : !OBJECT_CREATION_EDEFAULT.equals(objectCreation); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__NAME: |
| return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); |
| case UMLRpyPackage.THE_MAIN_DIAGRAM_TYPE__CMHEADER: |
| return CMHEADER_EDEFAULT == null ? cmheader != null : !CMHEADER_EDEFAULT.equals(cmheader); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String toString() { |
| if (eIsProxy()) return super.toString(); |
| |
| StringBuffer result = new StringBuffer(super.toString()); |
| result.append(" (id: "); //$NON-NLS-1$ |
| result.append(id); |
| result.append(", lastModifiedTime: "); //$NON-NLS-1$ |
| result.append(lastModifiedTime); |
| result.append(", requiremenTracabilityHandle: "); //$NON-NLS-1$ |
| result.append(requiremenTracabilityHandle); |
| result.append(", umlDependencyID: "); //$NON-NLS-1$ |
| result.append(umlDependencyID); |
| result.append(", lastID: "); //$NON-NLS-1$ |
| result.append(lastID); |
| result.append(", myState: "); //$NON-NLS-1$ |
| result.append(myState); |
| result.append(", objectCreation: "); //$NON-NLS-1$ |
| result.append(objectCreation); |
| result.append(", name: "); //$NON-NLS-1$ |
| result.append(name); |
| result.append(", cmheader: "); //$NON-NLS-1$ |
| result.append(cmheader); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //TheMainDiagramTypeImpl |