diff options
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IHistoryConnectorImpl.java')
-rw-r--r-- | extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IHistoryConnectorImpl.java | 558 |
1 files changed, 558 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IHistoryConnectorImpl.java b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IHistoryConnectorImpl.java new file mode 100644 index 00000000000..f912a8fad7c --- /dev/null +++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/IHistoryConnectorImpl.java @@ -0,0 +1,558 @@ +/** + * 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 org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IHistoryConnector; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IState; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>IHistory Connector</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IHistoryConnectorImpl#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IHistoryConnectorImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IHistoryConnectorImpl#getParent <em>Parent</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IHistoryConnectorImpl#getConnectorType <em>Connector Type</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IHistoryConnectorImpl#getMyState <em>My State</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IHistoryConnectorImpl#getModifiedTimeWeak <em>Modified Time Weak</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IHistoryConnectorImpl#getObjectCreation <em>Object Creation</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.IHistoryConnectorImpl#getUmlDependencyID <em>Uml Dependency ID</em>}</li> + * </ul> + * + * @generated + */ +public class IHistoryConnectorImpl extends ItsTargetTypeImpl implements IHistoryConnector { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #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 #getParent() <em>Parent</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getParent() + * @generated + * @ordered + */ + protected IState parent; + + /** + * The default value of the '{@link #getConnectorType() <em>Connector Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConnectorType() + * @generated + * @ordered + */ + protected static final String CONNECTOR_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConnectorType() <em>Connector Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConnectorType() + * @generated + * @ordered + */ + protected String connectorType = CONNECTOR_TYPE_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 #getModifiedTimeWeak() <em>Modified Time Weak</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getModifiedTimeWeak() + * @generated + * @ordered + */ + protected static final String MODIFIED_TIME_WEAK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getModifiedTimeWeak() <em>Modified Time Weak</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getModifiedTimeWeak() + * @generated + * @ordered + */ + protected String modifiedTimeWeak = MODIFIED_TIME_WEAK_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 #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; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected IHistoryConnectorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return UMLRhapsodyPackage.eINSTANCE.getIHistoryConnector(); + } + + /** + * <!-- 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.IHISTORY_CONNECTOR__ID, oldId, id)); + } + + /** + * <!-- 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.IHISTORY_CONNECTOR__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IState getParent() { + if (parent != null && parent.eIsProxy()) { + InternalEObject oldParent = (InternalEObject)parent; + parent = (IState)eResolveProxy(oldParent); + if (parent != oldParent) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.IHISTORY_CONNECTOR__PARENT, oldParent, parent)); + } + } + return parent; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IState basicGetParent() { + return parent; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setParent(IState newParent) { + IState oldParent = parent; + parent = newParent; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IHISTORY_CONNECTOR__PARENT, oldParent, parent)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getConnectorType() { + return connectorType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setConnectorType(String newConnectorType) { + String oldConnectorType = connectorType; + connectorType = newConnectorType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IHISTORY_CONNECTOR__CONNECTOR_TYPE, oldConnectorType, connectorType)); + } + + /** + * <!-- 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.IHISTORY_CONNECTOR__MY_STATE, oldMyState, myState)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getModifiedTimeWeak() { + return modifiedTimeWeak; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setModifiedTimeWeak(String newModifiedTimeWeak) { + String oldModifiedTimeWeak = modifiedTimeWeak; + modifiedTimeWeak = newModifiedTimeWeak; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.IHISTORY_CONNECTOR__MODIFIED_TIME_WEAK, oldModifiedTimeWeak, modifiedTimeWeak)); + } + + /** + * <!-- 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.IHISTORY_CONNECTOR__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.IHISTORY_CONNECTOR__UML_DEPENDENCY_ID, oldUmlDependencyID, umlDependencyID)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__ID: + return getId(); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__NAME: + return getName(); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__PARENT: + if (resolve) return getParent(); + return basicGetParent(); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__CONNECTOR_TYPE: + return getConnectorType(); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__MY_STATE: + return getMyState(); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__MODIFIED_TIME_WEAK: + return getModifiedTimeWeak(); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__OBJECT_CREATION: + return getObjectCreation(); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__UML_DEPENDENCY_ID: + return getUmlDependencyID(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__ID: + setId((String)newValue); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__NAME: + setName((String)newValue); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__PARENT: + setParent((IState)newValue); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__CONNECTOR_TYPE: + setConnectorType((String)newValue); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__MY_STATE: + setMyState((String)newValue); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__MODIFIED_TIME_WEAK: + setModifiedTimeWeak((String)newValue); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__OBJECT_CREATION: + setObjectCreation((String)newValue); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__UML_DEPENDENCY_ID: + setUmlDependencyID((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__ID: + setId(ID_EDEFAULT); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__NAME: + setName(NAME_EDEFAULT); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__PARENT: + setParent((IState)null); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__CONNECTOR_TYPE: + setConnectorType(CONNECTOR_TYPE_EDEFAULT); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__MY_STATE: + setMyState(MY_STATE_EDEFAULT); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__MODIFIED_TIME_WEAK: + setModifiedTimeWeak(MODIFIED_TIME_WEAK_EDEFAULT); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__OBJECT_CREATION: + setObjectCreation(OBJECT_CREATION_EDEFAULT); + return; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__UML_DEPENDENCY_ID: + setUmlDependencyID(UML_DEPENDENCY_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__PARENT: + return parent != null; + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__CONNECTOR_TYPE: + return CONNECTOR_TYPE_EDEFAULT == null ? connectorType != null : !CONNECTOR_TYPE_EDEFAULT.equals(connectorType); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__MY_STATE: + return MY_STATE_EDEFAULT == null ? myState != null : !MY_STATE_EDEFAULT.equals(myState); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__MODIFIED_TIME_WEAK: + return MODIFIED_TIME_WEAK_EDEFAULT == null ? modifiedTimeWeak != null : !MODIFIED_TIME_WEAK_EDEFAULT.equals(modifiedTimeWeak); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__OBJECT_CREATION: + return OBJECT_CREATION_EDEFAULT == null ? objectCreation != null : !OBJECT_CREATION_EDEFAULT.equals(objectCreation); + case UMLRhapsodyPackage.IHISTORY_CONNECTOR__UML_DEPENDENCY_ID: + return UML_DEPENDENCY_ID_EDEFAULT == null ? umlDependencyID != null : !UML_DEPENDENCY_ID_EDEFAULT.equals(umlDependencyID); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); //$NON-NLS-1$ + result.append(id); + result.append(", name: "); //$NON-NLS-1$ + result.append(name); + result.append(", connectorType: "); //$NON-NLS-1$ + result.append(connectorType); + result.append(", myState: "); //$NON-NLS-1$ + result.append(myState); + result.append(", modifiedTimeWeak: "); //$NON-NLS-1$ + result.append(modifiedTimeWeak); + result.append(", objectCreation: "); //$NON-NLS-1$ + result.append(objectCreation); + result.append(", umlDependencyID: "); //$NON-NLS-1$ + result.append(umlDependencyID); + result.append(')'); + return result.toString(); + } + +} //IHistoryConnectorImpl |