Commits (3)
...@@ -152,9 +152,9 @@ build-job: # This job runs in the build stage, which runs first. ...@@ -152,9 +152,9 @@ build-job: # This job runs in the build stage, which runs first.
# - apt-cache gencaches # - apt-cache gencaches
# - apt install -y zip unzip # - apt install -y zip unzip
# - zip --help # - zip --help
- echo "Cleaning caches" # - echo "Cleaning caches"
- rm -rf $CI_PROJECT_DIR/.m2/* # - rm -rf $CI_PROJECT_DIR/.m2/*
- rm -rf ~/.m2/* # - rm -rf ~/.m2/*
# - ls $CI_PROJECT_DIR/.m2/repository # - ls $CI_PROJECT_DIR/.m2/repository
- echo "Compiling the code..." - echo "Compiling the code..."
- top -b -n 1 -e m - top -b -n 1 -e m
......
...@@ -24,6 +24,7 @@ import org.etsi.mts.tdl.Action; ...@@ -24,6 +24,7 @@ import org.etsi.mts.tdl.Action;
import org.etsi.mts.tdl.ActionReference; import org.etsi.mts.tdl.ActionReference;
import org.etsi.mts.tdl.Behaviour; import org.etsi.mts.tdl.Behaviour;
import org.etsi.mts.tdl.Block; import org.etsi.mts.tdl.Block;
import org.etsi.mts.tdl.CastDataUse;
import org.etsi.mts.tdl.CollectionDataType; import org.etsi.mts.tdl.CollectionDataType;
import org.etsi.mts.tdl.ComponentInstance; import org.etsi.mts.tdl.ComponentInstance;
import org.etsi.mts.tdl.ComponentInstanceBinding; import org.etsi.mts.tdl.ComponentInstanceBinding;
...@@ -590,6 +591,18 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider { ...@@ -590,6 +591,18 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider {
IScope scope = Scopes.scopeFor(((StructuredDataType)resolvedDataType).allMembers()); IScope scope = Scopes.scopeFor(((StructuredDataType)resolvedDataType).allMembers());
return scope; return scope;
} }
} else if (context.eContainer() instanceof CastDataUse) {
DataType resolvedDataType = ((CastDataUse)context.eContainer()).resolveDataType();
if (resolvedDataType instanceof StructuredDataType) {
IScope scope = Scopes.scopeFor(((StructuredDataType)resolvedDataType).allMembers());
return scope;
}
} else if (context.eContainer() instanceof PredefinedFunctionCall) {
// DataType resolvedDataType = ((PredefinedFunctionCall)context.eContainer()).resolveDataType();
// if (resolvedDataType instanceof StructuredDataType) {
// IScope scope = Scopes.scopeFor(((StructuredDataType)resolvedDataType).allMembers());
// return scope;
// }
} else { } else {
} }
} else if (context instanceof ValueAssignment) { } else if (context instanceof ValueAssignment) {
......
...@@ -823,4 +823,15 @@ ...@@ -823,4 +823,15 @@
</eAnnotations> </eAnnotations>
</eStructuralFeatures> </eStructuralFeatures>
</eClassifiers> </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="CastDataUse" eSuperTypes="#//StaticDataUse">
<eOperations name="resolveDataType" eType="#//DataType">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
<details key="body" value="self.dataType"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="dataUse" lowerBound="1"
eType="#//DataUse" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="dataType" lowerBound="1"
eType="#//DataType"/>
</eClassifiers>
</ecore:EPackage> </ecore:EPackage>
...@@ -422,5 +422,10 @@ ...@@ -422,5 +422,10 @@
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference tdl.ecore#//DataElementUse/item"/> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference tdl.ecore#//DataElementUse/item"/>
<genOperations ecoreOperation="tdl.ecore#//DataElementUse/resolveDataType"/> <genOperations ecoreOperation="tdl.ecore#//DataElementUse/resolveDataType"/>
</genClasses> </genClasses>
<genClasses ecoreClass="tdl.ecore#//CastDataUse">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference tdl.ecore#//CastDataUse/dataUse"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference tdl.ecore#//CastDataUse/dataType"/>
<genOperations ecoreOperation="tdl.ecore#//CastDataUse/resolveDataType"/>
</genClasses>
</genPackages> </genPackages>
</genmodel:GenModel> </genmodel:GenModel>
...@@ -68,7 +68,8 @@ public enum ComponentInstanceRole implements Enumerator ...@@ -68,7 +68,8 @@ public enum ComponentInstanceRole implements Enumerator
* @generated * @generated
*/ */
private static final ComponentInstanceRole[] VALUES_ARRAY = private static final ComponentInstanceRole[] VALUES_ARRAY =
new ComponentInstanceRole[] { new ComponentInstanceRole[]
{
SUT, SUT,
TESTER, TESTER,
}; };
...@@ -91,9 +92,11 @@ public enum ComponentInstanceRole implements Enumerator ...@@ -91,9 +92,11 @@ public enum ComponentInstanceRole implements Enumerator
*/ */
public static ComponentInstanceRole get(String literal) public static ComponentInstanceRole get(String literal)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
ComponentInstanceRole result = VALUES_ARRAY[i]; ComponentInstanceRole result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) { if (result.toString().equals(literal))
{
return result; return result;
} }
} }
...@@ -110,9 +113,11 @@ public enum ComponentInstanceRole implements Enumerator ...@@ -110,9 +113,11 @@ public enum ComponentInstanceRole implements Enumerator
*/ */
public static ComponentInstanceRole getByName(String name) public static ComponentInstanceRole getByName(String name)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
ComponentInstanceRole result = VALUES_ARRAY[i]; ComponentInstanceRole result = VALUES_ARRAY[i];
if (result.getName().equals(name)) { if (result.getName().equals(name))
{
return result; return result;
} }
} }
...@@ -129,7 +134,8 @@ public enum ComponentInstanceRole implements Enumerator ...@@ -129,7 +134,8 @@ public enum ComponentInstanceRole implements Enumerator
*/ */
public static ComponentInstanceRole get(int value) public static ComponentInstanceRole get(int value)
{ {
switch (value) { switch (value)
{
case SUT_VALUE: return SUT; case SUT_VALUE: return SUT;
case TESTER_VALUE: return TESTER; case TESTER_VALUE: return TESTER;
} }
......
...@@ -68,7 +68,8 @@ public enum GateTypeKind implements Enumerator ...@@ -68,7 +68,8 @@ public enum GateTypeKind implements Enumerator
* @generated * @generated
*/ */
private static final GateTypeKind[] VALUES_ARRAY = private static final GateTypeKind[] VALUES_ARRAY =
new GateTypeKind[] { new GateTypeKind[]
{
MESSAGE, MESSAGE,
PROCEDURE, PROCEDURE,
}; };
...@@ -91,9 +92,11 @@ public enum GateTypeKind implements Enumerator ...@@ -91,9 +92,11 @@ public enum GateTypeKind implements Enumerator
*/ */
public static GateTypeKind get(String literal) public static GateTypeKind get(String literal)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
GateTypeKind result = VALUES_ARRAY[i]; GateTypeKind result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) { if (result.toString().equals(literal))
{
return result; return result;
} }
} }
...@@ -110,9 +113,11 @@ public enum GateTypeKind implements Enumerator ...@@ -110,9 +113,11 @@ public enum GateTypeKind implements Enumerator
*/ */
public static GateTypeKind getByName(String name) public static GateTypeKind getByName(String name)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
GateTypeKind result = VALUES_ARRAY[i]; GateTypeKind result = VALUES_ARRAY[i];
if (result.getName().equals(name)) { if (result.getName().equals(name))
{
return result; return result;
} }
} }
...@@ -129,7 +134,8 @@ public enum GateTypeKind implements Enumerator ...@@ -129,7 +134,8 @@ public enum GateTypeKind implements Enumerator
*/ */
public static GateTypeKind get(int value) public static GateTypeKind get(int value)
{ {
switch (value) { switch (value)
{
case MESSAGE_VALUE: return MESSAGE; case MESSAGE_VALUE: return MESSAGE;
case PROCEDURE_VALUE: return PROCEDURE; case PROCEDURE_VALUE: return PROCEDURE;
} }
......
...@@ -89,7 +89,8 @@ public enum ParameterKind implements Enumerator ...@@ -89,7 +89,8 @@ public enum ParameterKind implements Enumerator
* @generated * @generated
*/ */
private static final ParameterKind[] VALUES_ARRAY = private static final ParameterKind[] VALUES_ARRAY =
new ParameterKind[] { new ParameterKind[]
{
IN, IN,
OUT, OUT,
EXCEPTION, EXCEPTION,
...@@ -113,9 +114,11 @@ public enum ParameterKind implements Enumerator ...@@ -113,9 +114,11 @@ public enum ParameterKind implements Enumerator
*/ */
public static ParameterKind get(String literal) public static ParameterKind get(String literal)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
ParameterKind result = VALUES_ARRAY[i]; ParameterKind result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) { if (result.toString().equals(literal))
{
return result; return result;
} }
} }
...@@ -132,9 +135,11 @@ public enum ParameterKind implements Enumerator ...@@ -132,9 +135,11 @@ public enum ParameterKind implements Enumerator
*/ */
public static ParameterKind getByName(String name) public static ParameterKind getByName(String name)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
ParameterKind result = VALUES_ARRAY[i]; ParameterKind result = VALUES_ARRAY[i];
if (result.getName().equals(name)) { if (result.getName().equals(name))
{
return result; return result;
} }
} }
...@@ -151,7 +156,8 @@ public enum ParameterKind implements Enumerator ...@@ -151,7 +156,8 @@ public enum ParameterKind implements Enumerator
*/ */
public static ParameterKind get(int value) public static ParameterKind get(int value)
{ {
switch (value) { switch (value)
{
case IN_VALUE: return IN; case IN_VALUE: return IN;
case OUT_VALUE: return OUT; case OUT_VALUE: return OUT;
case EXCEPTION_VALUE: return EXCEPTION; case EXCEPTION_VALUE: return EXCEPTION;
......
...@@ -89,7 +89,8 @@ public enum TimeLabelUseKind implements Enumerator ...@@ -89,7 +89,8 @@ public enum TimeLabelUseKind implements Enumerator
* @generated * @generated
*/ */
private static final TimeLabelUseKind[] VALUES_ARRAY = private static final TimeLabelUseKind[] VALUES_ARRAY =
new TimeLabelUseKind[] { new TimeLabelUseKind[]
{
LAST, LAST,
PREVIOUS, PREVIOUS,
FIRST, FIRST,
...@@ -113,9 +114,11 @@ public enum TimeLabelUseKind implements Enumerator ...@@ -113,9 +114,11 @@ public enum TimeLabelUseKind implements Enumerator
*/ */
public static TimeLabelUseKind get(String literal) public static TimeLabelUseKind get(String literal)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
TimeLabelUseKind result = VALUES_ARRAY[i]; TimeLabelUseKind result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) { if (result.toString().equals(literal))
{
return result; return result;
} }
} }
...@@ -132,9 +135,11 @@ public enum TimeLabelUseKind implements Enumerator ...@@ -132,9 +135,11 @@ public enum TimeLabelUseKind implements Enumerator
*/ */
public static TimeLabelUseKind getByName(String name) public static TimeLabelUseKind getByName(String name)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
TimeLabelUseKind result = VALUES_ARRAY[i]; TimeLabelUseKind result = VALUES_ARRAY[i];
if (result.getName().equals(name)) { if (result.getName().equals(name))
{
return result; return result;
} }
} }
...@@ -151,7 +156,8 @@ public enum TimeLabelUseKind implements Enumerator ...@@ -151,7 +156,8 @@ public enum TimeLabelUseKind implements Enumerator
*/ */
public static TimeLabelUseKind get(int value) public static TimeLabelUseKind get(int value)
{ {
switch (value) { switch (value)
{
case LAST_VALUE: return LAST; case LAST_VALUE: return LAST;
case PREVIOUS_VALUE: return PREVIOUS; case PREVIOUS_VALUE: return PREVIOUS;
case FIRST_VALUE: return FIRST; case FIRST_VALUE: return FIRST;
......
...@@ -89,7 +89,8 @@ public enum UnassignedMemberTreatment implements Enumerator ...@@ -89,7 +89,8 @@ public enum UnassignedMemberTreatment implements Enumerator
* @generated * @generated
*/ */
private static final UnassignedMemberTreatment[] VALUES_ARRAY = private static final UnassignedMemberTreatment[] VALUES_ARRAY =
new UnassignedMemberTreatment[] { new UnassignedMemberTreatment[]
{
UNDEFINED, UNDEFINED,
ANY_VALUE, ANY_VALUE,
ANY_VALUE_OR_OMIT, ANY_VALUE_OR_OMIT,
...@@ -113,9 +114,11 @@ public enum UnassignedMemberTreatment implements Enumerator ...@@ -113,9 +114,11 @@ public enum UnassignedMemberTreatment implements Enumerator
*/ */
public static UnassignedMemberTreatment get(String literal) public static UnassignedMemberTreatment get(String literal)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
UnassignedMemberTreatment result = VALUES_ARRAY[i]; UnassignedMemberTreatment result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) { if (result.toString().equals(literal))
{
return result; return result;
} }
} }
...@@ -132,9 +135,11 @@ public enum UnassignedMemberTreatment implements Enumerator ...@@ -132,9 +135,11 @@ public enum UnassignedMemberTreatment implements Enumerator
*/ */
public static UnassignedMemberTreatment getByName(String name) public static UnassignedMemberTreatment getByName(String name)
{ {
for (int i = 0; i < VALUES_ARRAY.length; ++i) { for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
UnassignedMemberTreatment result = VALUES_ARRAY[i]; UnassignedMemberTreatment result = VALUES_ARRAY[i];
if (result.getName().equals(name)) { if (result.getName().equals(name))
{
return result; return result;
} }
} }
...@@ -151,7 +156,8 @@ public enum UnassignedMemberTreatment implements Enumerator ...@@ -151,7 +156,8 @@ public enum UnassignedMemberTreatment implements Enumerator
*/ */
public static UnassignedMemberTreatment get(int value) public static UnassignedMemberTreatment get(int value)
{ {
switch (value) { switch (value)
{
case UNDEFINED_VALUE: return UNDEFINED; case UNDEFINED_VALUE: return UNDEFINED;
case ANY_VALUE_VALUE: return ANY_VALUE; case ANY_VALUE_VALUE: return ANY_VALUE;
case ANY_VALUE_OR_OMIT_VALUE: return ANY_VALUE_OR_OMIT; case ANY_VALUE_OR_OMIT_VALUE: return ANY_VALUE_OR_OMIT;
......
...@@ -75,10 +75,12 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements ...@@ -75,10 +75,12 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements
@Override @Override
public ComponentInstance getComponentInstance() public ComponentInstance getComponentInstance()
{ {
if (componentInstance != null && componentInstance.eIsProxy()) { if (componentInstance != null && componentInstance.eIsProxy())
{
InternalEObject oldComponentInstance = (InternalEObject)componentInstance; InternalEObject oldComponentInstance = (InternalEObject)componentInstance;
componentInstance = (ComponentInstance)eResolveProxy(oldComponentInstance); componentInstance = (ComponentInstance)eResolveProxy(oldComponentInstance);
if (componentInstance != oldComponentInstance) { if (componentInstance != oldComponentInstance)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE, oldComponentInstance, componentInstance)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE, oldComponentInstance, componentInstance));
} }
...@@ -129,10 +131,12 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements ...@@ -129,10 +131,12 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements
@Override @Override
public EList<ComponentInstance> getParticipatingComponents() public EList<ComponentInstance> getParticipatingComponents()
{ {
try { try
{
return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -145,7 +149,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements ...@@ -145,7 +149,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE: case tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE:
if (resolve) return getComponentInstance(); if (resolve) return getComponentInstance();
return basicGetComponentInstance(); return basicGetComponentInstance();
...@@ -161,7 +166,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements ...@@ -161,7 +166,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE: case tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE:
setComponentInstance((ComponentInstance)newValue); setComponentInstance((ComponentInstance)newValue);
return; return;
...@@ -177,7 +183,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements ...@@ -177,7 +183,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE: case tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE:
setComponentInstance((ComponentInstance)null); setComponentInstance((ComponentInstance)null);
return; return;
...@@ -193,7 +200,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements ...@@ -193,7 +200,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE: case tdlPackage.ACTION_BEHAVIOUR__COMPONENT_INSTANCE:
return componentInstance != null; return componentInstance != null;
} }
...@@ -208,14 +216,18 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements ...@@ -208,14 +216,18 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements
@Override @Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) public int eDerivedOperationID(int baseOperationID, Class<?> baseClass)
{ {
if (baseClass == Behaviour.class) { if (baseClass == Behaviour.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ACTION_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS; case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ACTION_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
} }
if (baseClass == AtomicBehaviour.class) { if (baseClass == AtomicBehaviour.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ACTION_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS; case tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ACTION_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
...@@ -231,7 +243,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements ...@@ -231,7 +243,8 @@ public abstract class ActionBehaviourImpl extends AtomicBehaviourImpl implements
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.ACTION_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: case tdlPackage.ACTION_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS:
return getParticipatingComponents(); return getParticipatingComponents();
} }
......
...@@ -121,7 +121,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action ...@@ -121,7 +121,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action
@Override @Override
public EList<FormalParameter> getFormalParameter() public EList<FormalParameter> getFormalParameter()
{ {
if (formalParameter == null) { if (formalParameter == null)
{
formalParameter = new EObjectContainmentEList<FormalParameter>(FormalParameter.class, this, tdlPackage.ACTION__FORMAL_PARAMETER); formalParameter = new EObjectContainmentEList<FormalParameter>(FormalParameter.class, this, tdlPackage.ACTION__FORMAL_PARAMETER);
} }
return formalParameter; return formalParameter;
...@@ -135,7 +136,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action ...@@ -135,7 +136,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION__FORMAL_PARAMETER: case tdlPackage.ACTION__FORMAL_PARAMETER:
return ((InternalEList<?>)getFormalParameter()).basicRemove(otherEnd, msgs); return ((InternalEList<?>)getFormalParameter()).basicRemove(otherEnd, msgs);
} }
...@@ -150,7 +152,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action ...@@ -150,7 +152,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION__BODY: case tdlPackage.ACTION__BODY:
return getBody(); return getBody();
case tdlPackage.ACTION__FORMAL_PARAMETER: case tdlPackage.ACTION__FORMAL_PARAMETER:
...@@ -168,7 +171,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action ...@@ -168,7 +171,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION__BODY: case tdlPackage.ACTION__BODY:
setBody((String)newValue); setBody((String)newValue);
return; return;
...@@ -188,7 +192,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action ...@@ -188,7 +192,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION__BODY: case tdlPackage.ACTION__BODY:
setBody(BODY_EDEFAULT); setBody(BODY_EDEFAULT);
return; return;
...@@ -207,7 +212,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action ...@@ -207,7 +212,8 @@ public class ActionImpl extends MappableDataElementImpl implements Action
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION__BODY: case tdlPackage.ACTION__BODY:
return BODY_EDEFAULT == null ? body != null : !BODY_EDEFAULT.equals(body); return BODY_EDEFAULT == null ? body != null : !BODY_EDEFAULT.equals(body);
case tdlPackage.ACTION__FORMAL_PARAMETER: case tdlPackage.ACTION__FORMAL_PARAMETER:
......
...@@ -87,10 +87,12 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe ...@@ -87,10 +87,12 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe
@Override @Override
public Action getAction() public Action getAction()
{ {
if (action != null && action.eIsProxy()) { if (action != null && action.eIsProxy())
{
InternalEObject oldAction = (InternalEObject)action; InternalEObject oldAction = (InternalEObject)action;
action = (Action)eResolveProxy(oldAction); action = (Action)eResolveProxy(oldAction);
if (action != oldAction) { if (action != oldAction)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.ACTION_REFERENCE__ACTION, oldAction, action)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.ACTION_REFERENCE__ACTION, oldAction, action));
} }
...@@ -130,7 +132,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe ...@@ -130,7 +132,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe
@Override @Override
public EList<ParameterBinding> getArgument() public EList<ParameterBinding> getArgument()
{ {
if (argument == null) { if (argument == null)
{
argument = new EObjectContainmentEList<ParameterBinding>(ParameterBinding.class, this, tdlPackage.ACTION_REFERENCE__ARGUMENT); argument = new EObjectContainmentEList<ParameterBinding>(ParameterBinding.class, this, tdlPackage.ACTION_REFERENCE__ARGUMENT);
} }
return argument; return argument;
...@@ -144,7 +147,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe ...@@ -144,7 +147,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_REFERENCE__ARGUMENT: case tdlPackage.ACTION_REFERENCE__ARGUMENT:
return ((InternalEList<?>)getArgument()).basicRemove(otherEnd, msgs); return ((InternalEList<?>)getArgument()).basicRemove(otherEnd, msgs);
} }
...@@ -159,7 +163,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe ...@@ -159,7 +163,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_REFERENCE__ACTION: case tdlPackage.ACTION_REFERENCE__ACTION:
if (resolve) return getAction(); if (resolve) return getAction();
return basicGetAction(); return basicGetAction();
...@@ -178,7 +183,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe ...@@ -178,7 +183,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_REFERENCE__ACTION: case tdlPackage.ACTION_REFERENCE__ACTION:
setAction((Action)newValue); setAction((Action)newValue);
return; return;
...@@ -198,7 +204,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe ...@@ -198,7 +204,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_REFERENCE__ACTION: case tdlPackage.ACTION_REFERENCE__ACTION:
setAction((Action)null); setAction((Action)null);
return; return;
...@@ -217,7 +224,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe ...@@ -217,7 +224,8 @@ public class ActionReferenceImpl extends ActionBehaviourImpl implements ActionRe
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ACTION_REFERENCE__ACTION: case tdlPackage.ACTION_REFERENCE__ACTION:
return action != null; return action != null;
case tdlPackage.ACTION_REFERENCE__ARGUMENT: case tdlPackage.ACTION_REFERENCE__ARGUMENT:
......
...@@ -118,10 +118,12 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -118,10 +118,12 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public AnnotationType getKey() public AnnotationType getKey()
{ {
if (key != null && key.eIsProxy()) { if (key != null && key.eIsProxy())
{
InternalEObject oldKey = (InternalEObject)key; InternalEObject oldKey = (InternalEObject)key;
key = (AnnotationType)eResolveProxy(oldKey); key = (AnnotationType)eResolveProxy(oldKey);
if (key != oldKey) { if (key != oldKey)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.ANNOTATION__KEY, oldKey, key)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.ANNOTATION__KEY, oldKey, key));
} }
...@@ -184,7 +186,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -184,7 +186,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public void setAnnotatedElement(Element newAnnotatedElement) public void setAnnotatedElement(Element newAnnotatedElement)
{ {
if (newAnnotatedElement != eInternalContainer() || (eContainerFeatureID() != tdlPackage.ANNOTATION__ANNOTATED_ELEMENT && newAnnotatedElement != null)) { if (newAnnotatedElement != eInternalContainer() || (eContainerFeatureID() != tdlPackage.ANNOTATION__ANNOTATED_ELEMENT && newAnnotatedElement != null))
{
if (EcoreUtil.isAncestor(this, newAnnotatedElement)) if (EcoreUtil.isAncestor(this, newAnnotatedElement))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null; NotificationChain msgs = null;
...@@ -207,7 +210,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -207,7 +210,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION__ANNOTATED_ELEMENT: case tdlPackage.ANNOTATION__ANNOTATED_ELEMENT:
if (eInternalContainer() != null) if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs); msgs = eBasicRemoveFromContainer(msgs);
...@@ -224,7 +228,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -224,7 +228,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION__ANNOTATED_ELEMENT: case tdlPackage.ANNOTATION__ANNOTATED_ELEMENT:
return basicSetAnnotatedElement(null, msgs); return basicSetAnnotatedElement(null, msgs);
} }
...@@ -239,7 +244,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -239,7 +244,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
{ {
switch (eContainerFeatureID()) { switch (eContainerFeatureID())
{
case tdlPackage.ANNOTATION__ANNOTATED_ELEMENT: case tdlPackage.ANNOTATION__ANNOTATED_ELEMENT:
return eInternalContainer().eInverseRemove(this, tdlPackage.ELEMENT__ANNOTATION, Element.class, msgs); return eInternalContainer().eInverseRemove(this, tdlPackage.ELEMENT__ANNOTATION, Element.class, msgs);
} }
...@@ -254,7 +260,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -254,7 +260,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION__VALUE: case tdlPackage.ANNOTATION__VALUE:
return getValue(); return getValue();
case tdlPackage.ANNOTATION__KEY: case tdlPackage.ANNOTATION__KEY:
...@@ -274,7 +281,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -274,7 +281,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION__VALUE: case tdlPackage.ANNOTATION__VALUE:
setValue((String)newValue); setValue((String)newValue);
return; return;
...@@ -296,7 +304,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -296,7 +304,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION__VALUE: case tdlPackage.ANNOTATION__VALUE:
setValue(VALUE_EDEFAULT); setValue(VALUE_EDEFAULT);
return; return;
...@@ -318,7 +327,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation ...@@ -318,7 +327,8 @@ public class AnnotationImpl extends ElementImpl implements Annotation
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION__VALUE: case tdlPackage.ANNOTATION__VALUE:
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
case tdlPackage.ANNOTATION__KEY: case tdlPackage.ANNOTATION__KEY:
......
...@@ -80,7 +80,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota ...@@ -80,7 +80,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota
{ {
Extension oldExtension = extension; Extension oldExtension = extension;
extension = newExtension; extension = newExtension;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ANNOTATION_TYPE__EXTENSION, oldExtension, newExtension); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ANNOTATION_TYPE__EXTENSION, oldExtension, newExtension);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -95,7 +96,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota ...@@ -95,7 +96,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota
@Override @Override
public void setExtension(Extension newExtension) public void setExtension(Extension newExtension)
{ {
if (newExtension != extension) { if (newExtension != extension)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (extension != null) if (extension != null)
msgs = ((InternalEObject)extension).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ANNOTATION_TYPE__EXTENSION, null, msgs); msgs = ((InternalEObject)extension).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ANNOTATION_TYPE__EXTENSION, null, msgs);
...@@ -116,7 +118,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota ...@@ -116,7 +118,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION_TYPE__EXTENSION: case tdlPackage.ANNOTATION_TYPE__EXTENSION:
return basicSetExtension(null, msgs); return basicSetExtension(null, msgs);
} }
...@@ -131,7 +134,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota ...@@ -131,7 +134,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION_TYPE__EXTENSION: case tdlPackage.ANNOTATION_TYPE__EXTENSION:
return getExtension(); return getExtension();
} }
...@@ -146,7 +150,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota ...@@ -146,7 +150,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION_TYPE__EXTENSION: case tdlPackage.ANNOTATION_TYPE__EXTENSION:
setExtension((Extension)newValue); setExtension((Extension)newValue);
return; return;
...@@ -162,7 +167,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota ...@@ -162,7 +167,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION_TYPE__EXTENSION: case tdlPackage.ANNOTATION_TYPE__EXTENSION:
setExtension((Extension)null); setExtension((Extension)null);
return; return;
...@@ -178,7 +184,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota ...@@ -178,7 +184,8 @@ public class AnnotationTypeImpl extends PackageableElementImpl implements Annota
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANNOTATION_TYPE__EXTENSION: case tdlPackage.ANNOTATION_TYPE__EXTENSION:
return extension != null; return extension != null;
} }
......
...@@ -75,10 +75,12 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue ...@@ -75,10 +75,12 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue
@Override @Override
public DataType getDataType() public DataType getDataType()
{ {
if (dataType != null && dataType.eIsProxy()) { if (dataType != null && dataType.eIsProxy())
{
InternalEObject oldDataType = (InternalEObject)dataType; InternalEObject oldDataType = (InternalEObject)dataType;
dataType = (DataType)eResolveProxy(oldDataType); dataType = (DataType)eResolveProxy(oldDataType);
if (dataType != oldDataType) { if (dataType != oldDataType)
{
if (eNotificationRequired()) if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.ANY_VALUE__DATA_TYPE, oldDataType, dataType)); eNotify(new ENotificationImpl(this, Notification.RESOLVE, tdlPackage.ANY_VALUE__DATA_TYPE, oldDataType, dataType));
} }
...@@ -128,10 +130,12 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue ...@@ -128,10 +130,12 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue
@Override @Override
public DataType resolveDataType() public DataType resolveDataType()
{ {
try { try
{
return (DataType)RESOLVE_DATA_TYPE__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (DataType)RESOLVE_DATA_TYPE__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -144,7 +148,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue ...@@ -144,7 +148,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANY_VALUE__DATA_TYPE: case tdlPackage.ANY_VALUE__DATA_TYPE:
if (resolve) return getDataType(); if (resolve) return getDataType();
return basicGetDataType(); return basicGetDataType();
...@@ -160,7 +165,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue ...@@ -160,7 +165,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANY_VALUE__DATA_TYPE: case tdlPackage.ANY_VALUE__DATA_TYPE:
setDataType((DataType)newValue); setDataType((DataType)newValue);
return; return;
...@@ -176,7 +182,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue ...@@ -176,7 +182,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANY_VALUE__DATA_TYPE: case tdlPackage.ANY_VALUE__DATA_TYPE:
setDataType((DataType)null); setDataType((DataType)null);
return; return;
...@@ -192,7 +199,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue ...@@ -192,7 +199,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ANY_VALUE__DATA_TYPE: case tdlPackage.ANY_VALUE__DATA_TYPE:
return dataType != null; return dataType != null;
} }
...@@ -207,14 +215,18 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue ...@@ -207,14 +215,18 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue
@Override @Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) public int eDerivedOperationID(int baseOperationID, Class<?> baseClass)
{ {
if (baseClass == DataUse.class) { if (baseClass == DataUse.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.DATA_USE___RESOLVE_DATA_TYPE: return tdlPackage.ANY_VALUE___RESOLVE_DATA_TYPE; case tdlPackage.DATA_USE___RESOLVE_DATA_TYPE: return tdlPackage.ANY_VALUE___RESOLVE_DATA_TYPE;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
} }
if (baseClass == SpecialValueUse.class) { if (baseClass == SpecialValueUse.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.SPECIAL_VALUE_USE___RESOLVE_DATA_TYPE: return tdlPackage.ANY_VALUE___RESOLVE_DATA_TYPE; case tdlPackage.SPECIAL_VALUE_USE___RESOLVE_DATA_TYPE: return tdlPackage.ANY_VALUE___RESOLVE_DATA_TYPE;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
...@@ -230,7 +242,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue ...@@ -230,7 +242,8 @@ public class AnyValueImpl extends SpecialValueUseImpl implements AnyValue
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.ANY_VALUE___RESOLVE_DATA_TYPE: case tdlPackage.ANY_VALUE___RESOLVE_DATA_TYPE:
return resolveDataType(); return resolveDataType();
} }
......
...@@ -91,7 +91,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -91,7 +91,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
{ {
DataUse oldOtherwise = otherwise; DataUse oldOtherwise = otherwise;
otherwise = newOtherwise; otherwise = newOtherwise;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ASSERTION__OTHERWISE, oldOtherwise, newOtherwise); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ASSERTION__OTHERWISE, oldOtherwise, newOtherwise);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -106,7 +107,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -106,7 +107,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
@Override @Override
public void setOtherwise(DataUse newOtherwise) public void setOtherwise(DataUse newOtherwise)
{ {
if (newOtherwise != otherwise) { if (newOtherwise != otherwise)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (otherwise != null) if (otherwise != null)
msgs = ((InternalEObject)otherwise).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ASSERTION__OTHERWISE, null, msgs); msgs = ((InternalEObject)otherwise).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ASSERTION__OTHERWISE, null, msgs);
...@@ -139,7 +141,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -139,7 +141,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
{ {
DataUse oldCondition = condition; DataUse oldCondition = condition;
condition = newCondition; condition = newCondition;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ASSERTION__CONDITION, oldCondition, newCondition); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ASSERTION__CONDITION, oldCondition, newCondition);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -154,7 +157,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -154,7 +157,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
@Override @Override
public void setCondition(DataUse newCondition) public void setCondition(DataUse newCondition)
{ {
if (newCondition != condition) { if (newCondition != condition)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (condition != null) if (condition != null)
msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ASSERTION__CONDITION, null, msgs); msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ASSERTION__CONDITION, null, msgs);
...@@ -175,7 +179,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -175,7 +179,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSERTION__OTHERWISE: case tdlPackage.ASSERTION__OTHERWISE:
return basicSetOtherwise(null, msgs); return basicSetOtherwise(null, msgs);
case tdlPackage.ASSERTION__CONDITION: case tdlPackage.ASSERTION__CONDITION:
...@@ -192,7 +197,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -192,7 +197,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSERTION__OTHERWISE: case tdlPackage.ASSERTION__OTHERWISE:
return getOtherwise(); return getOtherwise();
case tdlPackage.ASSERTION__CONDITION: case tdlPackage.ASSERTION__CONDITION:
...@@ -209,7 +215,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -209,7 +215,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSERTION__OTHERWISE: case tdlPackage.ASSERTION__OTHERWISE:
setOtherwise((DataUse)newValue); setOtherwise((DataUse)newValue);
return; return;
...@@ -228,7 +235,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -228,7 +235,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSERTION__OTHERWISE: case tdlPackage.ASSERTION__OTHERWISE:
setOtherwise((DataUse)null); setOtherwise((DataUse)null);
return; return;
...@@ -247,7 +255,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion ...@@ -247,7 +255,8 @@ public class AssertionImpl extends ActionBehaviourImpl implements Assertion
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSERTION__OTHERWISE: case tdlPackage.ASSERTION__OTHERWISE:
return otherwise != null; return otherwise != null;
case tdlPackage.ASSERTION__CONDITION: case tdlPackage.ASSERTION__CONDITION:
......
...@@ -101,7 +101,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -101,7 +101,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
{ {
VariableUse oldVariable = variable; VariableUse oldVariable = variable;
variable = newVariable; variable = newVariable;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ASSIGNMENT__VARIABLE, oldVariable, newVariable); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ASSIGNMENT__VARIABLE, oldVariable, newVariable);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -116,7 +117,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -116,7 +117,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public void setVariable(VariableUse newVariable) public void setVariable(VariableUse newVariable)
{ {
if (newVariable != variable) { if (newVariable != variable)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (variable != null) if (variable != null)
msgs = ((InternalEObject)variable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ASSIGNMENT__VARIABLE, null, msgs); msgs = ((InternalEObject)variable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ASSIGNMENT__VARIABLE, null, msgs);
...@@ -149,7 +151,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -149,7 +151,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
{ {
DataUse oldExpression = expression; DataUse oldExpression = expression;
expression = newExpression; expression = newExpression;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ASSIGNMENT__EXPRESSION, oldExpression, newExpression); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ASSIGNMENT__EXPRESSION, oldExpression, newExpression);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -164,7 +167,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -164,7 +167,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public void setExpression(DataUse newExpression) public void setExpression(DataUse newExpression)
{ {
if (newExpression != expression) { if (newExpression != expression)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (expression != null) if (expression != null)
msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ASSIGNMENT__EXPRESSION, null, msgs); msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ASSIGNMENT__EXPRESSION, null, msgs);
...@@ -196,10 +200,12 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -196,10 +200,12 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public EList<ComponentInstance> getParticipatingComponents() public EList<ComponentInstance> getParticipatingComponents()
{ {
try { try
{
return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -212,7 +218,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -212,7 +218,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSIGNMENT__VARIABLE: case tdlPackage.ASSIGNMENT__VARIABLE:
return basicSetVariable(null, msgs); return basicSetVariable(null, msgs);
case tdlPackage.ASSIGNMENT__EXPRESSION: case tdlPackage.ASSIGNMENT__EXPRESSION:
...@@ -229,7 +236,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -229,7 +236,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSIGNMENT__VARIABLE: case tdlPackage.ASSIGNMENT__VARIABLE:
return getVariable(); return getVariable();
case tdlPackage.ASSIGNMENT__EXPRESSION: case tdlPackage.ASSIGNMENT__EXPRESSION:
...@@ -246,7 +254,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -246,7 +254,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSIGNMENT__VARIABLE: case tdlPackage.ASSIGNMENT__VARIABLE:
setVariable((VariableUse)newValue); setVariable((VariableUse)newValue);
return; return;
...@@ -265,7 +274,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -265,7 +274,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSIGNMENT__VARIABLE: case tdlPackage.ASSIGNMENT__VARIABLE:
setVariable((VariableUse)null); setVariable((VariableUse)null);
return; return;
...@@ -284,7 +294,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -284,7 +294,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ASSIGNMENT__VARIABLE: case tdlPackage.ASSIGNMENT__VARIABLE:
return variable != null; return variable != null;
case tdlPackage.ASSIGNMENT__EXPRESSION: case tdlPackage.ASSIGNMENT__EXPRESSION:
...@@ -301,14 +312,18 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -301,14 +312,18 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) public int eDerivedOperationID(int baseOperationID, Class<?> baseClass)
{ {
if (baseClass == Behaviour.class) { if (baseClass == Behaviour.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ASSIGNMENT___GET_PARTICIPATING_COMPONENTS; case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ASSIGNMENT___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
} }
if (baseClass == AtomicBehaviour.class) { if (baseClass == AtomicBehaviour.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ASSIGNMENT___GET_PARTICIPATING_COMPONENTS; case tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ASSIGNMENT___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
...@@ -324,7 +339,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment ...@@ -324,7 +339,8 @@ public class AssignmentImpl extends AtomicBehaviourImpl implements Assignment
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.ASSIGNMENT___GET_PARTICIPATING_COMPONENTS: case tdlPackage.ASSIGNMENT___GET_PARTICIPATING_COMPONENTS:
return getParticipatingComponents(); return getParticipatingComponents();
} }
......
...@@ -93,7 +93,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -93,7 +93,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public EList<TimeConstraint> getTimeConstraint() public EList<TimeConstraint> getTimeConstraint()
{ {
if (timeConstraint == null) { if (timeConstraint == null)
{
timeConstraint = new EObjectContainmentEList<TimeConstraint>(TimeConstraint.class, this, tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT); timeConstraint = new EObjectContainmentEList<TimeConstraint>(TimeConstraint.class, this, tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT);
} }
return timeConstraint; return timeConstraint;
...@@ -119,7 +120,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -119,7 +120,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
{ {
TimeLabel oldTimeLabel = timeLabel; TimeLabel oldTimeLabel = timeLabel;
timeLabel = newTimeLabel; timeLabel = newTimeLabel;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL, oldTimeLabel, newTimeLabel); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL, oldTimeLabel, newTimeLabel);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -134,7 +136,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -134,7 +136,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public void setTimeLabel(TimeLabel newTimeLabel) public void setTimeLabel(TimeLabel newTimeLabel)
{ {
if (newTimeLabel != timeLabel) { if (newTimeLabel != timeLabel)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (timeLabel != null) if (timeLabel != null)
msgs = ((InternalEObject)timeLabel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL, null, msgs); msgs = ((InternalEObject)timeLabel).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL, null, msgs);
...@@ -166,10 +169,12 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -166,10 +169,12 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public EList<ComponentInstance> getParticipatingComponents() public EList<ComponentInstance> getParticipatingComponents()
{ {
try { try
{
return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -182,7 +187,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -182,7 +187,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT: case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT:
return ((InternalEList<?>)getTimeConstraint()).basicRemove(otherEnd, msgs); return ((InternalEList<?>)getTimeConstraint()).basicRemove(otherEnd, msgs);
case tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL: case tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL:
...@@ -199,7 +205,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -199,7 +205,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT: case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT:
return getTimeConstraint(); return getTimeConstraint();
case tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL: case tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL:
...@@ -217,7 +224,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -217,7 +224,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT: case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT:
getTimeConstraint().clear(); getTimeConstraint().clear();
getTimeConstraint().addAll((Collection<? extends TimeConstraint>)newValue); getTimeConstraint().addAll((Collection<? extends TimeConstraint>)newValue);
...@@ -237,7 +245,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -237,7 +245,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT: case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT:
getTimeConstraint().clear(); getTimeConstraint().clear();
return; return;
...@@ -256,7 +265,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -256,7 +265,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT: case tdlPackage.ATOMIC_BEHAVIOUR__TIME_CONSTRAINT:
return timeConstraint != null && !timeConstraint.isEmpty(); return timeConstraint != null && !timeConstraint.isEmpty();
case tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL: case tdlPackage.ATOMIC_BEHAVIOUR__TIME_LABEL:
...@@ -273,8 +283,10 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -273,8 +283,10 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public int eDerivedOperationID(int baseOperationID, Class<?> baseClass) public int eDerivedOperationID(int baseOperationID, Class<?> baseClass)
{ {
if (baseClass == Behaviour.class) { if (baseClass == Behaviour.class)
switch (baseOperationID) { {
switch (baseOperationID)
{
case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS; case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: return tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS;
default: return super.eDerivedOperationID(baseOperationID, baseClass); default: return super.eDerivedOperationID(baseOperationID, baseClass);
} }
...@@ -290,7 +302,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi ...@@ -290,7 +302,8 @@ public abstract class AtomicBehaviourImpl extends BehaviourImpl implements Atomi
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: case tdlPackage.ATOMIC_BEHAVIOUR___GET_PARTICIPATING_COMPONENTS:
return getParticipatingComponents(); return getParticipatingComponents();
} }
......
...@@ -80,7 +80,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe ...@@ -80,7 +80,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe
{ {
Behaviour oldBehaviour = behaviour; Behaviour oldBehaviour = behaviour;
behaviour = newBehaviour; behaviour = newBehaviour;
if (eNotificationRequired()) { if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR, oldBehaviour, newBehaviour); ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR, oldBehaviour, newBehaviour);
if (msgs == null) msgs = notification; else msgs.add(notification); if (msgs == null) msgs = notification; else msgs.add(notification);
} }
...@@ -95,7 +96,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe ...@@ -95,7 +96,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe
@Override @Override
public void setBehaviour(Behaviour newBehaviour) public void setBehaviour(Behaviour newBehaviour)
{ {
if (newBehaviour != behaviour) { if (newBehaviour != behaviour)
{
NotificationChain msgs = null; NotificationChain msgs = null;
if (behaviour != null) if (behaviour != null)
msgs = ((InternalEObject)behaviour).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR, null, msgs); msgs = ((InternalEObject)behaviour).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR, null, msgs);
...@@ -116,7 +118,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe ...@@ -116,7 +118,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe
@Override @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR: case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR:
return basicSetBehaviour(null, msgs); return basicSetBehaviour(null, msgs);
} }
...@@ -131,7 +134,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe ...@@ -131,7 +134,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR: case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR:
return getBehaviour(); return getBehaviour();
} }
...@@ -146,7 +150,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe ...@@ -146,7 +150,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR: case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR:
setBehaviour((Behaviour)newValue); setBehaviour((Behaviour)newValue);
return; return;
...@@ -162,7 +167,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe ...@@ -162,7 +167,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR: case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR:
setBehaviour((Behaviour)null); setBehaviour((Behaviour)null);
return; return;
...@@ -178,7 +184,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe ...@@ -178,7 +184,8 @@ public class BehaviourDescriptionImpl extends ElementImpl implements BehaviourDe
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR: case tdlPackage.BEHAVIOUR_DESCRIPTION__BEHAVIOUR:
return behaviour != null; return behaviour != null;
} }
......
...@@ -73,7 +73,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour ...@@ -73,7 +73,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour
@Override @Override
public EList<TestObjective> getTestObjective() public EList<TestObjective> getTestObjective()
{ {
if (testObjective == null) { if (testObjective == null)
{
testObjective = new EObjectResolvingEList<TestObjective>(TestObjective.class, this, tdlPackage.BEHAVIOUR__TEST_OBJECTIVE); testObjective = new EObjectResolvingEList<TestObjective>(TestObjective.class, this, tdlPackage.BEHAVIOUR__TEST_OBJECTIVE);
} }
return testObjective; return testObjective;
...@@ -97,10 +98,12 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour ...@@ -97,10 +98,12 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour
@Override @Override
public Boolean isTesterInputEvent() public Boolean isTesterInputEvent()
{ {
try { try
{
return (Boolean)IS_TESTER_INPUT_EVENT__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (Boolean)IS_TESTER_INPUT_EVENT__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -124,10 +127,12 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour ...@@ -124,10 +127,12 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour
@Override @Override
public EList<ComponentInstance> getParticipatingComponents() public EList<ComponentInstance> getParticipatingComponents()
{ {
try { try
{
return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null); return (EList<ComponentInstance>)GET_PARTICIPATING_COMPONENTS__EINVOCATION_DELEGATE.dynamicInvoke(this, null);
} }
catch (InvocationTargetException ite) { catch (InvocationTargetException ite)
{
throw new WrappedException(ite); throw new WrappedException(ite);
} }
} }
...@@ -140,7 +145,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour ...@@ -140,7 +145,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour
@Override @Override
public Object eGet(int featureID, boolean resolve, boolean coreType) public Object eGet(int featureID, boolean resolve, boolean coreType)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR__TEST_OBJECTIVE: case tdlPackage.BEHAVIOUR__TEST_OBJECTIVE:
return getTestObjective(); return getTestObjective();
} }
...@@ -156,7 +162,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour ...@@ -156,7 +162,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour
@Override @Override
public void eSet(int featureID, Object newValue) public void eSet(int featureID, Object newValue)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR__TEST_OBJECTIVE: case tdlPackage.BEHAVIOUR__TEST_OBJECTIVE:
getTestObjective().clear(); getTestObjective().clear();
getTestObjective().addAll((Collection<? extends TestObjective>)newValue); getTestObjective().addAll((Collection<? extends TestObjective>)newValue);
...@@ -173,7 +180,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour ...@@ -173,7 +180,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour
@Override @Override
public void eUnset(int featureID) public void eUnset(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR__TEST_OBJECTIVE: case tdlPackage.BEHAVIOUR__TEST_OBJECTIVE:
getTestObjective().clear(); getTestObjective().clear();
return; return;
...@@ -189,7 +197,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour ...@@ -189,7 +197,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour
@Override @Override
public boolean eIsSet(int featureID) public boolean eIsSet(int featureID)
{ {
switch (featureID) { switch (featureID)
{
case tdlPackage.BEHAVIOUR__TEST_OBJECTIVE: case tdlPackage.BEHAVIOUR__TEST_OBJECTIVE:
return testObjective != null && !testObjective.isEmpty(); return testObjective != null && !testObjective.isEmpty();
} }
...@@ -204,7 +213,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour ...@@ -204,7 +213,8 @@ public abstract class BehaviourImpl extends ElementImpl implements Behaviour
@Override @Override
public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException
{ {
switch (operationID) { switch (operationID)
{
case tdlPackage.BEHAVIOUR___IS_TESTER_INPUT_EVENT: case tdlPackage.BEHAVIOUR___IS_TESTER_INPUT_EVENT:
return isTesterInputEvent(); return isTesterInputEvent();
case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS: case tdlPackage.BEHAVIOUR___GET_PARTICIPATING_COMPONENTS:
......