Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/marte/org.eclipse.papyrus.marte.vsl/src-gen/org/eclipse/papyrus/marte/vsl/vSL/impl/DurationObsExpressionImpl.java')
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.vsl/src-gen/org/eclipse/papyrus/marte/vsl/vSL/impl/DurationObsExpressionImpl.java381
1 files changed, 0 insertions, 381 deletions
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.vsl/src-gen/org/eclipse/papyrus/marte/vsl/vSL/impl/DurationObsExpressionImpl.java b/extraplugins/marte/org.eclipse.papyrus.marte.vsl/src-gen/org/eclipse/papyrus/marte/vsl/vSL/impl/DurationObsExpressionImpl.java
deleted file mode 100644
index 96be8a0570c..00000000000
--- a/extraplugins/marte/org.eclipse.papyrus.marte.vsl/src-gen/org/eclipse/papyrus/marte/vsl/vSL/impl/DurationObsExpressionImpl.java
+++ /dev/null
@@ -1,381 +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:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.marte.vsl.vSL.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.marte.vsl.vSL.DurationObsExpression;
-import org.eclipse.papyrus.marte.vsl.vSL.DurationObsName;
-import org.eclipse.papyrus.marte.vsl.vSL.Expression;
-import org.eclipse.papyrus.marte.vsl.vSL.VSLPackage;
-
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.Type;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Duration Obs Expression</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.marte.vsl.vSL.impl.DurationObsExpressionImpl#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.papyrus.marte.vsl.vSL.impl.DurationObsExpressionImpl#getIndex <em>Index</em>}</li>
- * <li>{@link org.eclipse.papyrus.marte.vsl.vSL.impl.DurationObsExpressionImpl#getCondition <em>Condition</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DurationObsExpressionImpl extends TimeExpressionImpl implements DurationObsExpression
-{
- /**
- * The cached value of the '{@link #getId() <em>Id</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getId()
- * @generated
- * @ordered
- */
- protected DurationObsName id;
-
- /**
- * The cached value of the '{@link #getIndex() <em>Index</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getIndex()
- * @generated
- * @ordered
- */
- protected Expression index;
-
- /**
- * The cached value of the '{@link #getCondition() <em>Condition</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getCondition()
- * @generated
- * @ordered
- */
- protected Expression condition;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DurationObsExpressionImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return VSLPackage.Literals.DURATION_OBS_EXPRESSION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DurationObsName getId()
- {
- return id;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetId(DurationObsName newId, NotificationChain msgs)
- {
- DurationObsName oldId = id;
- id = newId;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VSLPackage.DURATION_OBS_EXPRESSION__ID, oldId, newId);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setId(DurationObsName newId)
- {
- if (newId != id)
- {
- NotificationChain msgs = null;
- if (id != null)
- msgs = ((InternalEObject)id).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VSLPackage.DURATION_OBS_EXPRESSION__ID, null, msgs);
- if (newId != null)
- msgs = ((InternalEObject)newId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VSLPackage.DURATION_OBS_EXPRESSION__ID, null, msgs);
- msgs = basicSetId(newId, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, VSLPackage.DURATION_OBS_EXPRESSION__ID, newId, newId));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Expression getIndex()
- {
- return index;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetIndex(Expression newIndex, NotificationChain msgs)
- {
- Expression oldIndex = index;
- index = newIndex;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VSLPackage.DURATION_OBS_EXPRESSION__INDEX, oldIndex, newIndex);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setIndex(Expression newIndex)
- {
- if (newIndex != index)
- {
- NotificationChain msgs = null;
- if (index != null)
- msgs = ((InternalEObject)index).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VSLPackage.DURATION_OBS_EXPRESSION__INDEX, null, msgs);
- if (newIndex != null)
- msgs = ((InternalEObject)newIndex).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VSLPackage.DURATION_OBS_EXPRESSION__INDEX, null, msgs);
- msgs = basicSetIndex(newIndex, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, VSLPackage.DURATION_OBS_EXPRESSION__INDEX, newIndex, newIndex));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Expression getCondition()
- {
- return condition;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs)
- {
- Expression oldCondition = condition;
- condition = newCondition;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VSLPackage.DURATION_OBS_EXPRESSION__CONDITION, oldCondition, newCondition);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setCondition(Expression newCondition)
- {
- if (newCondition != condition)
- {
- NotificationChain msgs = null;
- if (condition != null)
- msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - VSLPackage.DURATION_OBS_EXPRESSION__CONDITION, null, msgs);
- if (newCondition != null)
- msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - VSLPackage.DURATION_OBS_EXPRESSION__CONDITION, null, msgs);
- msgs = basicSetCondition(newCondition, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, VSLPackage.DURATION_OBS_EXPRESSION__CONDITION, newCondition, newCondition));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EObject getFilteredParentRule(EClass filter)
- {
- return org.eclipse.papyrus.marte.vsl.extensions.VSLContextUtil.getFilteredParentRule(this, filter) ;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Type getExpectedType()
- {
- return org.eclipse.papyrus.marte.vsl.extensions.VSLContextUtil.getExpectedType(this) ;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Element getContextElement()
- {
- return org.eclipse.papyrus.marte.vsl.extensions.VSLContextUtil.getContextElement(this) ;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case VSLPackage.DURATION_OBS_EXPRESSION__ID:
- return basicSetId(null, msgs);
- case VSLPackage.DURATION_OBS_EXPRESSION__INDEX:
- return basicSetIndex(null, msgs);
- case VSLPackage.DURATION_OBS_EXPRESSION__CONDITION:
- return basicSetCondition(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case VSLPackage.DURATION_OBS_EXPRESSION__ID:
- return getId();
- case VSLPackage.DURATION_OBS_EXPRESSION__INDEX:
- return getIndex();
- case VSLPackage.DURATION_OBS_EXPRESSION__CONDITION:
- return getCondition();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case VSLPackage.DURATION_OBS_EXPRESSION__ID:
- setId((DurationObsName)newValue);
- return;
- case VSLPackage.DURATION_OBS_EXPRESSION__INDEX:
- setIndex((Expression)newValue);
- return;
- case VSLPackage.DURATION_OBS_EXPRESSION__CONDITION:
- setCondition((Expression)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case VSLPackage.DURATION_OBS_EXPRESSION__ID:
- setId((DurationObsName)null);
- return;
- case VSLPackage.DURATION_OBS_EXPRESSION__INDEX:
- setIndex((Expression)null);
- return;
- case VSLPackage.DURATION_OBS_EXPRESSION__CONDITION:
- setCondition((Expression)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case VSLPackage.DURATION_OBS_EXPRESSION__ID:
- return id != null;
- case VSLPackage.DURATION_OBS_EXPRESSION__INDEX:
- return index != null;
- case VSLPackage.DURATION_OBS_EXPRESSION__CONDITION:
- return condition != null;
- }
- return super.eIsSet(featureID);
- }
-
-} //DurationObsExpressionImpl

Back to the top