Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java')
-rw-r--r--deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java407
1 files changed, 0 insertions, 407 deletions
diff --git a/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java b/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java
deleted file mode 100644
index 5e06e28da33..00000000000
--- a/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/CommunicationMediaImpl.java
+++ /dev/null
@@ -1,407 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-
-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.EDataTypeUniqueEList;
-
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.CommunicationMedia;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage;
-
-import org.eclipse.papyrus.MARTE_Library.MARTE_DataTypes.TransmModeKind;
-
-import org.eclipse.uml2.uml.Connector;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Communication Media</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getElementSize <em>Element Size</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getBase_Connector <em>Base Connector</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getTransmMode <em>Transm Mode</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getBlockT <em>Block T</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getPacketT <em>Packet T</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.CommunicationMediaImpl#getCapacity <em>Capacity</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CommunicationMediaImpl extends ProcessingResourceImpl implements CommunicationMedia {
- /**
- * The default value of the '{@link #getElementSize() <em>Element Size</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getElementSize()
- * @generated
- * @ordered
- */
- protected static final String ELEMENT_SIZE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getElementSize() <em>Element Size</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getElementSize()
- * @generated
- * @ordered
- */
- protected String elementSize = ELEMENT_SIZE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBase_Connector() <em>Base Connector</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBase_Connector()
- * @generated
- * @ordered
- */
- protected Connector base_Connector;
-
- /**
- * The default value of the '{@link #getTransmMode() <em>Transm Mode</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransmMode()
- * @generated
- * @ordered
- */
- protected static final TransmModeKind TRANSM_MODE_EDEFAULT = TransmModeKind.SIMPLEX;
-
- /**
- * The cached value of the '{@link #getTransmMode() <em>Transm Mode</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getTransmMode()
- * @generated
- * @ordered
- */
- protected TransmModeKind transmMode = TRANSM_MODE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBlockT() <em>Block T</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBlockT()
- * @generated
- * @ordered
- */
- protected EList<String> blockT;
-
- /**
- * The cached value of the '{@link #getPacketT() <em>Packet T</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getPacketT()
- * @generated
- * @ordered
- */
- protected EList<String> packetT;
-
- /**
- * The cached value of the '{@link #getCapacity() <em>Capacity</em>}' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCapacity()
- * @generated
- * @ordered
- */
- protected EList<String> capacity;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected CommunicationMediaImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return GRMPackage.Literals.COMMUNICATION_MEDIA;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getElementSize() {
- return elementSize;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setElementSize(String newElementSize) {
- String oldElementSize = elementSize;
- elementSize = newElementSize;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE, oldElementSize, elementSize));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Connector getBase_Connector() {
- if (base_Connector != null && base_Connector.eIsProxy()) {
- InternalEObject oldBase_Connector = (InternalEObject)base_Connector;
- base_Connector = (Connector)eResolveProxy(oldBase_Connector);
- if (base_Connector != oldBase_Connector) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR, oldBase_Connector, base_Connector));
- }
- }
- return base_Connector;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Connector basicGetBase_Connector() {
- return base_Connector;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setBase_Connector(Connector newBase_Connector) {
- Connector oldBase_Connector = base_Connector;
- base_Connector = newBase_Connector;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR, oldBase_Connector, base_Connector));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public TransmModeKind getTransmMode() {
- return transmMode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setTransmMode(TransmModeKind newTransmMode) {
- TransmModeKind oldTransmMode = transmMode;
- transmMode = newTransmMode == null ? TRANSM_MODE_EDEFAULT : newTransmMode;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE, oldTransmMode, transmMode));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<String> getBlockT() {
- if (blockT == null) {
- blockT = new EDataTypeUniqueEList<String>(String.class, this, GRMPackage.COMMUNICATION_MEDIA__BLOCK_T);
- }
- return blockT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<String> getPacketT() {
- if (packetT == null) {
- packetT = new EDataTypeUniqueEList<String>(String.class, this, GRMPackage.COMMUNICATION_MEDIA__PACKET_T);
- }
- return packetT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<String> getCapacity() {
- if (capacity == null) {
- capacity = new EDataTypeUniqueEList<String>(String.class, this, GRMPackage.COMMUNICATION_MEDIA__CAPACITY);
- }
- return capacity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE:
- return getElementSize();
- case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR:
- if (resolve) return getBase_Connector();
- return basicGetBase_Connector();
- case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE:
- return getTransmMode();
- case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T:
- return getBlockT();
- case GRMPackage.COMMUNICATION_MEDIA__PACKET_T:
- return getPacketT();
- case GRMPackage.COMMUNICATION_MEDIA__CAPACITY:
- return getCapacity();
- }
- 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 GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE:
- setElementSize((String)newValue);
- return;
- case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR:
- setBase_Connector((Connector)newValue);
- return;
- case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE:
- setTransmMode((TransmModeKind)newValue);
- return;
- case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T:
- getBlockT().clear();
- getBlockT().addAll((Collection<? extends String>)newValue);
- return;
- case GRMPackage.COMMUNICATION_MEDIA__PACKET_T:
- getPacketT().clear();
- getPacketT().addAll((Collection<? extends String>)newValue);
- return;
- case GRMPackage.COMMUNICATION_MEDIA__CAPACITY:
- getCapacity().clear();
- getCapacity().addAll((Collection<? extends String>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE:
- setElementSize(ELEMENT_SIZE_EDEFAULT);
- return;
- case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR:
- setBase_Connector((Connector)null);
- return;
- case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE:
- setTransmMode(TRANSM_MODE_EDEFAULT);
- return;
- case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T:
- getBlockT().clear();
- return;
- case GRMPackage.COMMUNICATION_MEDIA__PACKET_T:
- getPacketT().clear();
- return;
- case GRMPackage.COMMUNICATION_MEDIA__CAPACITY:
- getCapacity().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case GRMPackage.COMMUNICATION_MEDIA__ELEMENT_SIZE:
- return ELEMENT_SIZE_EDEFAULT == null ? elementSize != null : !ELEMENT_SIZE_EDEFAULT.equals(elementSize);
- case GRMPackage.COMMUNICATION_MEDIA__BASE_CONNECTOR:
- return base_Connector != null;
- case GRMPackage.COMMUNICATION_MEDIA__TRANSM_MODE:
- return transmMode != TRANSM_MODE_EDEFAULT;
- case GRMPackage.COMMUNICATION_MEDIA__BLOCK_T:
- return blockT != null && !blockT.isEmpty();
- case GRMPackage.COMMUNICATION_MEDIA__PACKET_T:
- return packetT != null && !packetT.isEmpty();
- case GRMPackage.COMMUNICATION_MEDIA__CAPACITY:
- return capacity != null && !capacity.isEmpty();
- }
- 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(" (elementSize: ");
- result.append(elementSize);
- result.append(", transmMode: ");
- result.append(transmMode);
- result.append(", blockT: ");
- result.append(blockT);
- result.append(", packetT: ");
- result.append(packetT);
- result.append(", capacity: ");
- result.append(capacity);
- result.append(')');
- return result.toString();
- }
-
-} //CommunicationMediaImpl

Back to the top