Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IPortImpl.java')
-rw-r--r--extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IPortImpl.java1243
1 files changed, 1243 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IPortImpl.java b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IPortImpl.java
new file mode 100644
index 00000000000..628d380a85c
--- /dev/null
+++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IPortImpl.java
@@ -0,0 +1,1243 @@
+/**
+ * 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.EObjectResolvingEList;
+
+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.FromLinkType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IClass;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IClassifier;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IDependency;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IDescription;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IPort;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IPropertyContainer;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IRequirement;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ITag;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.M_hTargetType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ToLinkType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>IPort</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getRequiremenTracabilityHandle <em>Requiremen Tracability Handle</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getProperties <em>Properties</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getImplicitClass <em>Implicit Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getMultiplicity <em>Multiplicity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getOtherClass <em>Other Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getBehavioral <em>Behavioral</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getReversed <em>Reversed</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getStereotypes <em>Stereotypes</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getTags <em>Tags</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getObjectCreation <em>Object Creation</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getUmlDependencyID <em>Uml Dependency ID</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getLastID <em>Last ID</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getDependencies <em>Dependencies</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IPortImpl#getAnnotations <em>Annotations</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class IPortImpl extends IInstanceImpl implements IPort {
+ /**
+ * 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 #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 #getProperties() <em>Properties</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProperties()
+ * @generated
+ * @ordered
+ */
+ protected IPropertyContainer properties;
+
+ /**
+ * 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 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 #getOtherClass() <em>Other Class</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOtherClass()
+ * @generated
+ * @ordered
+ */
+ protected IClass otherClass;
+
+ /**
+ * The default value of the '{@link #getBehavioral() <em>Behavioral</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBehavioral()
+ * @generated
+ * @ordered
+ */
+ protected static final String BEHAVIORAL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBehavioral() <em>Behavioral</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBehavioral()
+ * @generated
+ * @ordered
+ */
+ protected String behavioral = BEHAVIORAL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getReversed() <em>Reversed</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getReversed()
+ * @generated
+ * @ordered
+ */
+ protected static final String REVERSED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getReversed() <em>Reversed</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getReversed()
+ * @generated
+ * @ordered
+ */
+ protected String reversed = REVERSED_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getStereotypes() <em>Stereotypes</em>}' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStereotypes()
+ * @generated
+ * @ordered
+ */
+ protected EList<IClassifier> stereotypes;
+
+ /**
+ * The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTags()
+ * @generated
+ * @ordered
+ */
+ protected ITag tags;
+
+ /**
+ * 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 #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 cached value of the '{@link #getDependencies() <em>Dependencies</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDependencies()
+ * @generated
+ * @ordered
+ */
+ protected IDependency dependencies;
+
+ /**
+ * The cached value of the '{@link #getAnnotations() <em>Annotations</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAnnotations()
+ * @generated
+ * @ordered
+ */
+ protected IRequirement annotations;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IPortImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return UMLRhapsodyPackage.eINSTANCE.getIPort();
+ }
+
+ /**
+ * <!-- 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.IPORT__REQUIREMEN_TRACABILITY_HANDLE, oldRequiremenTracabilityHandle, requiremenTracabilityHandle));
+ }
+
+ /**
+ * <!-- 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.IPORT__DESCRIPTION, null, null);
+ if (newDescription.eInternalContainer() == null) {
+ msgs = newDescription.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__DESCRIPTION, null, msgs);
+ }
+ if (msgs != null) msgs.dispatch();
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IPORT__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.IPORT__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.IPORT__DESCRIPTION, null, msgs);
+ if (newDescription != null)
+ msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__DESCRIPTION, null, msgs);
+ msgs = basicSetDescription(newDescription, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__DESCRIPTION, newDescription, newDescription));
+ }
+
+ /**
+ * <!-- 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.IPORT__PROPERTIES, null, null);
+ if (newProperties.eInternalContainer() == null) {
+ msgs = newProperties.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__PROPERTIES, null, msgs);
+ }
+ if (msgs != null) msgs.dispatch();
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IPORT__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.IPORT__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.IPORT__PROPERTIES, null, msgs);
+ if (newProperties != null)
+ msgs = ((InternalEObject)newProperties).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__PROPERTIES, null, msgs);
+ msgs = basicSetProperties(newProperties, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__PROPERTIES, newProperties, newProperties));
+ }
+
+ /**
+ * <!-- 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.IPORT__IMPLICIT_CLASS, null, null);
+ if (newImplicitClass.eInternalContainer() == null) {
+ msgs = newImplicitClass.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS, null, msgs);
+ }
+ if (msgs != null) msgs.dispatch();
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IPORT__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.IPORT__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.IPORT__IMPLICIT_CLASS, null, msgs);
+ if (newImplicitClass != null)
+ msgs = ((InternalEObject)newImplicitClass).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS, null, msgs);
+ msgs = basicSetImplicitClass(newImplicitClass, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS, newImplicitClass, newImplicitClass));
+ }
+
+ /**
+ * <!-- 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.IPORT__MULTIPLICITY, oldMultiplicity, multiplicity));
+ }
+
+ /**
+ * <!-- 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.IPORT__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.IPORT__OTHER_CLASS, oldOtherClass, otherClass));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBehavioral() {
+ return behavioral;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBehavioral(String newBehavioral) {
+ String oldBehavioral = behavioral;
+ behavioral = newBehavioral;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__BEHAVIORAL, oldBehavioral, behavioral));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getReversed() {
+ return reversed;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setReversed(String newReversed) {
+ String oldReversed = reversed;
+ reversed = newReversed;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__REVERSED, oldReversed, reversed));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<IClassifier> getStereotypes() {
+ if (stereotypes == null) {
+ stereotypes = new EObjectResolvingEList<IClassifier>(IClassifier.class, this, UMLRhapsodyPackage.IPORT__STEREOTYPES);
+ }
+ return stereotypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ITag getTags() {
+ if (tags != null && tags.eIsProxy()) {
+ InternalEObject oldTags = (InternalEObject)tags;
+ tags = (ITag)eResolveProxy(oldTags);
+ if (tags != oldTags) {
+ InternalEObject newTags = (InternalEObject)tags;
+ NotificationChain msgs = oldTags.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__TAGS, null, null);
+ if (newTags.eInternalContainer() == null) {
+ msgs = newTags.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__TAGS, null, msgs);
+ }
+ if (msgs != null) msgs.dispatch();
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IPORT__TAGS, oldTags, tags));
+ }
+ }
+ return tags;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ITag basicGetTags() {
+ return tags;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetTags(ITag newTags, NotificationChain msgs) {
+ ITag oldTags = tags;
+ tags = newTags;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__TAGS, oldTags, newTags);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTags(ITag newTags) {
+ if (newTags != tags) {
+ NotificationChain msgs = null;
+ if (tags != null)
+ msgs = ((InternalEObject)tags).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__TAGS, null, msgs);
+ if (newTags != null)
+ msgs = ((InternalEObject)newTags).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__TAGS, null, msgs);
+ msgs = basicSetTags(newTags, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__TAGS, newTags, newTags));
+ }
+
+ /**
+ * <!-- 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, UMLRhapsodyPackage.IPORT__OBJECT_CREATION, oldObjectCreation, objectCreation));
+ }
+
+ /**
+ * <!-- 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, UMLRhapsodyPackage.IPORT__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, UMLRhapsodyPackage.IPORT__LAST_ID, oldLastID, lastID));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IDependency getDependencies() {
+ if (dependencies != null && dependencies.eIsProxy()) {
+ InternalEObject oldDependencies = (InternalEObject)dependencies;
+ dependencies = (IDependency)eResolveProxy(oldDependencies);
+ if (dependencies != oldDependencies) {
+ InternalEObject newDependencies = (InternalEObject)dependencies;
+ NotificationChain msgs = oldDependencies.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__DEPENDENCIES, null, null);
+ if (newDependencies.eInternalContainer() == null) {
+ msgs = newDependencies.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__DEPENDENCIES, null, msgs);
+ }
+ if (msgs != null) msgs.dispatch();
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IPORT__DEPENDENCIES, oldDependencies, dependencies));
+ }
+ }
+ return dependencies;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IDependency basicGetDependencies() {
+ return dependencies;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetDependencies(IDependency newDependencies, NotificationChain msgs) {
+ IDependency oldDependencies = dependencies;
+ dependencies = newDependencies;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__DEPENDENCIES, oldDependencies, newDependencies);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDependencies(IDependency newDependencies) {
+ if (newDependencies != dependencies) {
+ NotificationChain msgs = null;
+ if (dependencies != null)
+ msgs = ((InternalEObject)dependencies).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__DEPENDENCIES, null, msgs);
+ if (newDependencies != null)
+ msgs = ((InternalEObject)newDependencies).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__DEPENDENCIES, null, msgs);
+ msgs = basicSetDependencies(newDependencies, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__DEPENDENCIES, newDependencies, newDependencies));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IRequirement getAnnotations() {
+ if (annotations != null && annotations.eIsProxy()) {
+ InternalEObject oldAnnotations = (InternalEObject)annotations;
+ annotations = (IRequirement)eResolveProxy(oldAnnotations);
+ if (annotations != oldAnnotations) {
+ InternalEObject newAnnotations = (InternalEObject)annotations;
+ NotificationChain msgs = oldAnnotations.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__ANNOTATIONS, null, null);
+ if (newAnnotations.eInternalContainer() == null) {
+ msgs = newAnnotations.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__ANNOTATIONS, null, msgs);
+ }
+ if (msgs != null) msgs.dispatch();
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IPORT__ANNOTATIONS, oldAnnotations, annotations));
+ }
+ }
+ return annotations;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IRequirement basicGetAnnotations() {
+ return annotations;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetAnnotations(IRequirement newAnnotations, NotificationChain msgs) {
+ IRequirement oldAnnotations = annotations;
+ annotations = newAnnotations;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__ANNOTATIONS, oldAnnotations, newAnnotations);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAnnotations(IRequirement newAnnotations) {
+ if (newAnnotations != annotations) {
+ NotificationChain msgs = null;
+ if (annotations != null)
+ msgs = ((InternalEObject)annotations).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__ANNOTATIONS, null, msgs);
+ if (newAnnotations != null)
+ msgs = ((InternalEObject)newAnnotations).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.IPORT__ANNOTATIONS, null, msgs);
+ msgs = basicSetAnnotations(newAnnotations, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IPORT__ANNOTATIONS, newAnnotations, newAnnotations));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case UMLRhapsodyPackage.IPORT__DESCRIPTION:
+ return basicSetDescription(null, msgs);
+ case UMLRhapsodyPackage.IPORT__PROPERTIES:
+ return basicSetProperties(null, msgs);
+ case UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS:
+ return basicSetImplicitClass(null, msgs);
+ case UMLRhapsodyPackage.IPORT__TAGS:
+ return basicSetTags(null, msgs);
+ case UMLRhapsodyPackage.IPORT__DEPENDENCIES:
+ return basicSetDependencies(null, msgs);
+ case UMLRhapsodyPackage.IPORT__ANNOTATIONS:
+ return basicSetAnnotations(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.IPORT__REQUIREMEN_TRACABILITY_HANDLE:
+ return getRequiremenTracabilityHandle();
+ case UMLRhapsodyPackage.IPORT__DESCRIPTION:
+ if (resolve) return getDescription();
+ return basicGetDescription();
+ case UMLRhapsodyPackage.IPORT__PROPERTIES:
+ if (resolve) return getProperties();
+ return basicGetProperties();
+ case UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS:
+ if (resolve) return getImplicitClass();
+ return basicGetImplicitClass();
+ case UMLRhapsodyPackage.IPORT__MULTIPLICITY:
+ return getMultiplicity();
+ case UMLRhapsodyPackage.IPORT__OTHER_CLASS:
+ if (resolve) return getOtherClass();
+ return basicGetOtherClass();
+ case UMLRhapsodyPackage.IPORT__BEHAVIORAL:
+ return getBehavioral();
+ case UMLRhapsodyPackage.IPORT__REVERSED:
+ return getReversed();
+ case UMLRhapsodyPackage.IPORT__STEREOTYPES:
+ return getStereotypes();
+ case UMLRhapsodyPackage.IPORT__TAGS:
+ if (resolve) return getTags();
+ return basicGetTags();
+ case UMLRhapsodyPackage.IPORT__OBJECT_CREATION:
+ return getObjectCreation();
+ case UMLRhapsodyPackage.IPORT__UML_DEPENDENCY_ID:
+ return getUmlDependencyID();
+ case UMLRhapsodyPackage.IPORT__LAST_ID:
+ return getLastID();
+ case UMLRhapsodyPackage.IPORT__DEPENDENCIES:
+ if (resolve) return getDependencies();
+ return basicGetDependencies();
+ case UMLRhapsodyPackage.IPORT__ANNOTATIONS:
+ if (resolve) return getAnnotations();
+ return basicGetAnnotations();
+ }
+ 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.IPORT__REQUIREMEN_TRACABILITY_HANDLE:
+ setRequiremenTracabilityHandle((String)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__DESCRIPTION:
+ setDescription((IDescription)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__PROPERTIES:
+ setProperties((IPropertyContainer)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS:
+ setImplicitClass((IClass)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__MULTIPLICITY:
+ setMultiplicity((String)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__OTHER_CLASS:
+ setOtherClass((IClass)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__BEHAVIORAL:
+ setBehavioral((String)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__REVERSED:
+ setReversed((String)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__STEREOTYPES:
+ getStereotypes().clear();
+ getStereotypes().addAll((Collection<? extends IClassifier>)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__TAGS:
+ setTags((ITag)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__OBJECT_CREATION:
+ setObjectCreation((String)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__UML_DEPENDENCY_ID:
+ setUmlDependencyID((String)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__LAST_ID:
+ setLastID((String)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__DEPENDENCIES:
+ setDependencies((IDependency)newValue);
+ return;
+ case UMLRhapsodyPackage.IPORT__ANNOTATIONS:
+ setAnnotations((IRequirement)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case UMLRhapsodyPackage.IPORT__REQUIREMEN_TRACABILITY_HANDLE:
+ setRequiremenTracabilityHandle(REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.IPORT__DESCRIPTION:
+ setDescription((IDescription)null);
+ return;
+ case UMLRhapsodyPackage.IPORT__PROPERTIES:
+ setProperties((IPropertyContainer)null);
+ return;
+ case UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS:
+ setImplicitClass((IClass)null);
+ return;
+ case UMLRhapsodyPackage.IPORT__MULTIPLICITY:
+ setMultiplicity(MULTIPLICITY_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.IPORT__OTHER_CLASS:
+ setOtherClass((IClass)null);
+ return;
+ case UMLRhapsodyPackage.IPORT__BEHAVIORAL:
+ setBehavioral(BEHAVIORAL_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.IPORT__REVERSED:
+ setReversed(REVERSED_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.IPORT__STEREOTYPES:
+ getStereotypes().clear();
+ return;
+ case UMLRhapsodyPackage.IPORT__TAGS:
+ setTags((ITag)null);
+ return;
+ case UMLRhapsodyPackage.IPORT__OBJECT_CREATION:
+ setObjectCreation(OBJECT_CREATION_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.IPORT__UML_DEPENDENCY_ID:
+ setUmlDependencyID(UML_DEPENDENCY_ID_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.IPORT__LAST_ID:
+ setLastID(LAST_ID_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.IPORT__DEPENDENCIES:
+ setDependencies((IDependency)null);
+ return;
+ case UMLRhapsodyPackage.IPORT__ANNOTATIONS:
+ setAnnotations((IRequirement)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case UMLRhapsodyPackage.IPORT__REQUIREMEN_TRACABILITY_HANDLE:
+ return REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT == null ? requiremenTracabilityHandle != null : !REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT.equals(requiremenTracabilityHandle);
+ case UMLRhapsodyPackage.IPORT__DESCRIPTION:
+ return description != null;
+ case UMLRhapsodyPackage.IPORT__PROPERTIES:
+ return properties != null;
+ case UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS:
+ return implicitClass != null;
+ case UMLRhapsodyPackage.IPORT__MULTIPLICITY:
+ return MULTIPLICITY_EDEFAULT == null ? multiplicity != null : !MULTIPLICITY_EDEFAULT.equals(multiplicity);
+ case UMLRhapsodyPackage.IPORT__OTHER_CLASS:
+ return otherClass != null;
+ case UMLRhapsodyPackage.IPORT__BEHAVIORAL:
+ return BEHAVIORAL_EDEFAULT == null ? behavioral != null : !BEHAVIORAL_EDEFAULT.equals(behavioral);
+ case UMLRhapsodyPackage.IPORT__REVERSED:
+ return REVERSED_EDEFAULT == null ? reversed != null : !REVERSED_EDEFAULT.equals(reversed);
+ case UMLRhapsodyPackage.IPORT__STEREOTYPES:
+ return stereotypes != null && !stereotypes.isEmpty();
+ case UMLRhapsodyPackage.IPORT__TAGS:
+ return tags != null;
+ case UMLRhapsodyPackage.IPORT__OBJECT_CREATION:
+ return OBJECT_CREATION_EDEFAULT == null ? objectCreation != null : !OBJECT_CREATION_EDEFAULT.equals(objectCreation);
+ case UMLRhapsodyPackage.IPORT__UML_DEPENDENCY_ID:
+ return UML_DEPENDENCY_ID_EDEFAULT == null ? umlDependencyID != null : !UML_DEPENDENCY_ID_EDEFAULT.equals(umlDependencyID);
+ case UMLRhapsodyPackage.IPORT__LAST_ID:
+ return LAST_ID_EDEFAULT == null ? lastID != null : !LAST_ID_EDEFAULT.equals(lastID);
+ case UMLRhapsodyPackage.IPORT__DEPENDENCIES:
+ return dependencies != null;
+ case UMLRhapsodyPackage.IPORT__ANNOTATIONS:
+ return annotations != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
+ if (baseClass == M_hTargetType.class) {
+ switch (derivedFeatureID) {
+ case UMLRhapsodyPackage.IPORT__REQUIREMEN_TRACABILITY_HANDLE: return UMLRhapsodyPackage.MHTARGET_TYPE__REQUIREMEN_TRACABILITY_HANDLE;
+ case UMLRhapsodyPackage.IPORT__DESCRIPTION: return UMLRhapsodyPackage.MHTARGET_TYPE__DESCRIPTION;
+ case UMLRhapsodyPackage.IPORT__PROPERTIES: return UMLRhapsodyPackage.MHTARGET_TYPE__PROPERTIES;
+ default: return -1;
+ }
+ }
+ if (baseClass == FromLinkType.class) {
+ switch (derivedFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == ToLinkType.class) {
+ switch (derivedFeatureID) {
+ case UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS: return UMLRhapsodyPackage.TO_LINK_TYPE__IMPLICIT_CLASS;
+ default: return -1;
+ }
+ }
+ if (baseClass == End1_Type.class) {
+ switch (derivedFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == End2_Type.class) {
+ switch (derivedFeatureID) {
+ case UMLRhapsodyPackage.IPORT__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 == M_hTargetType.class) {
+ switch (baseFeatureID) {
+ case UMLRhapsodyPackage.MHTARGET_TYPE__REQUIREMEN_TRACABILITY_HANDLE: return UMLRhapsodyPackage.IPORT__REQUIREMEN_TRACABILITY_HANDLE;
+ case UMLRhapsodyPackage.MHTARGET_TYPE__DESCRIPTION: return UMLRhapsodyPackage.IPORT__DESCRIPTION;
+ case UMLRhapsodyPackage.MHTARGET_TYPE__PROPERTIES: return UMLRhapsodyPackage.IPORT__PROPERTIES;
+ default: return -1;
+ }
+ }
+ if (baseClass == FromLinkType.class) {
+ switch (baseFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == ToLinkType.class) {
+ switch (baseFeatureID) {
+ case UMLRhapsodyPackage.TO_LINK_TYPE__IMPLICIT_CLASS: return UMLRhapsodyPackage.IPORT__IMPLICIT_CLASS;
+ 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.IPORT__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(" (requiremenTracabilityHandle: "); //$NON-NLS-1$
+ result.append(requiremenTracabilityHandle);
+ result.append(", multiplicity: "); //$NON-NLS-1$
+ result.append(multiplicity);
+ result.append(", behavioral: "); //$NON-NLS-1$
+ result.append(behavioral);
+ result.append(", reversed: "); //$NON-NLS-1$
+ result.append(reversed);
+ result.append(", objectCreation: "); //$NON-NLS-1$
+ result.append(objectCreation);
+ result.append(", umlDependencyID: "); //$NON-NLS-1$
+ result.append(umlDependencyID);
+ result.append(", lastID: "); //$NON-NLS-1$
+ result.append(lastID);
+ result.append(')');
+ return result.toString();
+ }
+
+} //IPortImpl

Back to the top