diff options
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/timing/timingconstraints/impl/EventConstraintImpl.java')
-rw-r--r-- | extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/timing/timingconstraints/impl/EventConstraintImpl.java | 246 |
1 files changed, 0 insertions, 246 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/timing/timingconstraints/impl/EventConstraintImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/timing/timingconstraints/impl/EventConstraintImpl.java deleted file mode 100644 index 23839753d17..00000000000 --- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/timing/timingconstraints/impl/EventConstraintImpl.java +++ /dev/null @@ -1,246 +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: - * Sara TUCCI (CEA LIST) sara.tucci@cea.fr - Initial API and implementation - * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation - * David SERVAT (CEA LIST) david.servat@cea.fr - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.eastadl.timing.timingconstraints.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.papyrus.eastadl.timing.Event; -import org.eclipse.papyrus.eastadl.timing.TimeDuration; -import org.eclipse.papyrus.eastadl.timing.impl.TimingConstraintImpl; -import org.eclipse.papyrus.eastadl.timing.timingconstraints.EventConstraint; -import org.eclipse.papyrus.eastadl.timing.timingconstraints.TimingconstraintsPackage; - - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Event Constraint</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.papyrus.eastadl.timing.timingconstraints.impl.EventConstraintImpl#getEvent <em>Event</em>}</li> - * <li>{@link org.eclipse.papyrus.eastadl.timing.timingconstraints.impl.EventConstraintImpl#getOffset <em>Offset</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public abstract class EventConstraintImpl extends TimingConstraintImpl implements EventConstraint { - - /** - * The cached value of the '{@link #getEvent() <em>Event</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #getEvent() - * @generated - * @ordered - */ - protected Event event; - - /** - * The cached value of the '{@link #getOffset() <em>Offset</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @see #getOffset() - * @generated - * @ordered - */ - protected TimeDuration offset; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - protected EventConstraintImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public Event basicGetEvent() { - return event; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public TimeDuration basicGetOffset() { - return offset; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch(featureID) { - case TimingconstraintsPackage.EVENT_CONSTRAINT__EVENT: - if(resolve) - return getEvent(); - return basicGetEvent(); - case TimingconstraintsPackage.EVENT_CONSTRAINT__OFFSET: - if(resolve) - return getOffset(); - return basicGetOffset(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch(featureID) { - case TimingconstraintsPackage.EVENT_CONSTRAINT__EVENT: - return event != null; - case TimingconstraintsPackage.EVENT_CONSTRAINT__OFFSET: - return offset != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch(featureID) { - case TimingconstraintsPackage.EVENT_CONSTRAINT__EVENT: - setEvent((Event)newValue); - return; - case TimingconstraintsPackage.EVENT_CONSTRAINT__OFFSET: - setOffset((TimeDuration)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return TimingconstraintsPackage.Literals.EVENT_CONSTRAINT; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch(featureID) { - case TimingconstraintsPackage.EVENT_CONSTRAINT__EVENT: - setEvent((Event)null); - return; - case TimingconstraintsPackage.EVENT_CONSTRAINT__OFFSET: - setOffset((TimeDuration)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public Event getEvent() { - if(event != null && event.eIsProxy()) { - InternalEObject oldEvent = (InternalEObject)event; - event = (Event)eResolveProxy(oldEvent); - if(event != oldEvent) { - if(eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimingconstraintsPackage.EVENT_CONSTRAINT__EVENT, oldEvent, event)); - } - } - return event; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public TimeDuration getOffset() { - if(offset != null && offset.eIsProxy()) { - InternalEObject oldOffset = (InternalEObject)offset; - offset = (TimeDuration)eResolveProxy(oldOffset); - if(offset != oldOffset) { - if(eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, TimingconstraintsPackage.EVENT_CONSTRAINT__OFFSET, oldOffset, offset)); - } - } - return offset; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public void setEvent(Event newEvent) { - Event oldEvent = event; - event = newEvent; - if(eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TimingconstraintsPackage.EVENT_CONSTRAINT__EVENT, oldEvent, event)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public void setOffset(TimeDuration newOffset) { - TimeDuration oldOffset = offset; - offset = newOffset; - if(eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TimingconstraintsPackage.EVENT_CONSTRAINT__OFFSET, oldOffset, offset)); - } - -} //EventConstraintImpl |