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