diff options
Diffstat (limited to 'extraplugins/qompass/designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/TemplatePortImpl.java')
-rw-r--r-- | extraplugins/qompass/designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/TemplatePortImpl.java | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/extraplugins/qompass/designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/TemplatePortImpl.java b/extraplugins/qompass/designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/TemplatePortImpl.java new file mode 100644 index 00000000000..60fcc261168 --- /dev/null +++ b/extraplugins/qompass/designer/org.eclipse.papyrus.fcm.profile/src/org/eclipse/papyrus/FCM/impl/TemplatePortImpl.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2013 CEA LIST + * + * 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: + * Ansgar Radermacher - Initial API and implementation + * + */ +package org.eclipse.papyrus.FCM.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.papyrus.FCM.FCMPackage; +import org.eclipse.papyrus.FCM.PortKind; +import org.eclipse.papyrus.FCM.TemplatePort; +import org.eclipse.papyrus.FCM.util.MapUtil; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Template Port</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.papyrus.FCM.impl.TemplatePortImpl#getBoundType <em>Bound Type</em>}</li> + * </ul> + * + * @generated + */ +public class TemplatePortImpl extends PortImpl implements TemplatePort { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TemplatePortImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return FCMPackage.Literals.TEMPLATE_PORT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public PortKind getBoundType() { + PortKind boundType = basicGetBoundType(); + return boundType != null && boundType.eIsProxy() ? (PortKind)eResolveProxy((InternalEObject)boundType) : boundType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated NOT + */ + public PortKind basicGetBoundType() { + if(base_Port == null) { + return null; + } + if(base_Port.isConjugated()) { + return MapUtil.getBoundType(this); + } + else { + return MapUtil.getBoundType(this); + } + + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated NOT + */ + @Override + public void setBoundType(PortKind newBoundType) { + // TODO: implement this method to set the 'Bound Type' reference + // Ensure that you remove @generated or mark it @generated NOT + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated NOT + */ + @Override + public void unsetBoundType() { + // TODO: implement this method to unset the 'Bound Type' reference + // Ensure that you remove @generated or mark it @generated NOT + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated NOT + */ + @Override + public boolean isSetBoundType() { + // TODO: implement this method to return whether the 'Bound Type' reference is set + // Ensure that you remove @generated or mark it @generated NOT + return false; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FCMPackage.TEMPLATE_PORT__BOUND_TYPE: + if (resolve) return getBoundType(); + return basicGetBoundType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FCMPackage.TEMPLATE_PORT__BOUND_TYPE: + setBoundType((PortKind)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FCMPackage.TEMPLATE_PORT__BOUND_TYPE: + unsetBoundType(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FCMPackage.TEMPLATE_PORT__BOUND_TYPE: + return isSetBoundType(); + } + return super.eIsSet(featureID); + } + +} // TemplatePortImpl |