diff options
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IModuleImpl.java')
-rw-r--r-- | extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IModuleImpl.java | 832 |
1 files changed, 832 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IModuleImpl.java b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IModuleImpl.java new file mode 100644 index 00000000000..33bcb094290 --- /dev/null +++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IModuleImpl.java @@ -0,0 +1,832 @@ +/** + * 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.migration.rhapsody.rhapsodymetamodel.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.AssociationsType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.DependsOnType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ElementsType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.End1_Type; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.End2_Type; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IClass; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IDescription; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IMHyperLink; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IModule; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IPropertyContainer; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IStereotype; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.InverseType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.M_pModelObjectType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>IModule</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getMultiplicity <em>Multiplicity</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getStereotypes <em>Stereotypes</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getHyperLinks <em>Hyper Links</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getOtherClass <em>Other Class</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getImplicitClass <em>Implicit Class</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getProperties <em>Properties</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getRequiremenTracabilityHandle <em>Requiremen Tracability Handle</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IModuleImpl#getPartKind <em>Part Kind</em>}</li> + * </ul> + * + * @generated + */ +public class IModuleImpl extends IInstanceImpl implements IModule { + /** + * The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMultiplicity() + * @generated + * @ordered + */ + protected static final String MULTIPLICITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMultiplicity() + * @generated + * @ordered + */ + protected String multiplicity = MULTIPLICITY_EDEFAULT; + + /** + * The cached value of the '{@link #getStereotypes() <em>Stereotypes</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStereotypes() + * @generated + * @ordered + */ + protected IStereotype stereotypes; + + /** + * 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 cached value of the '{@link #getHyperLinks() <em>Hyper Links</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHyperLinks() + * @generated + * @ordered + */ + protected EList<IMHyperLink> hyperLinks; + + /** + * The cached value of the '{@link #getOtherClass() <em>Other Class</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOtherClass() + * @generated + * @ordered + */ + protected IClass otherClass; + + /** + * The cached value of the '{@link #getImplicitClass() <em>Implicit Class</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImplicitClass() + * @generated + * @ordered + */ + protected IClass implicitClass; + + /** + * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProperties() + * @generated + * @ordered + */ + protected IPropertyContainer properties; + + /** + * 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 default value of the '{@link #getPartKind() <em>Part Kind</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPartKind() + * @generated + * @ordered + */ + protected static final String PART_KIND_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPartKind() <em>Part Kind</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPartKind() + * @generated + * @ordered + */ + protected String partKind = PART_KIND_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected IModuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return UMLRhapsodyPackage.eINSTANCE.getIModule(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMultiplicity() { + return multiplicity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMultiplicity(String newMultiplicity) { + String oldMultiplicity = multiplicity; + multiplicity = newMultiplicity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__MULTIPLICITY, oldMultiplicity, multiplicity)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IStereotype getStereotypes() { + if (stereotypes != null && stereotypes.eIsProxy()) { + InternalEObject oldStereotypes = (InternalEObject)stereotypes; + stereotypes = (IStereotype)eResolveProxy(oldStereotypes); + if (stereotypes != oldStereotypes) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IMODULE__STEREOTYPES, oldStereotypes, stereotypes)); + } + } + return stereotypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IStereotype basicGetStereotypes() { + return stereotypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStereotypes(IStereotype newStereotypes) { + IStereotype oldStereotypes = stereotypes; + stereotypes = newStereotypes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__STEREOTYPES, oldStereotypes, stereotypes)); + } + + /** + * <!-- 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 - UMLRhapsodyPackage.IMODULE__DESCRIPTION, null, null); + if (newDescription.eInternalContainer() == null) { + msgs = newDescription.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__DESCRIPTION, null, msgs); + } + if (msgs != null) msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IMODULE__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, UMLRhapsodyPackage.IMODULE__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 - UMLRhapsodyPackage.IMODULE__DESCRIPTION, null, msgs); + if (newDescription != null) + msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__DESCRIPTION, null, msgs); + msgs = basicSetDescription(newDescription, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__DESCRIPTION, newDescription, newDescription)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<IMHyperLink> getHyperLinks() { + if (hyperLinks == null) { + hyperLinks = new EObjectContainmentEList.Resolving<IMHyperLink>(IMHyperLink.class, this, UMLRhapsodyPackage.IMODULE__HYPER_LINKS); + } + return hyperLinks; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IClass getOtherClass() { + if (otherClass != null && otherClass.eIsProxy()) { + InternalEObject oldOtherClass = (InternalEObject)otherClass; + otherClass = (IClass)eResolveProxy(oldOtherClass); + if (otherClass != oldOtherClass) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IMODULE__OTHER_CLASS, oldOtherClass, otherClass)); + } + } + return otherClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IClass basicGetOtherClass() { + return otherClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOtherClass(IClass newOtherClass) { + IClass oldOtherClass = otherClass; + otherClass = newOtherClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__OTHER_CLASS, oldOtherClass, otherClass)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IClass getImplicitClass() { + if (implicitClass != null && implicitClass.eIsProxy()) { + InternalEObject oldImplicitClass = (InternalEObject)implicitClass; + implicitClass = (IClass)eResolveProxy(oldImplicitClass); + if (implicitClass != oldImplicitClass) { + InternalEObject newImplicitClass = (InternalEObject)implicitClass; + NotificationChain msgs = oldImplicitClass.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS, null, null); + if (newImplicitClass.eInternalContainer() == null) { + msgs = newImplicitClass.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS, null, msgs); + } + if (msgs != null) msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS, oldImplicitClass, implicitClass)); + } + } + return implicitClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IClass basicGetImplicitClass() { + return implicitClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetImplicitClass(IClass newImplicitClass, NotificationChain msgs) { + IClass oldImplicitClass = implicitClass; + implicitClass = newImplicitClass; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS, oldImplicitClass, newImplicitClass); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setImplicitClass(IClass newImplicitClass) { + if (newImplicitClass != implicitClass) { + NotificationChain msgs = null; + if (implicitClass != null) + msgs = ((InternalEObject)implicitClass).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS, null, msgs); + if (newImplicitClass != null) + msgs = ((InternalEObject)newImplicitClass).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS, null, msgs); + msgs = basicSetImplicitClass(newImplicitClass, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS, newImplicitClass, newImplicitClass)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IPropertyContainer getProperties() { + if (properties != null && properties.eIsProxy()) { + InternalEObject oldProperties = (InternalEObject)properties; + properties = (IPropertyContainer)eResolveProxy(oldProperties); + if (properties != oldProperties) { + InternalEObject newProperties = (InternalEObject)properties; + NotificationChain msgs = oldProperties.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__PROPERTIES, null, null); + if (newProperties.eInternalContainer() == null) { + msgs = newProperties.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__PROPERTIES, null, msgs); + } + if (msgs != null) msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IMODULE__PROPERTIES, oldProperties, properties)); + } + } + return properties; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IPropertyContainer basicGetProperties() { + return properties; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetProperties(IPropertyContainer newProperties, NotificationChain msgs) { + IPropertyContainer oldProperties = properties; + properties = newProperties; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__PROPERTIES, oldProperties, newProperties); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setProperties(IPropertyContainer newProperties) { + if (newProperties != properties) { + NotificationChain msgs = null; + if (properties != null) + msgs = ((InternalEObject)properties).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__PROPERTIES, null, msgs); + if (newProperties != null) + msgs = ((InternalEObject)newProperties).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IMODULE__PROPERTIES, null, msgs); + msgs = basicSetProperties(newProperties, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__PROPERTIES, newProperties, newProperties)); + } + + /** + * <!-- 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, UMLRhapsodyPackage.IMODULE__REQUIREMEN_TRACABILITY_HANDLE, oldRequiremenTracabilityHandle, requiremenTracabilityHandle)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPartKind() { + return partKind; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPartKind(String newPartKind) { + String oldPartKind = partKind; + partKind = newPartKind; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IMODULE__PART_KIND, oldPartKind, partKind)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UMLRhapsodyPackage.IMODULE__DESCRIPTION: + return basicSetDescription(null, msgs); + case UMLRhapsodyPackage.IMODULE__HYPER_LINKS: + return ((InternalEList<?>)getHyperLinks()).basicRemove(otherEnd, msgs); + case UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS: + return basicSetImplicitClass(null, msgs); + case UMLRhapsodyPackage.IMODULE__PROPERTIES: + return basicSetProperties(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 UMLRhapsodyPackage.IMODULE__MULTIPLICITY: + return getMultiplicity(); + case UMLRhapsodyPackage.IMODULE__STEREOTYPES: + if (resolve) return getStereotypes(); + return basicGetStereotypes(); + case UMLRhapsodyPackage.IMODULE__DESCRIPTION: + if (resolve) return getDescription(); + return basicGetDescription(); + case UMLRhapsodyPackage.IMODULE__HYPER_LINKS: + return getHyperLinks(); + case UMLRhapsodyPackage.IMODULE__OTHER_CLASS: + if (resolve) return getOtherClass(); + return basicGetOtherClass(); + case UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS: + if (resolve) return getImplicitClass(); + return basicGetImplicitClass(); + case UMLRhapsodyPackage.IMODULE__PROPERTIES: + if (resolve) return getProperties(); + return basicGetProperties(); + case UMLRhapsodyPackage.IMODULE__REQUIREMEN_TRACABILITY_HANDLE: + return getRequiremenTracabilityHandle(); + case UMLRhapsodyPackage.IMODULE__PART_KIND: + return getPartKind(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UMLRhapsodyPackage.IMODULE__MULTIPLICITY: + setMultiplicity((String)newValue); + return; + case UMLRhapsodyPackage.IMODULE__STEREOTYPES: + setStereotypes((IStereotype)newValue); + return; + case UMLRhapsodyPackage.IMODULE__DESCRIPTION: + setDescription((IDescription)newValue); + return; + case UMLRhapsodyPackage.IMODULE__HYPER_LINKS: + getHyperLinks().clear(); + getHyperLinks().addAll((Collection<? extends IMHyperLink>)newValue); + return; + case UMLRhapsodyPackage.IMODULE__OTHER_CLASS: + setOtherClass((IClass)newValue); + return; + case UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS: + setImplicitClass((IClass)newValue); + return; + case UMLRhapsodyPackage.IMODULE__PROPERTIES: + setProperties((IPropertyContainer)newValue); + return; + case UMLRhapsodyPackage.IMODULE__REQUIREMEN_TRACABILITY_HANDLE: + setRequiremenTracabilityHandle((String)newValue); + return; + case UMLRhapsodyPackage.IMODULE__PART_KIND: + setPartKind((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.IMODULE__MULTIPLICITY: + setMultiplicity(MULTIPLICITY_EDEFAULT); + return; + case UMLRhapsodyPackage.IMODULE__STEREOTYPES: + setStereotypes((IStereotype)null); + return; + case UMLRhapsodyPackage.IMODULE__DESCRIPTION: + setDescription((IDescription)null); + return; + case UMLRhapsodyPackage.IMODULE__HYPER_LINKS: + getHyperLinks().clear(); + return; + case UMLRhapsodyPackage.IMODULE__OTHER_CLASS: + setOtherClass((IClass)null); + return; + case UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS: + setImplicitClass((IClass)null); + return; + case UMLRhapsodyPackage.IMODULE__PROPERTIES: + setProperties((IPropertyContainer)null); + return; + case UMLRhapsodyPackage.IMODULE__REQUIREMEN_TRACABILITY_HANDLE: + setRequiremenTracabilityHandle(REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT); + return; + case UMLRhapsodyPackage.IMODULE__PART_KIND: + setPartKind(PART_KIND_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.IMODULE__MULTIPLICITY: + return MULTIPLICITY_EDEFAULT == null ? multiplicity != null : !MULTIPLICITY_EDEFAULT.equals(multiplicity); + case UMLRhapsodyPackage.IMODULE__STEREOTYPES: + return stereotypes != null; + case UMLRhapsodyPackage.IMODULE__DESCRIPTION: + return description != null; + case UMLRhapsodyPackage.IMODULE__HYPER_LINKS: + return hyperLinks != null && !hyperLinks.isEmpty(); + case UMLRhapsodyPackage.IMODULE__OTHER_CLASS: + return otherClass != null; + case UMLRhapsodyPackage.IMODULE__IMPLICIT_CLASS: + return implicitClass != null; + case UMLRhapsodyPackage.IMODULE__PROPERTIES: + return properties != null; + case UMLRhapsodyPackage.IMODULE__REQUIREMEN_TRACABILITY_HANDLE: + return REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT == null ? requiremenTracabilityHandle != null : !REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT.equals(requiremenTracabilityHandle); + case UMLRhapsodyPackage.IMODULE__PART_KIND: + return PART_KIND_EDEFAULT == null ? partKind != null : !PART_KIND_EDEFAULT.equals(partKind); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == InverseType.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == AssociationsType.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == ElementsType.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == DependsOnType.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == M_pModelObjectType.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == End1_Type.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == End2_Type.class) { + switch (derivedFeatureID) { + case UMLRhapsodyPackage.IMODULE__MULTIPLICITY: return UMLRhapsodyPackage.END2_TYPE__MULTIPLICITY; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == InverseType.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == AssociationsType.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == ElementsType.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == DependsOnType.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == M_pModelObjectType.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == End1_Type.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == End2_Type.class) { + switch (baseFeatureID) { + case UMLRhapsodyPackage.END2_TYPE__MULTIPLICITY: return UMLRhapsodyPackage.IMODULE__MULTIPLICITY; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (multiplicity: "); //$NON-NLS-1$ + result.append(multiplicity); + result.append(", requiremenTracabilityHandle: "); //$NON-NLS-1$ + result.append(requiremenTracabilityHandle); + result.append(", partKind: "); //$NON-NLS-1$ + result.append(partKind); + result.append(')'); + return result.toString(); + } + +} //IModuleImpl |