Skip to main content
summaryrefslogtreecommitdiffstats
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/NFPs/impl/UnitImpl.java')
-rw-r--r--deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/UnitImpl.java351
1 files changed, 0 insertions, 351 deletions
diff --git a/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/UnitImpl.java b/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/UnitImpl.java
deleted file mode 100644
index 7736f3eeddf..00000000000
--- a/deprecated/deprecated-plugins/marte.deprecated/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/NFPs/impl/UnitImpl.java
+++ /dev/null
@@ -1,351 +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.NFPs.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.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.NFPsPackage;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.Unit;
-
-import org.eclipse.uml2.uml.EnumerationLiteral;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Unit</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl#getConvFactor <em>Conv Factor</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl#getConvOffset <em>Conv Offset</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl#getBaseUnit <em>Base Unit</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.NFPs.impl.UnitImpl#getBase_EnumerationLiteral <em>Base Enumeration Literal</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class UnitImpl extends EObjectImpl implements Unit {
- /**
- * The default value of the '{@link #getConvFactor() <em>Conv Factor</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConvFactor()
- * @generated
- * @ordered
- */
- protected static final String CONV_FACTOR_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getConvFactor() <em>Conv Factor</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConvFactor()
- * @generated
- * @ordered
- */
- protected String convFactor = CONV_FACTOR_EDEFAULT;
-
- /**
- * The default value of the '{@link #getConvOffset() <em>Conv Offset</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConvOffset()
- * @generated
- * @ordered
- */
- protected static final String CONV_OFFSET_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getConvOffset() <em>Conv Offset</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getConvOffset()
- * @generated
- * @ordered
- */
- protected String convOffset = CONV_OFFSET_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getBaseUnit() <em>Base Unit</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBaseUnit()
- * @generated
- * @ordered
- */
- protected Unit baseUnit;
-
- /**
- * The cached value of the '{@link #getBase_EnumerationLiteral() <em>Base Enumeration Literal</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBase_EnumerationLiteral()
- * @generated
- * @ordered
- */
- protected EnumerationLiteral base_EnumerationLiteral;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected UnitImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return NFPsPackage.Literals.UNIT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getConvFactor() {
- return convFactor;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setConvFactor(String newConvFactor) {
- String oldConvFactor = convFactor;
- convFactor = newConvFactor;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.UNIT__CONV_FACTOR, oldConvFactor, convFactor));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getConvOffset() {
- return convOffset;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setConvOffset(String newConvOffset) {
- String oldConvOffset = convOffset;
- convOffset = newConvOffset;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.UNIT__CONV_OFFSET, oldConvOffset, convOffset));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Unit getBaseUnit() {
- if (baseUnit != null && baseUnit.eIsProxy()) {
- InternalEObject oldBaseUnit = (InternalEObject)baseUnit;
- baseUnit = (Unit)eResolveProxy(oldBaseUnit);
- if (baseUnit != oldBaseUnit) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.UNIT__BASE_UNIT, oldBaseUnit, baseUnit));
- }
- }
- return baseUnit;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Unit basicGetBaseUnit() {
- return baseUnit;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setBaseUnit(Unit newBaseUnit) {
- Unit oldBaseUnit = baseUnit;
- baseUnit = newBaseUnit;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.UNIT__BASE_UNIT, oldBaseUnit, baseUnit));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EnumerationLiteral getBase_EnumerationLiteral() {
- if (base_EnumerationLiteral != null && base_EnumerationLiteral.eIsProxy()) {
- InternalEObject oldBase_EnumerationLiteral = (InternalEObject)base_EnumerationLiteral;
- base_EnumerationLiteral = (EnumerationLiteral)eResolveProxy(oldBase_EnumerationLiteral);
- if (base_EnumerationLiteral != oldBase_EnumerationLiteral) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL, oldBase_EnumerationLiteral, base_EnumerationLiteral));
- }
- }
- return base_EnumerationLiteral;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EnumerationLiteral basicGetBase_EnumerationLiteral() {
- return base_EnumerationLiteral;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setBase_EnumerationLiteral(EnumerationLiteral newBase_EnumerationLiteral) {
- EnumerationLiteral oldBase_EnumerationLiteral = base_EnumerationLiteral;
- base_EnumerationLiteral = newBase_EnumerationLiteral;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL, oldBase_EnumerationLiteral, base_EnumerationLiteral));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case NFPsPackage.UNIT__CONV_FACTOR:
- return getConvFactor();
- case NFPsPackage.UNIT__CONV_OFFSET:
- return getConvOffset();
- case NFPsPackage.UNIT__BASE_UNIT:
- if (resolve) return getBaseUnit();
- return basicGetBaseUnit();
- case NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL:
- if (resolve) return getBase_EnumerationLiteral();
- return basicGetBase_EnumerationLiteral();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case NFPsPackage.UNIT__CONV_FACTOR:
- setConvFactor((String)newValue);
- return;
- case NFPsPackage.UNIT__CONV_OFFSET:
- setConvOffset((String)newValue);
- return;
- case NFPsPackage.UNIT__BASE_UNIT:
- setBaseUnit((Unit)newValue);
- return;
- case NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL:
- setBase_EnumerationLiteral((EnumerationLiteral)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case NFPsPackage.UNIT__CONV_FACTOR:
- setConvFactor(CONV_FACTOR_EDEFAULT);
- return;
- case NFPsPackage.UNIT__CONV_OFFSET:
- setConvOffset(CONV_OFFSET_EDEFAULT);
- return;
- case NFPsPackage.UNIT__BASE_UNIT:
- setBaseUnit((Unit)null);
- return;
- case NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL:
- setBase_EnumerationLiteral((EnumerationLiteral)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case NFPsPackage.UNIT__CONV_FACTOR:
- return CONV_FACTOR_EDEFAULT == null ? convFactor != null : !CONV_FACTOR_EDEFAULT.equals(convFactor);
- case NFPsPackage.UNIT__CONV_OFFSET:
- return CONV_OFFSET_EDEFAULT == null ? convOffset != null : !CONV_OFFSET_EDEFAULT.equals(convOffset);
- case NFPsPackage.UNIT__BASE_UNIT:
- return baseUnit != null;
- case NFPsPackage.UNIT__BASE_ENUMERATION_LITERAL:
- return base_EnumerationLiteral != null;
- }
- 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(" (convFactor: ");
- result.append(convFactor);
- result.append(", convOffset: ");
- result.append(convOffset);
- result.append(')');
- return result.toString();
- }
-
-} //UnitImpl

Back to the top