Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java')
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java247
1 files changed, 0 insertions, 247 deletions
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java
deleted file mode 100644
index 8caf713bd5e..00000000000
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/src/org/eclipse/papyrus/MARTE/MARTE_Foundations/GRM/impl/TimerResourceImpl.java
+++ /dev/null
@@ -1,247 +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 org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.GRMPackage;
-import org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.TimerResource;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Timer Resource</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl#getDuration <em>Duration</em>}</li>
- * <li>{@link org.eclipse.papyrus.MARTE.MARTE_Foundations.GRM.impl.TimerResourceImpl#isIsPeriodic <em>Is Periodic</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TimerResourceImpl extends TimingResourceImpl implements TimerResource {
- /**
- * The default value of the '{@link #getDuration() <em>Duration</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDuration()
- * @generated
- * @ordered
- */
- protected static final String DURATION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDuration() <em>Duration</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDuration()
- * @generated
- * @ordered
- */
- protected String duration = DURATION_EDEFAULT;
-
- /**
- * The default value of the '{@link #isIsPeriodic() <em>Is Periodic</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isIsPeriodic()
- * @generated
- * @ordered
- */
- protected static final boolean IS_PERIODIC_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isIsPeriodic() <em>Is Periodic</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isIsPeriodic()
- * @generated
- * @ordered
- */
- protected boolean isPeriodic = IS_PERIODIC_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected TimerResourceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return GRMPackage.Literals.TIMER_RESOURCE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getDuration() {
- return duration;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setDuration(String newDuration) {
- String oldDuration = duration;
- duration = newDuration;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.TIMER_RESOURCE__DURATION, oldDuration, duration));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isIsPeriodic() {
- return isPeriodic;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setIsPeriodic(boolean newIsPeriodic) {
- boolean oldIsPeriodic = isPeriodic;
- isPeriodic = newIsPeriodic;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, GRMPackage.TIMER_RESOURCE__IS_PERIODIC, oldIsPeriodic, isPeriodic));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case GRMPackage.TIMER_RESOURCE__DURATION:
- return getDuration();
- case GRMPackage.TIMER_RESOURCE__IS_PERIODIC:
- return isIsPeriodic();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case GRMPackage.TIMER_RESOURCE__DURATION:
- setDuration((String) newValue);
- return;
- case GRMPackage.TIMER_RESOURCE__IS_PERIODIC:
- setIsPeriodic((Boolean) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case GRMPackage.TIMER_RESOURCE__DURATION:
- setDuration(DURATION_EDEFAULT);
- return;
- case GRMPackage.TIMER_RESOURCE__IS_PERIODIC:
- setIsPeriodic(IS_PERIODIC_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case GRMPackage.TIMER_RESOURCE__DURATION:
- return DURATION_EDEFAULT == null ? duration != null : !DURATION_EDEFAULT.equals(duration);
- case GRMPackage.TIMER_RESOURCE__IS_PERIODIC:
- return isPeriodic != IS_PERIODIC_EDEFAULT;
- }
- 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(" (duration: ");
- result.append(duration);
- result.append(", isPeriodic: ");
- result.append(isPeriodic);
- result.append(')');
- return result.toString();
- }
-
-} // TimerResourceImpl

Back to the top