Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/temporalconstraint/impl/TemporalConstraintImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/temporalconstraint/impl/TemporalConstraintImpl.java200
1 files changed, 119 insertions, 81 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/temporalconstraint/impl/TemporalConstraintImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/temporalconstraint/impl/TemporalConstraintImpl.java
index 75ac1c8cf52..ee3f470ce2d 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/temporalconstraint/impl/TemporalConstraintImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/annex/temporalconstraint/impl/TemporalConstraintImpl.java
@@ -26,12 +26,12 @@ import org.eclipse.papyrus.eastadl.infrastructure.values.EAExpression;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getTransitionEvent <em>Transition Event</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getTimeCondition <em>Time Condition</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getTransition <em>Transition</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getState <em>State</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getInitState <em>Init State</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getAssertion <em>Assertion</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getTransitionEvent <em>Transition Event</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getTimeCondition <em>Time Condition</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getTransition <em>Transition</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getState <em>State</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getInitState <em>Init State</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalConstraintImpl#getAssertion <em>Assertion</em>}</li>
* </ul>
* </p>
*
@@ -42,6 +42,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
* The cached value of the '{@link #getTransitionEvent() <em>Transition Event</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTransitionEvent()
* @generated
* @ordered
@@ -52,6 +53,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
* The cached value of the '{@link #getTimeCondition() <em>Time Condition</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTimeCondition()
* @generated
* @ordered
@@ -62,6 +64,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
* The cached value of the '{@link #getTransition() <em>Transition</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getTransition()
* @generated
* @ordered
@@ -72,6 +75,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
* The cached value of the '{@link #getState() <em>State</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getState()
* @generated
* @ordered
@@ -82,6 +86,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
* The cached value of the '{@link #getInitState() <em>Init State</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getInitState()
* @generated
* @ordered
@@ -92,6 +97,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
* The cached value of the '{@link #getAssertion() <em>Assertion</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getAssertion()
* @generated
* @ordered
@@ -101,6 +107,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected TemporalConstraintImpl() {
@@ -110,6 +117,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -120,8 +128,10 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EList<TransitionEvent> getTransitionEvent() {
if (transitionEvent == null) {
transitionEvent = new EObjectResolvingEList<TransitionEvent>(TransitionEvent.class, this, TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT);
@@ -132,8 +142,10 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EList<LogicalTimeCondition> getTimeCondition() {
if (timeCondition == null) {
timeCondition = new EObjectResolvingEList<LogicalTimeCondition>(LogicalTimeCondition.class, this, TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION);
@@ -144,8 +156,10 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EList<Transition> getTransition() {
if (transition == null) {
transition = new EObjectResolvingEList<Transition>(Transition.class, this, TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION);
@@ -156,8 +170,10 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EList<State> getState() {
if (state == null) {
state = new EObjectResolvingEList<State>(State.class, this, TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE);
@@ -168,15 +184,18 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public State getInitState() {
if (initState != null && initState.eIsProxy()) {
- InternalEObject oldInitState = (InternalEObject)initState;
- initState = (State)eResolveProxy(oldInitState);
+ InternalEObject oldInitState = (InternalEObject) initState;
+ initState = (State) eResolveProxy(oldInitState);
if (initState != oldInitState) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE, oldInitState, initState));
+ }
}
}
return initState;
@@ -185,6 +204,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public State basicGetInitState() {
@@ -194,27 +214,33 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setInitState(State newInitState) {
State oldInitState = initState;
initState = newInitState;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE, oldInitState, initState));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public EAExpression getAssertion() {
if (assertion != null && assertion.eIsProxy()) {
- InternalEObject oldAssertion = (InternalEObject)assertion;
- assertion = (EAExpression)eResolveProxy(oldAssertion);
+ InternalEObject oldAssertion = (InternalEObject) assertion;
+ assertion = (EAExpression) eResolveProxy(oldAssertion);
if (assertion != oldAssertion) {
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION, oldAssertion, assertion));
+ }
}
}
return assertion;
@@ -223,6 +249,7 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public EAExpression basicGetAssertion() {
@@ -232,37 +259,45 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
+ @Override
public void setAssertion(EAExpression newAssertion) {
EAExpression oldAssertion = assertion;
assertion = newAssertion;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION, oldAssertion, assertion));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT:
- return getTransitionEvent();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION:
- return getTimeCondition();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION:
- return getTransition();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE:
- return getState();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE:
- if (resolve) return getInitState();
- return basicGetInitState();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION:
- if (resolve) return getAssertion();
- return basicGetAssertion();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT:
+ return getTransitionEvent();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION:
+ return getTimeCondition();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION:
+ return getTransition();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE:
+ return getState();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE:
+ if (resolve) {
+ return getInitState();
+ }
+ return basicGetInitState();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION:
+ if (resolve) {
+ return getAssertion();
+ }
+ return basicGetAssertion();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -270,34 +305,35 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT:
- getTransitionEvent().clear();
- getTransitionEvent().addAll((Collection<? extends TransitionEvent>)newValue);
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION:
- getTimeCondition().clear();
- getTimeCondition().addAll((Collection<? extends LogicalTimeCondition>)newValue);
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION:
- getTransition().clear();
- getTransition().addAll((Collection<? extends Transition>)newValue);
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE:
- getState().clear();
- getState().addAll((Collection<? extends State>)newValue);
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE:
- setInitState((State)newValue);
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION:
- setAssertion((EAExpression)newValue);
- return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT:
+ getTransitionEvent().clear();
+ getTransitionEvent().addAll((Collection<? extends TransitionEvent>) newValue);
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION:
+ getTimeCondition().clear();
+ getTimeCondition().addAll((Collection<? extends LogicalTimeCondition>) newValue);
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION:
+ getTransition().clear();
+ getTransition().addAll((Collection<? extends Transition>) newValue);
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE:
+ getState().clear();
+ getState().addAll((Collection<? extends State>) newValue);
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE:
+ setInitState((State) newValue);
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION:
+ setAssertion((EAExpression) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -305,29 +341,30 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT:
- getTransitionEvent().clear();
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION:
- getTimeCondition().clear();
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION:
- getTransition().clear();
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE:
- getState().clear();
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE:
- setInitState((State)null);
- return;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION:
- setAssertion((EAExpression)null);
- return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT:
+ getTransitionEvent().clear();
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION:
+ getTimeCondition().clear();
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION:
+ getTransition().clear();
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE:
+ getState().clear();
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE:
+ setInitState((State) null);
+ return;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION:
+ setAssertion((EAExpression) null);
+ return;
}
super.eUnset(featureID);
}
@@ -335,25 +372,26 @@ public class TemporalConstraintImpl extends EAElementImpl implements TemporalCon
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT:
- return transitionEvent != null && !transitionEvent.isEmpty();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION:
- return timeCondition != null && !timeCondition.isEmpty();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION:
- return transition != null && !transition.isEmpty();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE:
- return state != null && !state.isEmpty();
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE:
- return initState != null;
- case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION:
- return assertion != null;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION_EVENT:
+ return transitionEvent != null && !transitionEvent.isEmpty();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TIME_CONDITION:
+ return timeCondition != null && !timeCondition.isEmpty();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__TRANSITION:
+ return transition != null && !transition.isEmpty();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__STATE:
+ return state != null && !state.isEmpty();
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__INIT_STATE:
+ return initState != null;
+ case TemporalconstraintPackage.TEMPORAL_CONSTRAINT__ASSERTION:
+ return assertion != null;
}
return super.eIsSet(featureID);
}
-} //TemporalConstraintImpl
+} // TemporalConstraintImpl

Back to the top