Commit 24c48b53 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ generated sources (should start to ignore them)

parent 00a0d16e
Loading
Loading
Loading
Loading
+6 −12
Original line number Diff line number Diff line
@@ -68,8 +68,7 @@ public enum ComponentInstanceRole implements Enumerator
	 * @generated
	 */
	private static final ComponentInstanceRole[] VALUES_ARRAY =
		new ComponentInstanceRole[]
		{
		new ComponentInstanceRole[] {
			SUT,
			TESTER,
		};
@@ -92,11 +91,9 @@ 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;
			}
		}
@@ -113,11 +110,9 @@ 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;
			}
		}
@@ -134,8 +129,7 @@ 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;
		}
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ public interface DataElementUse extends DataUse
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n                if (not self.dataElement.oclIsUndefined()) then\n                    if (self.dataElement.oclIsKindOf(DataType)) then\n                        self.dataElement.oclAsType(DataType)\n                    else\n                        if (self.dataElement.oclIsKindOf(DataInstance)) then\n                            self.dataElement.oclAsType(DataInstance).dataType\n                        else \n                            if (self.dataElement.oclIsTypeOf(FormalParameter)) then\n                                self.dataElement.oclAsType(FormalParameter).dataType\n                            else \n                                if (self.dataElement.oclIsTypeOf(Function)) then\n                                    self.dataElement.oclAsType(Function).returnType\n                                else\n                                    null\n                                endif\n                            endif \n                        endif\n                    endif\n                else \n                    if (self.container().oclIsTypeOf(MemberAssignment)) then\n                        self.container().oclAsType(MemberAssignment).member.dataType\n                    else \n                        if (self.container().oclIsTypeOf(ParameterBinding)) then\n                            self.container().oclAsType(ParameterBinding).parameter.dataType\n                        else\n                            if (self.container().oclIsTypeOf(CollectionDataInstance)) then\n                                self.container().oclAsType(CollectionDataInstance).dataType.oclAsType(CollectionDataType).itemType\n                            else\n                                if (self.container().oclIsTypeOf(DataElementUse)) then\n                                    self.container().oclAsType(DataElementUse).resolveDataType().oclAsType(CollectionDataType).itemType\n                                else\n                                    if (self.container().oclIsTypeOf(DataInstanceUse)) then\n                                        self.container().oclAsType(DataInstanceUse).resolveDataType().oclAsType(CollectionDataType).itemType\n                                    else\n                                        null\n                                    endif\n                                endif\n                            endif\n                        endif\n                    endif\n                endif\n                '"
	 * @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n                if (not self.dataElement.oclIsUndefined()) then\n                    if (self.dataElement.oclIsKindOf(DataType)) then\n                        self.dataElement.oclAsType(DataType)\n                    else\n                        if (self.dataElement.oclIsKindOf(DataInstance)) then\n                            self.dataElement.oclAsType(DataInstance).dataType\n                        else \n                            if (self.dataElement.oclIsTypeOf(FormalParameter)) then\n                                self.dataElement.oclAsType(FormalParameter).dataType\n                            else \n                                if (self.dataElement.oclIsTypeOf(Function)) then\n                                    self.dataElement.oclAsType(Function).returnType\n                                else\n                                    null\n                                endif\n                            endif \n                        endif\n                    endif\n                else \n                    if (self.container().oclIsTypeOf(MemberAssignment)) then\n                        self.container().oclAsType(MemberAssignment).member.dataType\n                    else \n                        if (self.container().oclIsTypeOf(ParameterBinding)) then\n                        \tself.container().oclAsType(ParameterBinding).resolveParameterType()\n                        else\n                            if (self.container().oclIsTypeOf(CollectionDataInstance)) then\n                                self.container().oclAsType(CollectionDataInstance).dataType.oclAsType(CollectionDataType).itemType\n                            else\n                                if (self.container().oclIsTypeOf(DataElementUse)) then\n                                    self.container().oclAsType(DataElementUse).resolveDataType().oclAsType(CollectionDataType).itemType\n                                else\n                                    if (self.container().oclIsTypeOf(DataInstanceUse)) then\n                                        self.container().oclAsType(DataInstanceUse).resolveDataType().oclAsType(CollectionDataType).itemType\n                                    else\n                                        null\n                                    endif\n                                endif\n                            endif\n                        endif\n                    endif\n                endif\n                '"
	 * @generated
	 */
	DataType resolveDataType();
+6 −12
Original line number Diff line number Diff line
@@ -68,8 +68,7 @@ public enum GateTypeKind implements Enumerator
	 * @generated
	 */
	private static final GateTypeKind[] VALUES_ARRAY =
		new GateTypeKind[]
		{
		new GateTypeKind[] {
			MESSAGE,
			PROCEDURE,
		};
@@ -92,11 +91,9 @@ 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;
			}
		}
@@ -113,11 +110,9 @@ 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;
			}
		}
@@ -134,8 +129,7 @@ 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;
		}
+22 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
 */
package org.etsi.mts.tdl;

import org.eclipse.emf.common.util.EList;

/**
 * <!-- begin-user-doc -->
@@ -14,6 +15,7 @@ package org.etsi.mts.tdl;
 * <ul>
 *   <li>{@link org.etsi.mts.tdl.ParameterBinding#getDataUse <em>Data Use</em>}</li>
 *   <li>{@link org.etsi.mts.tdl.ParameterBinding#getParameter <em>Parameter</em>}</li>
 *   <li>{@link org.etsi.mts.tdl.ParameterBinding#getReduction <em>Reduction</em>}</li>
 * </ul>
 *
 * @see org.etsi.mts.tdl.tdlPackage#getParameterBinding()
@@ -66,4 +68,24 @@ public interface ParameterBinding extends Element
	 */
	void setParameter(Parameter value);

	/**
	 * Returns the value of the '<em><b>Reduction</b></em>' containment reference list.
	 * The list contents are of type {@link org.etsi.mts.tdl.MemberReference}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Reduction</em>' containment reference list.
	 * @see org.etsi.mts.tdl.tdlPackage#getParameterBinding_Reduction()
	 * @model containment="true"
	 * @generated
	 */
	EList<MemberReference> getReduction();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\t\t\t\n\t            \tif (self.reduction-&gt;isEmpty()) then\n\t                \tself.parameter.dataType\n\t            \telse \n\t            \t\tif (self.reduction-&gt;last().member.oclIsUndefined()) then\n\t            \t\t\tif (self.reduction-&gt;last().collectionIndex.oclIsUndefined()) then\n\t                \t\t\tself.parameter.dataType\n\t            \t\t\telse\n\t            \t\t\t\tself.parameter.dataType.oclAsType(CollectionDataType).itemType\n\t            \t\t\tendif \n\t            \t\telse \n\t                \t\tself.reduction-&gt;last().member.dataType\n\t            \t\tendif\n\t                endif\n\t                '"
	 * @generated
	 */
	DataType resolveParameterType();

} // ParameterBinding
+6 −12
Original line number Diff line number Diff line
@@ -89,8 +89,7 @@ public enum ParameterKind implements Enumerator
	 * @generated
	 */
	private static final ParameterKind[] VALUES_ARRAY =
		new ParameterKind[]
		{
		new ParameterKind[] {
			IN,
			OUT,
			EXCEPTION,
@@ -114,11 +113,9 @@ 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;
			}
		}
@@ -135,11 +132,9 @@ 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;
			}
		}
@@ -156,8 +151,7 @@ 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;
Loading