diff options
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITransitionImpl.java')
-rw-r--r-- | extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITransitionImpl.java | 1194 |
1 files changed, 1194 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITransitionImpl.java b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITransitionImpl.java new file mode 100644 index 00000000000..b18d6827df9 --- /dev/null +++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITransitionImpl.java @@ -0,0 +1,1194 @@ +/** + * 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.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.DependsOnType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ElementsType; +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.ITransition; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ItsLabelType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ItsTargetType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.TargetType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.TransitionsType; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>ITransition</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getModifiedTimeWeak <em>Modified Time Weak</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getStaticReaction <em>Static Reaction</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getItsTarget <em>Its Target</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getCodeUpdateCGTime <em>Code Update CG Time</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getRequiremenTracabilityHandle <em>Requiremen Tracability Handle</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getItsLabel <em>Its Label</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getUmlDependencyID <em>Uml Dependency ID</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getMyState <em>My State</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getObjectCreation <em>Object Creation</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getItsSource <em>Its Source</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getInheritsFromHandle <em>Inherits From Handle</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getDependencies <em>Dependencies</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getStereotypes <em>Stereotypes</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITransitionImpl#getDisplayName <em>Display Name</em>}</li> + * </ul> + * + * @generated + */ +public class ITransitionImpl extends IModelElementImpl implements ITransition { + /** + * The cached value of the '{@link #getModifiedTimeWeak() <em>Modified Time Weak</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getModifiedTimeWeak() + * @generated + * @ordered + */ + protected EList<String> modifiedTimeWeak; + + /** + * The default value of the '{@link #getStaticReaction() <em>Static Reaction</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStaticReaction() + * @generated + * @ordered + */ + protected static final String STATIC_REACTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStaticReaction() <em>Static Reaction</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStaticReaction() + * @generated + * @ordered + */ + protected String staticReaction = STATIC_REACTION_EDEFAULT; + + /** + * The cached value of the '{@link #getItsTarget() <em>Its Target</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getItsTarget() + * @generated + * @ordered + */ + protected ItsTargetType itsTarget; + + /** + * 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 cached value of the '{@link #getCodeUpdateCGTime() <em>Code Update CG Time</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCodeUpdateCGTime() + * @generated + * @ordered + */ + protected EList<String> codeUpdateCGTime; + + /** + * 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 #getItsLabel() <em>Its Label</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getItsLabel() + * @generated + * @ordered + */ + protected ItsLabelType itsLabel; + + /** + * 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 #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 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 cached value of the '{@link #getItsSource() <em>Its Source</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getItsSource() + * @generated + * @ordered + */ + protected ItsTargetType itsSource; + + /** + * The cached value of the '{@link #getInheritsFromHandle() <em>Inherits From Handle</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInheritsFromHandle() + * @generated + * @ordered + */ + protected ITransition inheritsFromHandle; + + /** + * The cached value of the '{@link #getDependencies() <em>Dependencies</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDependencies() + * @generated + * @ordered + */ + protected EList<IDependency> dependencies; + + /** + * The cached value of the '{@link #getStereotypes() <em>Stereotypes</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStereotypes() + * @generated + * @ordered + */ + protected IClassifier stereotypes; + + /** + * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisplayName() + * @generated + * @ordered + */ + protected static final String DISPLAY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisplayName() + * @generated + * @ordered + */ + protected String displayName = DISPLAY_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ITransitionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return UMLRhapsodyPackage.eINSTANCE.getITransition(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getModifiedTimeWeak() { + if (modifiedTimeWeak == null) { + modifiedTimeWeak = new EDataTypeEList<String>(String.class, this, UMLRhapsodyPackage.ITRANSITION__MODIFIED_TIME_WEAK); + } + return modifiedTimeWeak; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStaticReaction() { + return staticReaction; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStaticReaction(String newStaticReaction) { + String oldStaticReaction = staticReaction; + staticReaction = newStaticReaction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__STATIC_REACTION, oldStaticReaction, staticReaction)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ItsTargetType getItsTarget() { + if (itsTarget != null && itsTarget.eIsProxy()) { + InternalEObject oldItsTarget = (InternalEObject)itsTarget; + itsTarget = (ItsTargetType)eResolveProxy(oldItsTarget); + if (itsTarget != oldItsTarget) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITRANSITION__ITS_TARGET, oldItsTarget, itsTarget)); + } + } + return itsTarget; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ItsTargetType basicGetItsTarget() { + return itsTarget; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setItsTarget(ItsTargetType newItsTarget) { + ItsTargetType oldItsTarget = itsTarget; + itsTarget = newItsTarget; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__ITS_TARGET, oldItsTarget, itsTarget)); + } + + /** + * <!-- 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, UMLRhapsodyPackage.ITRANSITION__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getCodeUpdateCGTime() { + if (codeUpdateCGTime == null) { + codeUpdateCGTime = new EDataTypeEList<String>(String.class, this, UMLRhapsodyPackage.ITRANSITION__CODE_UPDATE_CG_TIME); + } + return codeUpdateCGTime; + } + + /** + * <!-- 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.ITRANSITION__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.ITRANSITION__DESCRIPTION, null, null); + if (newDescription.eInternalContainer() == null) { + msgs = newDescription.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITRANSITION__DESCRIPTION, null, msgs); + } + if (msgs != null) msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITRANSITION__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.ITRANSITION__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.ITRANSITION__DESCRIPTION, null, msgs); + if (newDescription != null) + msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITRANSITION__DESCRIPTION, null, msgs); + msgs = basicSetDescription(newDescription, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__DESCRIPTION, newDescription, newDescription)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ItsLabelType getItsLabel() { + if (itsLabel != null && itsLabel.eIsProxy()) { + InternalEObject oldItsLabel = (InternalEObject)itsLabel; + itsLabel = (ItsLabelType)eResolveProxy(oldItsLabel); + if (itsLabel != oldItsLabel) { + InternalEObject newItsLabel = (InternalEObject)itsLabel; + NotificationChain msgs = oldItsLabel.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITRANSITION__ITS_LABEL, null, null); + if (newItsLabel.eInternalContainer() == null) { + msgs = newItsLabel.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITRANSITION__ITS_LABEL, null, msgs); + } + if (msgs != null) msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITRANSITION__ITS_LABEL, oldItsLabel, itsLabel)); + } + } + return itsLabel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ItsLabelType basicGetItsLabel() { + return itsLabel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetItsLabel(ItsLabelType newItsLabel, NotificationChain msgs) { + ItsLabelType oldItsLabel = itsLabel; + itsLabel = newItsLabel; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__ITS_LABEL, oldItsLabel, newItsLabel); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setItsLabel(ItsLabelType newItsLabel) { + if (newItsLabel != itsLabel) { + NotificationChain msgs = null; + if (itsLabel != null) + msgs = ((InternalEObject)itsLabel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITRANSITION__ITS_LABEL, null, msgs); + if (newItsLabel != null) + msgs = ((InternalEObject)newItsLabel).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITRANSITION__ITS_LABEL, null, msgs); + msgs = basicSetItsLabel(newItsLabel, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__ITS_LABEL, newItsLabel, newItsLabel)); + } + + /** + * <!-- 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.ITRANSITION__UML_DEPENDENCY_ID, oldUmlDependencyID, umlDependencyID)); + } + + /** + * <!-- 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, UMLRhapsodyPackage.ITRANSITION__MY_STATE, oldMyState, myState)); + } + + /** + * <!-- 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.ITRANSITION__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, UMLRhapsodyPackage.ITRANSITION__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ItsTargetType getItsSource() { + if (itsSource != null && itsSource.eIsProxy()) { + InternalEObject oldItsSource = (InternalEObject)itsSource; + itsSource = (ItsTargetType)eResolveProxy(oldItsSource); + if (itsSource != oldItsSource) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITRANSITION__ITS_SOURCE, oldItsSource, itsSource)); + } + } + return itsSource; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ItsTargetType basicGetItsSource() { + return itsSource; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setItsSource(ItsTargetType newItsSource) { + ItsTargetType oldItsSource = itsSource; + itsSource = newItsSource; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__ITS_SOURCE, oldItsSource, itsSource)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ITransition getInheritsFromHandle() { + if (inheritsFromHandle != null && inheritsFromHandle.eIsProxy()) { + InternalEObject oldInheritsFromHandle = (InternalEObject)inheritsFromHandle; + inheritsFromHandle = (ITransition)eResolveProxy(oldInheritsFromHandle); + if (inheritsFromHandle != oldInheritsFromHandle) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITRANSITION__INHERITS_FROM_HANDLE, oldInheritsFromHandle, inheritsFromHandle)); + } + } + return inheritsFromHandle; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ITransition basicGetInheritsFromHandle() { + return inheritsFromHandle; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInheritsFromHandle(ITransition newInheritsFromHandle) { + ITransition oldInheritsFromHandle = inheritsFromHandle; + inheritsFromHandle = newInheritsFromHandle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__INHERITS_FROM_HANDLE, oldInheritsFromHandle, inheritsFromHandle)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<IDependency> getDependencies() { + if (dependencies == null) { + dependencies = new EObjectContainmentEList.Resolving<IDependency>(IDependency.class, this, UMLRhapsodyPackage.ITRANSITION__DEPENDENCIES); + } + return dependencies; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IClassifier getStereotypes() { + if (stereotypes != null && stereotypes.eIsProxy()) { + InternalEObject oldStereotypes = (InternalEObject)stereotypes; + stereotypes = (IClassifier)eResolveProxy(oldStereotypes); + if (stereotypes != oldStereotypes) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITRANSITION__STEREOTYPES, oldStereotypes, stereotypes)); + } + } + return stereotypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IClassifier basicGetStereotypes() { + return stereotypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStereotypes(IClassifier newStereotypes) { + IClassifier oldStereotypes = stereotypes; + stereotypes = newStereotypes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__STEREOTYPES, oldStereotypes, stereotypes)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDisplayName() { + return displayName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisplayName(String newDisplayName) { + String oldDisplayName = displayName; + displayName = newDisplayName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITRANSITION__DISPLAY_NAME, oldDisplayName, displayName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UMLRhapsodyPackage.ITRANSITION__DESCRIPTION: + return basicSetDescription(null, msgs); + case UMLRhapsodyPackage.ITRANSITION__ITS_LABEL: + return basicSetItsLabel(null, msgs); + case UMLRhapsodyPackage.ITRANSITION__DEPENDENCIES: + return ((InternalEList<?>)getDependencies()).basicRemove(otherEnd, 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.ITRANSITION__MODIFIED_TIME_WEAK: + return getModifiedTimeWeak(); + case UMLRhapsodyPackage.ITRANSITION__STATIC_REACTION: + return getStaticReaction(); + case UMLRhapsodyPackage.ITRANSITION__ITS_TARGET: + if (resolve) return getItsTarget(); + return basicGetItsTarget(); + case UMLRhapsodyPackage.ITRANSITION__ID: + return getId(); + case UMLRhapsodyPackage.ITRANSITION__CODE_UPDATE_CG_TIME: + return getCodeUpdateCGTime(); + case UMLRhapsodyPackage.ITRANSITION__REQUIREMEN_TRACABILITY_HANDLE: + return getRequiremenTracabilityHandle(); + case UMLRhapsodyPackage.ITRANSITION__DESCRIPTION: + if (resolve) return getDescription(); + return basicGetDescription(); + case UMLRhapsodyPackage.ITRANSITION__ITS_LABEL: + if (resolve) return getItsLabel(); + return basicGetItsLabel(); + case UMLRhapsodyPackage.ITRANSITION__UML_DEPENDENCY_ID: + return getUmlDependencyID(); + case UMLRhapsodyPackage.ITRANSITION__MY_STATE: + return getMyState(); + case UMLRhapsodyPackage.ITRANSITION__OBJECT_CREATION: + return getObjectCreation(); + case UMLRhapsodyPackage.ITRANSITION__NAME: + return getName(); + case UMLRhapsodyPackage.ITRANSITION__ITS_SOURCE: + if (resolve) return getItsSource(); + return basicGetItsSource(); + case UMLRhapsodyPackage.ITRANSITION__INHERITS_FROM_HANDLE: + if (resolve) return getInheritsFromHandle(); + return basicGetInheritsFromHandle(); + case UMLRhapsodyPackage.ITRANSITION__DEPENDENCIES: + return getDependencies(); + case UMLRhapsodyPackage.ITRANSITION__STEREOTYPES: + if (resolve) return getStereotypes(); + return basicGetStereotypes(); + case UMLRhapsodyPackage.ITRANSITION__DISPLAY_NAME: + return getDisplayName(); + } + 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.ITRANSITION__MODIFIED_TIME_WEAK: + getModifiedTimeWeak().clear(); + getModifiedTimeWeak().addAll((Collection<? extends String>)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__STATIC_REACTION: + setStaticReaction((String)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__ITS_TARGET: + setItsTarget((ItsTargetType)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__ID: + setId((String)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__CODE_UPDATE_CG_TIME: + getCodeUpdateCGTime().clear(); + getCodeUpdateCGTime().addAll((Collection<? extends String>)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__REQUIREMEN_TRACABILITY_HANDLE: + setRequiremenTracabilityHandle((String)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__DESCRIPTION: + setDescription((IDescription)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__ITS_LABEL: + setItsLabel((ItsLabelType)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__UML_DEPENDENCY_ID: + setUmlDependencyID((String)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__MY_STATE: + setMyState((String)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__OBJECT_CREATION: + setObjectCreation((String)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__NAME: + setName((String)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__ITS_SOURCE: + setItsSource((ItsTargetType)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__INHERITS_FROM_HANDLE: + setInheritsFromHandle((ITransition)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__DEPENDENCIES: + getDependencies().clear(); + getDependencies().addAll((Collection<? extends IDependency>)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__STEREOTYPES: + setStereotypes((IClassifier)newValue); + return; + case UMLRhapsodyPackage.ITRANSITION__DISPLAY_NAME: + setDisplayName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.ITRANSITION__MODIFIED_TIME_WEAK: + getModifiedTimeWeak().clear(); + return; + case UMLRhapsodyPackage.ITRANSITION__STATIC_REACTION: + setStaticReaction(STATIC_REACTION_EDEFAULT); + return; + case UMLRhapsodyPackage.ITRANSITION__ITS_TARGET: + setItsTarget((ItsTargetType)null); + return; + case UMLRhapsodyPackage.ITRANSITION__ID: + setId(ID_EDEFAULT); + return; + case UMLRhapsodyPackage.ITRANSITION__CODE_UPDATE_CG_TIME: + getCodeUpdateCGTime().clear(); + return; + case UMLRhapsodyPackage.ITRANSITION__REQUIREMEN_TRACABILITY_HANDLE: + setRequiremenTracabilityHandle(REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT); + return; + case UMLRhapsodyPackage.ITRANSITION__DESCRIPTION: + setDescription((IDescription)null); + return; + case UMLRhapsodyPackage.ITRANSITION__ITS_LABEL: + setItsLabel((ItsLabelType)null); + return; + case UMLRhapsodyPackage.ITRANSITION__UML_DEPENDENCY_ID: + setUmlDependencyID(UML_DEPENDENCY_ID_EDEFAULT); + return; + case UMLRhapsodyPackage.ITRANSITION__MY_STATE: + setMyState(MY_STATE_EDEFAULT); + return; + case UMLRhapsodyPackage.ITRANSITION__OBJECT_CREATION: + setObjectCreation(OBJECT_CREATION_EDEFAULT); + return; + case UMLRhapsodyPackage.ITRANSITION__NAME: + setName(NAME_EDEFAULT); + return; + case UMLRhapsodyPackage.ITRANSITION__ITS_SOURCE: + setItsSource((ItsTargetType)null); + return; + case UMLRhapsodyPackage.ITRANSITION__INHERITS_FROM_HANDLE: + setInheritsFromHandle((ITransition)null); + return; + case UMLRhapsodyPackage.ITRANSITION__DEPENDENCIES: + getDependencies().clear(); + return; + case UMLRhapsodyPackage.ITRANSITION__STEREOTYPES: + setStereotypes((IClassifier)null); + return; + case UMLRhapsodyPackage.ITRANSITION__DISPLAY_NAME: + setDisplayName(DISPLAY_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.ITRANSITION__MODIFIED_TIME_WEAK: + return modifiedTimeWeak != null && !modifiedTimeWeak.isEmpty(); + case UMLRhapsodyPackage.ITRANSITION__STATIC_REACTION: + return STATIC_REACTION_EDEFAULT == null ? staticReaction != null : !STATIC_REACTION_EDEFAULT.equals(staticReaction); + case UMLRhapsodyPackage.ITRANSITION__ITS_TARGET: + return itsTarget != null; + case UMLRhapsodyPackage.ITRANSITION__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case UMLRhapsodyPackage.ITRANSITION__CODE_UPDATE_CG_TIME: + return codeUpdateCGTime != null && !codeUpdateCGTime.isEmpty(); + case UMLRhapsodyPackage.ITRANSITION__REQUIREMEN_TRACABILITY_HANDLE: + return REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT == null ? requiremenTracabilityHandle != null : !REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT.equals(requiremenTracabilityHandle); + case UMLRhapsodyPackage.ITRANSITION__DESCRIPTION: + return description != null; + case UMLRhapsodyPackage.ITRANSITION__ITS_LABEL: + return itsLabel != null; + case UMLRhapsodyPackage.ITRANSITION__UML_DEPENDENCY_ID: + return UML_DEPENDENCY_ID_EDEFAULT == null ? umlDependencyID != null : !UML_DEPENDENCY_ID_EDEFAULT.equals(umlDependencyID); + case UMLRhapsodyPackage.ITRANSITION__MY_STATE: + return MY_STATE_EDEFAULT == null ? myState != null : !MY_STATE_EDEFAULT.equals(myState); + case UMLRhapsodyPackage.ITRANSITION__OBJECT_CREATION: + return OBJECT_CREATION_EDEFAULT == null ? objectCreation != null : !OBJECT_CREATION_EDEFAULT.equals(objectCreation); + case UMLRhapsodyPackage.ITRANSITION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case UMLRhapsodyPackage.ITRANSITION__ITS_SOURCE: + return itsSource != null; + case UMLRhapsodyPackage.ITRANSITION__INHERITS_FROM_HANDLE: + return inheritsFromHandle != null; + case UMLRhapsodyPackage.ITRANSITION__DEPENDENCIES: + return dependencies != null && !dependencies.isEmpty(); + case UMLRhapsodyPackage.ITRANSITION__STEREOTYPES: + return stereotypes != null; + case UMLRhapsodyPackage.ITRANSITION__DISPLAY_NAME: + return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == TransitionsType.class) { + switch (derivedFeatureID) { + case UMLRhapsodyPackage.ITRANSITION__MODIFIED_TIME_WEAK: return UMLRhapsodyPackage.TRANSITIONS_TYPE__MODIFIED_TIME_WEAK; + case UMLRhapsodyPackage.ITRANSITION__STATIC_REACTION: return UMLRhapsodyPackage.TRANSITIONS_TYPE__STATIC_REACTION; + case UMLRhapsodyPackage.ITRANSITION__ITS_TARGET: return UMLRhapsodyPackage.TRANSITIONS_TYPE__ITS_TARGET; + case UMLRhapsodyPackage.ITRANSITION__ID: return UMLRhapsodyPackage.TRANSITIONS_TYPE__ID; + case UMLRhapsodyPackage.ITRANSITION__CODE_UPDATE_CG_TIME: return UMLRhapsodyPackage.TRANSITIONS_TYPE__CODE_UPDATE_CG_TIME; + case UMLRhapsodyPackage.ITRANSITION__REQUIREMEN_TRACABILITY_HANDLE: return UMLRhapsodyPackage.TRANSITIONS_TYPE__REQUIREMEN_TRACABILITY_HANDLE; + case UMLRhapsodyPackage.ITRANSITION__DESCRIPTION: return UMLRhapsodyPackage.TRANSITIONS_TYPE__DESCRIPTION; + case UMLRhapsodyPackage.ITRANSITION__ITS_LABEL: return UMLRhapsodyPackage.TRANSITIONS_TYPE__ITS_LABEL; + case UMLRhapsodyPackage.ITRANSITION__UML_DEPENDENCY_ID: return UMLRhapsodyPackage.TRANSITIONS_TYPE__UML_DEPENDENCY_ID; + case UMLRhapsodyPackage.ITRANSITION__MY_STATE: return UMLRhapsodyPackage.TRANSITIONS_TYPE__MY_STATE; + case UMLRhapsodyPackage.ITRANSITION__OBJECT_CREATION: return UMLRhapsodyPackage.TRANSITIONS_TYPE__OBJECT_CREATION; + case UMLRhapsodyPackage.ITRANSITION__NAME: return UMLRhapsodyPackage.TRANSITIONS_TYPE__NAME; + default: return -1; + } + } + if (baseClass == ElementsType.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == DependsOnType.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == TargetType.class) { + switch (derivedFeatureID) { + 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 == TransitionsType.class) { + switch (baseFeatureID) { + case UMLRhapsodyPackage.TRANSITIONS_TYPE__MODIFIED_TIME_WEAK: return UMLRhapsodyPackage.ITRANSITION__MODIFIED_TIME_WEAK; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__STATIC_REACTION: return UMLRhapsodyPackage.ITRANSITION__STATIC_REACTION; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__ITS_TARGET: return UMLRhapsodyPackage.ITRANSITION__ITS_TARGET; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__ID: return UMLRhapsodyPackage.ITRANSITION__ID; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__CODE_UPDATE_CG_TIME: return UMLRhapsodyPackage.ITRANSITION__CODE_UPDATE_CG_TIME; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__REQUIREMEN_TRACABILITY_HANDLE: return UMLRhapsodyPackage.ITRANSITION__REQUIREMEN_TRACABILITY_HANDLE; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__DESCRIPTION: return UMLRhapsodyPackage.ITRANSITION__DESCRIPTION; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__ITS_LABEL: return UMLRhapsodyPackage.ITRANSITION__ITS_LABEL; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__UML_DEPENDENCY_ID: return UMLRhapsodyPackage.ITRANSITION__UML_DEPENDENCY_ID; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__MY_STATE: return UMLRhapsodyPackage.ITRANSITION__MY_STATE; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__OBJECT_CREATION: return UMLRhapsodyPackage.ITRANSITION__OBJECT_CREATION; + case UMLRhapsodyPackage.TRANSITIONS_TYPE__NAME: return UMLRhapsodyPackage.ITRANSITION__NAME; + default: return -1; + } + } + if (baseClass == ElementsType.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == DependsOnType.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == TargetType.class) { + switch (baseFeatureID) { + 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(" (modifiedTimeWeak: "); //$NON-NLS-1$ + result.append(modifiedTimeWeak); + result.append(", staticReaction: "); //$NON-NLS-1$ + result.append(staticReaction); + result.append(", id: "); //$NON-NLS-1$ + result.append(id); + result.append(", codeUpdateCGTime: "); //$NON-NLS-1$ + result.append(codeUpdateCGTime); + result.append(", requiremenTracabilityHandle: "); //$NON-NLS-1$ + result.append(requiremenTracabilityHandle); + result.append(", umlDependencyID: "); //$NON-NLS-1$ + result.append(umlDependencyID); + 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(", displayName: "); //$NON-NLS-1$ + result.append(displayName); + result.append(')'); + return result.toString(); + } + +} //ITransitionImpl |