diff options
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ICodeGenConfigInfoHandleImpl.java')
-rw-r--r-- | extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ICodeGenConfigInfoHandleImpl.java | 227 |
1 files changed, 227 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ICodeGenConfigInfoHandleImpl.java b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ICodeGenConfigInfoHandleImpl.java new file mode 100644 index 00000000000..8795703b4d1 --- /dev/null +++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ICodeGenConfigInfoHandleImpl.java @@ -0,0 +1,227 @@ +/** + * 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.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ICodeGenConfigInfoHandle; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>ICode Gen Config Info Handle</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ICodeGenConfigInfoHandleImpl#getM2Class <em>M2 Class</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ICodeGenConfigInfoHandleImpl#getId <em>Id</em>}</li> + * </ul> + * + * @generated + */ +public class ICodeGenConfigInfoHandleImpl extends MinimalEObjectImpl.Container implements ICodeGenConfigInfoHandle { + /** + * The default value of the '{@link #getM2Class() <em>M2 Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getM2Class() + * @generated + * @ordered + */ + protected static final String M2_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getM2Class() <em>M2 Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getM2Class() + * @generated + * @ordered + */ + protected String m2Class = M2_CLASS_EDEFAULT; + + /** + * 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; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ICodeGenConfigInfoHandleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return UMLRhapsodyPackage.eINSTANCE.getICodeGenConfigInfoHandle(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getM2Class() { + return m2Class; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setM2Class(String newM2Class) { + String oldM2Class = m2Class; + m2Class = newM2Class; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ICODE_GEN_CONFIG_INFO_HANDLE__M2_CLASS, oldM2Class, m2Class)); + } + + /** + * <!-- 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.ICODE_GEN_CONFIG_INFO_HANDLE__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case UMLRhapsodyPackage.ICODE_GEN_CONFIG_INFO_HANDLE__M2_CLASS: + return getM2Class(); + case UMLRhapsodyPackage.ICODE_GEN_CONFIG_INFO_HANDLE__ID: + return getId(); + } + 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.ICODE_GEN_CONFIG_INFO_HANDLE__M2_CLASS: + setM2Class((String)newValue); + return; + case UMLRhapsodyPackage.ICODE_GEN_CONFIG_INFO_HANDLE__ID: + setId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.ICODE_GEN_CONFIG_INFO_HANDLE__M2_CLASS: + setM2Class(M2_CLASS_EDEFAULT); + return; + case UMLRhapsodyPackage.ICODE_GEN_CONFIG_INFO_HANDLE__ID: + setId(ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.ICODE_GEN_CONFIG_INFO_HANDLE__M2_CLASS: + return M2_CLASS_EDEFAULT == null ? m2Class != null : !M2_CLASS_EDEFAULT.equals(m2Class); + case UMLRhapsodyPackage.ICODE_GEN_CONFIG_INFO_HANDLE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + } + 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(" (m2Class: "); //$NON-NLS-1$ + result.append(m2Class); + result.append(", id: "); //$NON-NLS-1$ + result.append(id); + result.append(')'); + return result.toString(); + } + +} //ICodeGenConfigInfoHandleImpl |