Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2016-10-13 13:01:51 +0000
committerEd Willink2016-10-13 15:19:19 +0000
commit808691f999c7c76f157e29d0a865e7dfcfec6839 (patch)
tree53f28152bdabbb122b70748f6801067328821b41
parent1b924b71e2ef31114e5ad6c78428b816cb946a3d (diff)
downloadorg.eclipse.qvtd-808691f999c7c76f157e29d0a865e7dfcfec6839.tar.gz
org.eclipse.qvtd-808691f999c7c76f157e29d0a865e7dfcfec6839.tar.xz
org.eclipse.qvtd-808691f999c7c76f157e29d0a865e7dfcfec6839.zip
[500254] Use where rather than when for optional corrolary
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/Forward2Reverse.java296
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReverseFactory.java15
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReversePackage.java176
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Telement2element.java1
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Tlist2list.java58
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/TlistHead2listHead.java (renamed from tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/TemptyList2emptyList.java)73
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReverseFactoryImpl.java15
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReversePackageImpl.java93
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Telement2elementImpl.java2
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Tlist2listImpl.java127
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/TlistHead2listHeadImpl.java (renamed from tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/TemptyList2emptyListImpl.java)177
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseAdapterFactory.java20
-rw-r--r--tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseSwitch.java24
-rw-r--r--tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/forward2reverse/Forward2Reverse.qvtr21
14 files changed, 474 insertions, 624 deletions
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/Forward2Reverse.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/Forward2Reverse.java
index 035490316..69baaea87 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/Forward2Reverse.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/Forward2Reverse.java
@@ -11,6 +11,7 @@ package org.eclipse.qvtd.doc.exe2016.tests.qvtr;
import java.util.HashMap;
import java.util.Map;
+
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.evaluation.Executor;
import org.eclipse.ocl.pivot.ids.ClassId;
@@ -23,6 +24,7 @@ import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2Reverse
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Telement2element;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list;
+import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.DoublyLinkedList;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.doublylinkedlistFactory;
@@ -53,8 +55,8 @@ public class Forward2Reverse extends AbstractTransformer
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Element = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_s_xtext_s_qvtrelation_s_tests_s_forward2reverse_s_1_0_s_DoublyLinkList.getClassId("Element", 0);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Model = PACKid_http_c_s_s_www_eclipse_org_s_qvt_s_2015_s_QVTbaseLibrary.getClassId("Model", 0);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Telement2element = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_m_example_s_org_s_eclipse_s_qvtd_s_xtext_s_qvtrelation2_s_tests_s_forward2reverse_s_Forward2Reverse.getClassId("Telement2element", 0);
- public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_TemptyList2emptyList = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_m_example_s_org_s_eclipse_s_qvtd_s_xtext_s_qvtrelation2_s_tests_s_forward2reverse_s_Forward2Reverse.getClassId("TemptyList2emptyList", 0);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_Tlist2list = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_m_example_s_org_s_eclipse_s_qvtd_s_xtext_s_qvtrelation2_s_tests_s_forward2reverse_s_Forward2Reverse.getClassId("Tlist2list", 0);
+ public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull ClassId CLSSid_TlistHead2listHead = PACKid_http_c_s_s_www_eclipse_org_s_qvtd_m_example_s_org_s_eclipse_s_qvtd_s_xtext_s_qvtrelation2_s_tests_s_forward2reverse_s_Forward2Reverse.getClassId("TlistHead2listHead", 0);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull CollectionTypeId SET_CLSSid_DoublyLinkedList = TypeId.SET.getSpecializedId(CLSSid_DoublyLinkedList);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull CollectionTypeId SET_CLSSid_Element = TypeId.SET.getSpecializedId(CLSSid_Element);
public static final /*@NonInvalid*/ org.eclipse.ocl.pivot.ids.@org.eclipse.jdt.annotation.NonNull CollectionTypeId SET_CLSSid_Telement2element = TypeId.SET.getSpecializedId(CLSSid_Telement2element);
@@ -68,6 +70,7 @@ public class Forward2Reverse extends AbstractTransformer
protected final @NonNull Map<Element,Telement2element> OPPOSITE_OF_Telement2element_forwardElement = new HashMap<Element,Telement2element>();
protected final @NonNull Map<Element,Telement2element> OPPOSITE_OF_Telement2element_forwardTarget = new HashMap<Element,Telement2element>();
protected final @NonNull Map<DoublyLinkedList,Tlist2list> OPPOSITE_OF_Tlist2list_forwardList = new HashMap<DoublyLinkedList,Tlist2list>();
+ protected final @NonNull Map<DoublyLinkedList,TlistHead2listHead> OPPOSITE_OF_TlistHead2listHead_forwardList = new HashMap<DoublyLinkedList,TlistHead2listHead>();
/*
* Array of the ClassIds of each class for which allInstances() may be invoked. Array index is the ClassIndex.
@@ -88,6 +91,7 @@ public class Forward2Reverse extends AbstractTransformer
{1} // 1 : Element -> {Element}
};
+
public Forward2Reverse(final @NonNull Executor executor) {
super(executor, new @NonNull String[] {"middle", "forward", "reverse"}, null, classIndex2classId, classIndex2allClassIndexes);
}
@@ -106,38 +110,34 @@ public class Forward2Reverse extends AbstractTransformer
* ::ji_DoublyLinkedList : Set(doublylinkedlist::DoublyLinkedList)[*|1]var _'\u00ABElement\u00BB' : Set(doublylinkedlist::Element) := forward.objectsOfKind(doublylinkedlist::Element)
* ;
* ::ji_Element : Set(doublylinkedlist::Element)[*|1]::jm_Telement2element : Set(PForward2Reverse::Telement2element)[*|1]::jm_Tlist2list : Set(PForward2Reverse::Tlist2list)[*|1]for loop0 : doublylinkedlist::DoublyLinkedList[1] in ji_DoublyLinkedList {
- * call _'m_TemptyList2emptyList_DoublyLinkedList.r0' {
+ * call _'m_TlistHead2listHead_DoublyLinkedList.p0' {
+ * forwardList iterates loop0 : doublylinkedlist::DoublyLinkedList[1];
+ * }}
+ * for loop0 : doublylinkedlist::DoublyLinkedList[1] in ji_DoublyLinkedList {
+ * call _'m_Tlist2list_DoublyLinkedList.r0' {
* forwardList iterates loop0 : doublylinkedlist::DoublyLinkedList[1];
+ * jm_Tlist2list appendsTo jm_Tlist2list;
* }}
* for loop0 : doublylinkedlist::Element[1] in ji_Element {
* call _'m_Telement2element_Element.p0' {
* forwardElement iterates loop0 : doublylinkedlist::Element[1];
* jm_Telement2element appendsTo jm_Telement2element;
* }}
- * for loop0 : doublylinkedlist::DoublyLinkedList[1] in ji_DoublyLinkedList {
- * call _'m_Tlist2list_DoublyLinkedList.p0' {
- * forwardList iterates loop0 : doublylinkedlist::DoublyLinkedList[1];
- * jm_Tlist2list appendsTo jm_Tlist2list;
- * }}
* for loop0 : PForward2Reverse::Telement2element[1] in jm_Telement2element {
* call _'m_Telement2element_Element.p1' {
* trace iterates loop0 : PForward2Reverse::Telement2element[1];
* }}
- * for loop0 : doublylinkedlist::Element[1] in ji_Element {
- * call _'m_Telement2element_Element.p3' {
- * forwardTarget iterates loop0 : doublylinkedlist::Element[1];
- * }}
- * for loop0 : PForward2Reverse::Tlist2list[1] in jm_Tlist2list {
- * call _'m_Tlist2list_DoublyLinkedList.p1' {
- * trace iterates loop0 : PForward2Reverse::Tlist2list[1];
- * }}
* for loop0 : PForward2Reverse::Telement2element[1] in jm_Telement2element {
* call _'m_Telement2element_Element.p2' {
* trace iterates loop0 : PForward2Reverse::Telement2element[1];
* }}
+ * for loop0 : doublylinkedlist::Element[1] in ji_Element {
+ * call _'m_Telement2element_Element.p3' {
+ * forwardTarget iterates loop0 : doublylinkedlist::Element[1];
+ * }}
* for loop0 : PForward2Reverse::Tlist2list[1] in jm_Tlist2list {
- * call _'m_Tlist2list_DoublyLinkedList.p2' {
- * trace iterates loop0 : PForward2Reverse::Tlist2list[1];
+ * call _'m_TlistHead2listHead_DoublyLinkedList.p1' {
+ * from_Tlist2list iterates loop0 : PForward2Reverse::Tlist2list[1];
* }}
*/
protected boolean MAP___root__() {
@@ -160,28 +160,25 @@ public class Forward2Reverse extends AbstractTransformer
final SetValue.@NonNull Accumulator jm_Tlist2list_1 = createUnenforcedSetAccumulatorValue(SET_CLSSid_Tlist2list);
// mapping statements
for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList loop0 : ValueUtil.typedIterable(DoublyLinkedList.class, ji_DoublyLinkedList)) {
- MAP_m_TemptyList2emptyList_DoublyLinkedList_46r0(loop0);
+ MAP_m_TlistHead2listHead_DoublyLinkedList_46p0(loop0);
}
- for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element loop0_0 : ValueUtil.typedIterable(Element.class, ji_Element)) {
- MAP_m_Telement2element_Element_46p0(loop0_0, jm_Telement2element_1);
+ for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList loop0_0 : ValueUtil.typedIterable(DoublyLinkedList.class, ji_DoublyLinkedList)) {
+ MAP_m_Tlist2list_DoublyLinkedList_46r0(loop0_0, jm_Tlist2list_1);
}
- for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList loop0_1 : ValueUtil.typedIterable(DoublyLinkedList.class, ji_DoublyLinkedList)) {
- MAP_m_Tlist2list_DoublyLinkedList_46p0(loop0_1, jm_Tlist2list_1);
+ for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element loop0_1 : ValueUtil.typedIterable(Element.class, ji_Element)) {
+ MAP_m_Telement2element_Element_46p0(loop0_1, jm_Telement2element_1);
}
for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Telement2element loop0_2 : ValueUtil.typedIterable(Telement2element.class, jm_Telement2element_1)) {
MAP_m_Telement2element_Element_46p1(loop0_2);
}
- for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element loop0_3 : ValueUtil.typedIterable(Element.class, ji_Element)) {
- MAP_m_Telement2element_Element_46p3(loop0_3);
- }
- for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Tlist2list loop0_4 : ValueUtil.typedIterable(Tlist2list.class, jm_Tlist2list_1)) {
- MAP_m_Tlist2list_DoublyLinkedList_46p1(loop0_4);
+ for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Telement2element loop0_3 : ValueUtil.typedIterable(Telement2element.class, jm_Telement2element_1)) {
+ MAP_m_Telement2element_Element_46p2(loop0_3);
}
- for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Telement2element loop0_5 : ValueUtil.typedIterable(Telement2element.class, jm_Telement2element_1)) {
- MAP_m_Telement2element_Element_46p2(loop0_5);
+ for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element loop0_4 : ValueUtil.typedIterable(Element.class, ji_Element)) {
+ MAP_m_Telement2element_Element_46p3(loop0_4);
}
- for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Tlist2list loop0_6 : ValueUtil.typedIterable(Tlist2list.class, jm_Tlist2list_1)) {
- MAP_m_Tlist2list_DoublyLinkedList_46p2(loop0_6);
+ for (org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Tlist2list loop0_5 : ValueUtil.typedIterable(Tlist2list.class, jm_Tlist2list_1)) {
+ MAP_m_TlistHead2listHead_DoublyLinkedList_46p1(loop0_5);
}
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean __root__ = ValueUtil.TRUE_VALUE;
return __root__;
@@ -215,17 +212,17 @@ public class Forward2Reverse extends AbstractTransformer
@SuppressWarnings("null")
final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element target = forwardElement.getTarget();
// creations
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable Telement2element trace_3 = PForward2ReverseFactory.eINSTANCE.createTelement2element();
- assert trace_3 != null;
- models[0/*middle*/].add(trace_3);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable Telement2element trace_1 = PForward2ReverseFactory.eINSTANCE.createTelement2element();
+ assert trace_1 != null;
+ models[0/*middle*/].add(trace_1);
// mapping statements
- OPPOSITE_OF_Telement2element_forwardElement.put(forwardElement, trace_3);
- trace_3.setForwardElement(forwardElement);
- trace_3.setElementName(name);
- trace_3.setForwardList(list);
- OPPOSITE_OF_Telement2element_forwardTarget.put(target, trace_3);
- trace_3.setForwardTarget(target);
- jm_Telement2element.add(trace_3);
+ OPPOSITE_OF_Telement2element_forwardElement.put(forwardElement, trace_1);
+ trace_1.setForwardElement(forwardElement);
+ trace_1.setElementName(name);
+ trace_1.setForwardList(list);
+ OPPOSITE_OF_Telement2element_forwardTarget.put(target, trace_1);
+ trace_1.setForwardTarget(target);
+ jm_Telement2element.add(trace_1);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_Telement2element_Element_p0 = ValueUtil.TRUE_VALUE;
return m_Telement2element_Element_p0;
} catch (Throwable e) {
@@ -301,8 +298,8 @@ public class Forward2Reverse extends AbstractTransformer
* var reverseElement : doublylinkedlist::Element[1] := trace.reverseElement;
* var when_Tlist2list : PForward2Reverse::Tlist2list[1] := forwardList.Tlist2list;
* var reverseList : doublylinkedlist::DoublyLinkedList[1] := when_Tlist2list.reverseList;
- * set reverseElement.list := reverseList;
* set trace.reverseList := reverseList;
+ * set reverseElement.list := reverseList;
*
*/
protected boolean MAP_m_Telement2element_Element_46p2(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Telement2element trace_0) {
@@ -321,8 +318,8 @@ public class Forward2Reverse extends AbstractTransformer
@SuppressWarnings("null")
final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList reverseList = Tlist2list.getReverseList();
// mapping statements
- reverseElement.setList(reverseList);
trace_0.setReverseList(reverseList);
+ reverseElement.setList(reverseList);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_Telement2element_Element_p2 = ValueUtil.TRUE_VALUE;
raw_when_Tlist2list = m_Telement2element_Element_p2;
}
@@ -343,8 +340,8 @@ public class Forward2Reverse extends AbstractTransformer
* var when_Telement2element : PForward2Reverse::Telement2element[1] := forwardTarget.Telement2element;
* var reverseElement : doublylinkedlist::Element[1] := trace.reverseElement;
* var reverseSource : doublylinkedlist::Element[1] := when_Telement2element.reverseElement;
- * set trace.reverseSource := reverseSource;
* set reverseElement.source := reverseSource;
+ * set trace.reverseSource := reverseSource;
*
*/
protected boolean MAP_m_Telement2element_Element_46p3(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element forwardTarget) {
@@ -368,8 +365,8 @@ public class Forward2Reverse extends AbstractTransformer
@SuppressWarnings("null")
final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element reverseElement_0 = Telement2element_0.getReverseElement();
// mapping statements
- Telement2element.setReverseSource(reverseElement_0);
reverseElement.setSource(reverseElement_0);
+ Telement2element.setReverseSource(reverseElement_0);
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_Telement2element_Element_p3 = ValueUtil.TRUE_VALUE;
raw_when_Telement2element = m_Telement2element_Element_p3;
}
@@ -389,67 +386,55 @@ public class Forward2Reverse extends AbstractTransformer
/**
*
- * map _'m_TemptyList2emptyList_DoublyLinkedList.r0' in Forward2Reverse {
+ * map _'m_Tlist2list_DoublyLinkedList.r0' in Forward2Reverse {
* guard:forward forwardList : doublylinkedlist::DoublyLinkedList[1];
+ * append jm_Tlist2list : Set(PForward2Reverse::Tlist2list)[*|1];
* var listName : String[1] := forwardList.name;
- * check forwardList.headElement = null;
* new:reverse reverseList : doublylinkedlist::DoublyLinkedList[1];
- * new:middle trace : PForward2Reverse::TemptyList2emptyList[1];
- * set reverseList.headElement := null;
+ * new:middle trace : PForward2Reverse::Tlist2list[1];
* set trace.forwardList := forwardList;
* set trace.reverseList := reverseList;
* set reverseList.name := listName;
* set trace.listName := listName;
+ * add jm_Tlist2list += trace;
*
*/
- protected boolean MAP_m_TemptyList2emptyList_DoublyLinkedList_46r0(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList forwardList) {
+ protected boolean MAP_m_Tlist2list_DoublyLinkedList_46r0(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList forwardList, final SetValue.@NonNull Accumulator jm_Tlist2list) {
try {
@SuppressWarnings("null")
final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.NonNull String name = forwardList.getName();
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.Nullable Element headElement = forwardList.getHeadElement();
- final /*@Thrown*/ boolean symbol_0 = headElement == null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_7;
- if (symbol_0) {
- // creations
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.Nullable DoublyLinkedList reverseList = doublylinkedlistFactory.eINSTANCE.createDoublyLinkedList();
- assert reverseList != null;
- models[2/*reverse*/].add(reverseList);
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable TemptyList2emptyList trace_3 = PForward2ReverseFactory.eINSTANCE.createTemptyList2emptyList();
- assert trace_3 != null;
- models[0/*middle*/].add(trace_3);
- // mapping statements
- reverseList.setHeadElement(null);
- trace_3.setForwardList(forwardList);
- trace_3.setReverseList(reverseList);
- reverseList.setName(name);
- trace_3.setListName(name);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_TemptyList2emptyList_DoublyLinkedList_r0 = ValueUtil.TRUE_VALUE;
- symbol_7 = m_TemptyList2emptyList_DoublyLinkedList_r0;
- }
- else {
- symbol_7 = ValueUtil.FALSE_VALUE;
- }
- return symbol_7;
+ // creations
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.Nullable DoublyLinkedList reverseList = doublylinkedlistFactory.eINSTANCE.createDoublyLinkedList();
+ assert reverseList != null;
+ models[2/*reverse*/].add(reverseList);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable Tlist2list trace_1 = PForward2ReverseFactory.eINSTANCE.createTlist2list();
+ assert trace_1 != null;
+ models[0/*middle*/].add(trace_1);
+ // mapping statements
+ OPPOSITE_OF_Tlist2list_forwardList.put(forwardList, trace_1);
+ trace_1.setForwardList(forwardList);
+ trace_1.setReverseList(reverseList);
+ reverseList.setName(name);
+ trace_1.setListName(name);
+ jm_Tlist2list.add(trace_1);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_Tlist2list_DoublyLinkedList_r0 = ValueUtil.TRUE_VALUE;
+ return m_Tlist2list_DoublyLinkedList_r0;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_TemptyList2emptyList_DoublyLinkedList_46r0", e);
+ return handleExecutionFailure("MAP_m_Tlist2list_DoublyLinkedList_46r0", e);
}
}
/**
*
- * map _'m_Tlist2list_DoublyLinkedList.p0' in Forward2Reverse {
+ * map _'m_TlistHead2listHead_DoublyLinkedList.p0' in Forward2Reverse {
* guard:forward forwardList : doublylinkedlist::DoublyLinkedList[1];
- * append jm_Tlist2list : Set(PForward2Reverse::Tlist2list)[*|1];
* var forwardHead : doublylinkedlist::Element[1] := forwardList.headElement;
- * var listName : String[1] := forwardList.name;
- * new:middle trace : PForward2Reverse::Tlist2list[1];
+ * new:middle trace : PForward2Reverse::TlistHead2listHead[1];
* set trace.forwardList := forwardList;
- * set trace.listName := listName;
* set trace.forwardHead := forwardHead;
- * add jm_Tlist2list += trace;
*
*/
- protected boolean MAP_m_Tlist2list_DoublyLinkedList_46p0(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList forwardList_0, final SetValue.@NonNull Accumulator jm_Tlist2list) {
+ protected boolean MAP_m_TlistHead2listHead_DoublyLinkedList_46p0(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList forwardList_0) {
try {
final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.Nullable Element headElement = forwardList_0.getHeadElement();
final /*@Thrown*/ boolean symbol_0 = headElement != null;
@@ -458,113 +443,104 @@ public class Forward2Reverse extends AbstractTransformer
if (headElement == null) {
throw new InvalidValueException("Null where non-null value required");
}
- @SuppressWarnings("null")
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.NonNull String name = forwardList_0.getName();
// creations
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable Tlist2list trace_3 = PForward2ReverseFactory.eINSTANCE.createTlist2list();
- assert trace_3 != null;
- models[0/*middle*/].add(trace_3);
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable TlistHead2listHead trace_1 = PForward2ReverseFactory.eINSTANCE.createTlistHead2listHead();
+ assert trace_1 != null;
+ models[0/*middle*/].add(trace_1);
// mapping statements
- OPPOSITE_OF_Tlist2list_forwardList.put(forwardList_0, trace_3);
- trace_3.setForwardList(forwardList_0);
- trace_3.setListName(name);
- trace_3.setForwardHead(headElement);
- jm_Tlist2list.add(trace_3);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_Tlist2list_DoublyLinkedList_p0 = ValueUtil.TRUE_VALUE;
- raw_forwardHead = m_Tlist2list_DoublyLinkedList_p0;
+ OPPOSITE_OF_TlistHead2listHead_forwardList.put(forwardList_0, trace_1);
+ trace_1.setForwardList(forwardList_0);
+ trace_1.setForwardHead(headElement);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_TlistHead2listHead_DoublyLinkedList_p0 = ValueUtil.TRUE_VALUE;
+ raw_forwardHead = m_TlistHead2listHead_DoublyLinkedList_p0;
}
else {
raw_forwardHead = ValueUtil.FALSE_VALUE;
}
return raw_forwardHead;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_Tlist2list_DoublyLinkedList_46p0", e);
- }
- }
-
- /**
- *
- * map _'m_Tlist2list_DoublyLinkedList.p1' in Forward2Reverse {
- * guard:middle trace : PForward2Reverse::Tlist2list[1];
- * var forwardHead : doublylinkedlist::Element[1] := trace.forwardHead;
- * var listName : String[1] := trace.listName;
- * var when_Telement2element : PForward2Reverse::Telement2element[1] := forwardHead.Telement2element;
- * new:reverse reverseList : doublylinkedlist::DoublyLinkedList[1];
- * set trace.reverseList := reverseList;
- * set reverseList.name := listName;
- *
- */
- protected boolean MAP_m_Tlist2list_DoublyLinkedList_46p1(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Tlist2list trace_1) {
- try {
- @SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element forwardHead = trace_1.getForwardHead();
- @SuppressWarnings("null")
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.NonNull String listName = trace_1.getListName();
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable Telement2element Telement2element = OPPOSITE_OF_Telement2element_forwardElement.get(forwardHead);
- final /*@Thrown*/ boolean symbol_0 = Telement2element != null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_when_Telement2element;
- if (symbol_0) {
- if (Telement2element == null) {
- throw new InvalidValueException("Null where non-null value required");
- }
- // creations
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.Nullable DoublyLinkedList reverseList = doublylinkedlistFactory.eINSTANCE.createDoublyLinkedList();
- assert reverseList != null;
- models[2/*reverse*/].add(reverseList);
- // mapping statements
- trace_1.setReverseList(reverseList);
- reverseList.setName(listName);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_Tlist2list_DoublyLinkedList_p1 = ValueUtil.TRUE_VALUE;
- raw_when_Telement2element = m_Tlist2list_DoublyLinkedList_p1;
- }
- else {
- raw_when_Telement2element = ValueUtil.FALSE_VALUE;
- }
- return raw_when_Telement2element;
- } catch (Throwable e) {
- return handleExecutionFailure("MAP_m_Tlist2list_DoublyLinkedList_46p1", e);
+ return handleExecutionFailure("MAP_m_TlistHead2listHead_DoublyLinkedList_46p0", e);
}
}
/**
*
- * map _'m_Tlist2list_DoublyLinkedList.p2' in Forward2Reverse {
- * guard:middle trace : PForward2Reverse::Tlist2list[1];
- * var forwardHead : doublylinkedlist::Element[1] := trace.forwardHead;
- * var reverseList : doublylinkedlist::DoublyLinkedList[1] := trace.reverseList;
+ * map _'m_TlistHead2listHead_DoublyLinkedList.p1' in Forward2Reverse {
+ * guard:middle from_Tlist2list : PForward2Reverse::Tlist2list[1];
+ * var forwardList : doublylinkedlist::DoublyLinkedList[1] := from_Tlist2list.forwardList;
+ * var reverseList : doublylinkedlist::DoublyLinkedList[1] := from_Tlist2list.reverseList;
+ * var forwardHead : doublylinkedlist::Element[1] := forwardList.headElement;
+ * var trace : PForward2Reverse::TlistHead2listHead[1] := forwardList.TlistHead2listHead;
* var when_Telement2element : PForward2Reverse::Telement2element[1] := forwardHead.Telement2element;
* var reverseHead : doublylinkedlist::Element[1] := when_Telement2element.reverseElement;
+ * check forwardHead = trace.forwardHead;
+ * set trace.reverseList := reverseList;
* set reverseList.headElement := reverseHead;
* set trace.reverseHead := reverseHead;
*
*/
- protected boolean MAP_m_Tlist2list_DoublyLinkedList_46p2(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Tlist2list trace_2) {
+ protected boolean MAP_m_TlistHead2listHead_DoublyLinkedList_46p1(final /*@NonInvalid*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.NonNull Tlist2list from_Tlist2list) {
try {
@SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element forwardHead = trace_2.getForwardHead();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList forwardList_1 = from_Tlist2list.getForwardList();
@SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList reverseList = trace_2.getReverseList();
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable Telement2element Telement2element = OPPOSITE_OF_Telement2element_forwardElement.get(forwardHead);
- final /*@Thrown*/ boolean symbol_0 = Telement2element != null;
- /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_when_Telement2element;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull DoublyLinkedList reverseList = from_Tlist2list.getReverseList();
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.Nullable Element headElement = forwardList_1.getHeadElement();
+ final /*@Thrown*/ boolean symbol_0 = headElement != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_forwardHead;
if (symbol_0) {
- if (Telement2element == null) {
+ if (headElement == null) {
throw new InvalidValueException("Null where non-null value required");
}
- @SuppressWarnings("null")
- final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element reverseElement = Telement2element.getReverseElement();
- // mapping statements
- reverseList.setHeadElement(reverseElement);
- trace_2.setReverseHead(reverseElement);
- final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_Tlist2list_DoublyLinkedList_p2 = ValueUtil.TRUE_VALUE;
- raw_when_Telement2element = m_Tlist2list_DoublyLinkedList_p2;
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable TlistHead2listHead TlistHead2listHead = OPPOSITE_OF_TlistHead2listHead_forwardList.get(forwardList_1);
+ final /*@Thrown*/ boolean symbol_1 = TlistHead2listHead != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_trace;
+ if (symbol_1) {
+ if (TlistHead2listHead == null) {
+ throw new InvalidValueException("Null where non-null value required");
+ }
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.@org.eclipse.jdt.annotation.Nullable Telement2element Telement2element = OPPOSITE_OF_Telement2element_forwardElement.get(headElement);
+ final /*@Thrown*/ boolean symbol_2 = Telement2element != null;
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean raw_when_Telement2element;
+ if (symbol_2) {
+ if (Telement2element == null) {
+ throw new InvalidValueException("Null where non-null value required");
+ }
+ @SuppressWarnings("null")
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element reverseElement = Telement2element.getReverseElement();
+ @SuppressWarnings("null")
+ final /*@Thrown*/ org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.@org.eclipse.jdt.annotation.NonNull Element forwardHead = TlistHead2listHead.getForwardHead();
+ final /*@Thrown*/ boolean symbol_3 = headElement.equals(forwardHead);
+ /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean symbol_8;
+ if (symbol_3) {
+ // mapping statements
+ TlistHead2listHead.setReverseList(reverseList);
+ reverseList.setHeadElement(reverseElement);
+ TlistHead2listHead.setReverseHead(reverseElement);
+ final /*@Thrown*/ java.lang.@org.eclipse.jdt.annotation.Nullable Boolean m_TlistHead2listHead_DoublyLinkedList_p1 = ValueUtil.TRUE_VALUE;
+ symbol_8 = m_TlistHead2listHead_DoublyLinkedList_p1;
+ }
+ else {
+ symbol_8 = ValueUtil.FALSE_VALUE;
+ }
+ raw_when_Telement2element = symbol_8;
+ }
+ else {
+ raw_when_Telement2element = ValueUtil.FALSE_VALUE;
+ }
+ raw_trace = raw_when_Telement2element;
+ }
+ else {
+ raw_trace = ValueUtil.FALSE_VALUE;
+ }
+ raw_forwardHead = raw_trace;
}
else {
- raw_when_Telement2element = ValueUtil.FALSE_VALUE;
+ raw_forwardHead = ValueUtil.FALSE_VALUE;
}
- return raw_when_Telement2element;
+ return raw_forwardHead;
} catch (Throwable e) {
- return handleExecutionFailure("MAP_m_Tlist2list_DoublyLinkedList_46p2", e);
+ return handleExecutionFailure("MAP_m_TlistHead2listHead_DoublyLinkedList_46p1", e);
}
}
}
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReverseFactory.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReverseFactory.java
index 362a03572..d1e3e3dcc 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReverseFactory.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReverseFactory.java
@@ -11,7 +11,6 @@
package org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse;
import org.eclipse.emf.ecore.EFactory;
-import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReverseFactoryImpl;
/**
* <!-- begin-user-doc -->
@@ -28,7 +27,7 @@ public interface PForward2ReverseFactory extends EFactory {
* <!-- end-user-doc -->
* @generated
*/
- PForward2ReverseFactory eINSTANCE = PForward2ReverseFactoryImpl.init();
+ PForward2ReverseFactory eINSTANCE = org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReverseFactoryImpl.init();
/**
* Returns a new object of class '<em>Telement2element</em>'.
@@ -40,22 +39,22 @@ public interface PForward2ReverseFactory extends EFactory {
Telement2element createTelement2element();
/**
- * Returns a new object of class '<em>Tempty List2empty List</em>'.
+ * Returns a new object of class '<em>Tlist2list</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return a new object of class '<em>Tempty List2empty List</em>'.
+ * @return a new object of class '<em>Tlist2list</em>'.
* @generated
*/
- TemptyList2emptyList createTemptyList2emptyList();
+ Tlist2list createTlist2list();
/**
- * Returns a new object of class '<em>Tlist2list</em>'.
+ * Returns a new object of class '<em>Tlist Head2list Head</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return a new object of class '<em>Tlist2list</em>'.
+ * @return a new object of class '<em>Tlist Head2list Head</em>'.
* @generated
*/
- Tlist2list createTlist2list();
+ TlistHead2listHead createTlistHead2listHead();
/**
* Returns the package supported by this factory.
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReversePackage.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReversePackage.java
index 2fa0b1218..5ab61cd0f 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReversePackage.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/PForward2ReversePackage.java
@@ -156,14 +156,14 @@ public interface PForward2ReversePackage extends EPackage {
int TELEMENT2ELEMENT_OPERATION_COUNT = 0;
/**
- * The meta object id for the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TemptyList2emptyListImpl <em>Tempty List2empty List</em>}' class.
+ * The meta object id for the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl <em>Tlist2list</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TemptyList2emptyListImpl
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReversePackageImpl#getTemptyList2emptyList()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReversePackageImpl#getTlist2list()
* @generated
*/
- int TEMPTY_LIST2EMPTY_LIST = 1;
+ int TLIST2LIST = 1;
/**
* The feature id for the '<em><b>Forward List</b></em>' reference.
@@ -172,7 +172,7 @@ public interface PForward2ReversePackage extends EPackage {
* @generated
* @ordered
*/
- int TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST = 0;
+ int TLIST2LIST__FORWARD_LIST = 0;
/**
* The feature id for the '<em><b>List Name</b></em>' attribute.
@@ -181,7 +181,7 @@ public interface PForward2ReversePackage extends EPackage {
* @generated
* @ordered
*/
- int TEMPTY_LIST2EMPTY_LIST__LIST_NAME = 1;
+ int TLIST2LIST__LIST_NAME = 1;
/**
* The feature id for the '<em><b>Reverse List</b></em>' reference.
@@ -190,35 +190,35 @@ public interface PForward2ReversePackage extends EPackage {
* @generated
* @ordered
*/
- int TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST = 2;
+ int TLIST2LIST__REVERSE_LIST = 2;
/**
- * The number of structural features of the '<em>Tempty List2empty List</em>' class.
+ * The number of structural features of the '<em>Tlist2list</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TEMPTY_LIST2EMPTY_LIST_FEATURE_COUNT = 3;
+ int TLIST2LIST_FEATURE_COUNT = 3;
/**
- * The number of operations of the '<em>Tempty List2empty List</em>' class.
+ * The number of operations of the '<em>Tlist2list</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TEMPTY_LIST2EMPTY_LIST_OPERATION_COUNT = 0;
+ int TLIST2LIST_OPERATION_COUNT = 0;
/**
- * The meta object id for the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl <em>Tlist2list</em>}' class.
+ * The meta object id for the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TlistHead2listHeadImpl <em>Tlist Head2list Head</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReversePackageImpl#getTlist2list()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TlistHead2listHeadImpl
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReversePackageImpl#getTlistHead2listHead()
* @generated
*/
- int TLIST2LIST = 2;
+ int TLIST_HEAD2LIST_HEAD = 2;
/**
* The feature id for the '<em><b>Forward Head</b></em>' reference.
@@ -227,7 +227,7 @@ public interface PForward2ReversePackage extends EPackage {
* @generated
* @ordered
*/
- int TLIST2LIST__FORWARD_HEAD = 0;
+ int TLIST_HEAD2LIST_HEAD__FORWARD_HEAD = 0;
/**
* The feature id for the '<em><b>Forward List</b></em>' reference.
@@ -236,16 +236,7 @@ public interface PForward2ReversePackage extends EPackage {
* @generated
* @ordered
*/
- int TLIST2LIST__FORWARD_LIST = 1;
-
- /**
- * The feature id for the '<em><b>List Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int TLIST2LIST__LIST_NAME = 2;
+ int TLIST_HEAD2LIST_HEAD__FORWARD_LIST = 1;
/**
* The feature id for the '<em><b>Reverse Head</b></em>' reference.
@@ -254,7 +245,7 @@ public interface PForward2ReversePackage extends EPackage {
* @generated
* @ordered
*/
- int TLIST2LIST__REVERSE_HEAD = 3;
+ int TLIST_HEAD2LIST_HEAD__REVERSE_HEAD = 2;
/**
* The feature id for the '<em><b>Reverse List</b></em>' reference.
@@ -263,25 +254,25 @@ public interface PForward2ReversePackage extends EPackage {
* @generated
* @ordered
*/
- int TLIST2LIST__REVERSE_LIST = 4;
+ int TLIST_HEAD2LIST_HEAD__REVERSE_LIST = 3;
/**
- * The number of structural features of the '<em>Tlist2list</em>' class.
+ * The number of structural features of the '<em>Tlist Head2list Head</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TLIST2LIST_FEATURE_COUNT = 5;
+ int TLIST_HEAD2LIST_HEAD_FEATURE_COUNT = 4;
/**
- * The number of operations of the '<em>Tlist2list</em>' class.
+ * The number of operations of the '<em>Tlist Head2list Head</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
- int TLIST2LIST_OPERATION_COUNT = 0;
+ int TLIST_HEAD2LIST_HEAD_OPERATION_COUNT = 0;
/**
@@ -372,112 +363,101 @@ public interface PForward2ReversePackage extends EPackage {
EReference getTelement2element_ReverseSource();
/**
- * Returns the meta object for class '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList <em>Tempty List2empty List</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list <em>Tlist2list</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for class '<em>Tempty List2empty List</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList
+ * @return the meta object for class '<em>Tlist2list</em>'.
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list
* @generated
*/
- EClass getTemptyList2emptyList();
+ EClass getTlist2list();
/**
- * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getForwardList <em>Forward List</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardList <em>Forward List</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Forward List</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getForwardList()
- * @see #getTemptyList2emptyList()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardList()
+ * @see #getTlist2list()
* @generated
*/
- EReference getTemptyList2emptyList_ForwardList();
+ EReference getTlist2list_ForwardList();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getListName <em>List Name</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getListName <em>List Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>List Name</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getListName()
- * @see #getTemptyList2emptyList()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getListName()
+ * @see #getTlist2list()
* @generated
*/
- EAttribute getTemptyList2emptyList_ListName();
+ EAttribute getTlist2list_ListName();
/**
- * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getReverseList <em>Reverse List</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseList <em>Reverse List</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Reverse List</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getReverseList()
- * @see #getTemptyList2emptyList()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseList()
+ * @see #getTlist2list()
* @generated
*/
- EReference getTemptyList2emptyList_ReverseList();
+ EReference getTlist2list_ReverseList();
/**
- * Returns the meta object for class '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list <em>Tlist2list</em>}'.
+ * Returns the meta object for class '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead <em>Tlist Head2list Head</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @return the meta object for class '<em>Tlist2list</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list
+ * @return the meta object for class '<em>Tlist Head2list Head</em>'.
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead
* @generated
*/
- EClass getTlist2list();
+ EClass getTlistHead2listHead();
/**
- * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardHead <em>Forward Head</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getForwardHead <em>Forward Head</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Forward Head</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardHead()
- * @see #getTlist2list()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getForwardHead()
+ * @see #getTlistHead2listHead()
* @generated
*/
- EReference getTlist2list_ForwardHead();
+ EReference getTlistHead2listHead_ForwardHead();
/**
- * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardList <em>Forward List</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getForwardList <em>Forward List</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Forward List</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardList()
- * @see #getTlist2list()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getForwardList()
+ * @see #getTlistHead2listHead()
* @generated
*/
- EReference getTlist2list_ForwardList();
+ EReference getTlistHead2listHead_ForwardList();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getListName <em>List Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>List Name</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getListName()
- * @see #getTlist2list()
- * @generated
- */
- EAttribute getTlist2list_ListName();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseHead <em>Reverse Head</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getReverseHead <em>Reverse Head</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Reverse Head</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseHead()
- * @see #getTlist2list()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getReverseHead()
+ * @see #getTlistHead2listHead()
* @generated
*/
- EReference getTlist2list_ReverseHead();
+ EReference getTlistHead2listHead_ReverseHead();
/**
- * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseList <em>Reverse List</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getReverseList <em>Reverse List</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Reverse List</em>'.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseList()
- * @see #getTlist2list()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getReverseList()
+ * @see #getTlistHead2listHead()
* @generated
*/
- EReference getTlist2list_ReverseList();
+ EReference getTlistHead2listHead_ReverseList();
/**
* Returns the factory that creates the instances of the model.
@@ -569,14 +549,14 @@ public interface PForward2ReversePackage extends EPackage {
EReference TELEMENT2ELEMENT__REVERSE_SOURCE = eINSTANCE.getTelement2element_ReverseSource();
/**
- * The meta object literal for the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TemptyList2emptyListImpl <em>Tempty List2empty List</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl <em>Tlist2list</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TemptyList2emptyListImpl
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReversePackageImpl#getTemptyList2emptyList()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReversePackageImpl#getTlist2list()
* @generated
*/
- EClass TEMPTY_LIST2EMPTY_LIST = eINSTANCE.getTemptyList2emptyList();
+ EClass TLIST2LIST = eINSTANCE.getTlist2list();
/**
* The meta object literal for the '<em><b>Forward List</b></em>' reference feature.
@@ -584,7 +564,7 @@ public interface PForward2ReversePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EReference TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST = eINSTANCE.getTemptyList2emptyList_ForwardList();
+ EReference TLIST2LIST__FORWARD_LIST = eINSTANCE.getTlist2list_ForwardList();
/**
* The meta object literal for the '<em><b>List Name</b></em>' attribute feature.
@@ -592,7 +572,7 @@ public interface PForward2ReversePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EAttribute TEMPTY_LIST2EMPTY_LIST__LIST_NAME = eINSTANCE.getTemptyList2emptyList_ListName();
+ EAttribute TLIST2LIST__LIST_NAME = eINSTANCE.getTlist2list_ListName();
/**
* The meta object literal for the '<em><b>Reverse List</b></em>' reference feature.
@@ -600,17 +580,17 @@ public interface PForward2ReversePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EReference TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST = eINSTANCE.getTemptyList2emptyList_ReverseList();
+ EReference TLIST2LIST__REVERSE_LIST = eINSTANCE.getTlist2list_ReverseList();
/**
- * The meta object literal for the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl <em>Tlist2list</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TlistHead2listHeadImpl <em>Tlist Head2list Head</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReversePackageImpl#getTlist2list()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TlistHead2listHeadImpl
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.PForward2ReversePackageImpl#getTlistHead2listHead()
* @generated
*/
- EClass TLIST2LIST = eINSTANCE.getTlist2list();
+ EClass TLIST_HEAD2LIST_HEAD = eINSTANCE.getTlistHead2listHead();
/**
* The meta object literal for the '<em><b>Forward Head</b></em>' reference feature.
@@ -618,7 +598,7 @@ public interface PForward2ReversePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EReference TLIST2LIST__FORWARD_HEAD = eINSTANCE.getTlist2list_ForwardHead();
+ EReference TLIST_HEAD2LIST_HEAD__FORWARD_HEAD = eINSTANCE.getTlistHead2listHead_ForwardHead();
/**
* The meta object literal for the '<em><b>Forward List</b></em>' reference feature.
@@ -626,15 +606,7 @@ public interface PForward2ReversePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EReference TLIST2LIST__FORWARD_LIST = eINSTANCE.getTlist2list_ForwardList();
-
- /**
- * The meta object literal for the '<em><b>List Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute TLIST2LIST__LIST_NAME = eINSTANCE.getTlist2list_ListName();
+ EReference TLIST_HEAD2LIST_HEAD__FORWARD_LIST = eINSTANCE.getTlistHead2listHead_ForwardList();
/**
* The meta object literal for the '<em><b>Reverse Head</b></em>' reference feature.
@@ -642,7 +614,7 @@ public interface PForward2ReversePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EReference TLIST2LIST__REVERSE_HEAD = eINSTANCE.getTlist2list_ReverseHead();
+ EReference TLIST_HEAD2LIST_HEAD__REVERSE_HEAD = eINSTANCE.getTlistHead2listHead_ReverseHead();
/**
* The meta object literal for the '<em><b>Reverse List</b></em>' reference feature.
@@ -650,7 +622,7 @@ public interface PForward2ReversePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- EReference TLIST2LIST__REVERSE_LIST = eINSTANCE.getTlist2list_ReverseList();
+ EReference TLIST_HEAD2LIST_HEAD__REVERSE_LIST = eINSTANCE.getTlistHead2listHead_ReverseList();
}
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Telement2element.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Telement2element.java
index 278a020a7..0f74144d4 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Telement2element.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Telement2element.java
@@ -11,6 +11,7 @@
package org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse;
import org.eclipse.emf.ecore.EObject;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.DoublyLinkedList;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Tlist2list.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Tlist2list.java
index ca6516620..17b765c2d 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Tlist2list.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/Tlist2list.java
@@ -11,8 +11,8 @@
package org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse;
import org.eclipse.emf.ecore.EObject;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.DoublyLinkedList;
-import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
/**
* <!-- begin-user-doc -->
@@ -23,10 +23,8 @@ import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
* The following features are supported:
* </p>
* <ul>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardHead <em>Forward Head</em>}</li>
* <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardList <em>Forward List</em>}</li>
* <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getListName <em>List Name</em>}</li>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseHead <em>Reverse Head</em>}</li>
* <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseList <em>Reverse List</em>}</li>
* </ul>
*
@@ -36,33 +34,6 @@ import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
*/
public interface Tlist2list extends EObject {
/**
- * Returns the value of the '<em><b>Forward Head</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Forward Head</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Forward Head</em>' reference.
- * @see #setForwardHead(Element)
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTlist2list_ForwardHead()
- * @model required="true"
- * annotation="http://www.eclipse.org/qvt#Domains referredDomain='forward'"
- * @generated
- */
- Element getForwardHead();
-
- /**
- * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getForwardHead <em>Forward Head</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Forward Head</em>' reference.
- * @see #getForwardHead()
- * @generated
- */
- void setForwardHead(Element value);
-
- /**
* Returns the value of the '<em><b>Forward List</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
@@ -116,33 +87,6 @@ public interface Tlist2list extends EObject {
void setListName(String value);
/**
- * Returns the value of the '<em><b>Reverse Head</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Reverse Head</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Reverse Head</em>' reference.
- * @see #setReverseHead(Element)
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTlist2list_ReverseHead()
- * @model required="true"
- * annotation="http://www.eclipse.org/qvt#Domains referredDomain='reverse'"
- * @generated
- */
- Element getReverseHead();
-
- /**
- * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list#getReverseHead <em>Reverse Head</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Reverse Head</em>' reference.
- * @see #getReverseHead()
- * @generated
- */
- void setReverseHead(Element value);
-
- /**
* Returns the value of the '<em><b>Reverse List</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/TemptyList2emptyList.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/TlistHead2listHead.java
index 08661e57a..f5c1c3e85 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/TemptyList2emptyList.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/TlistHead2listHead.java
@@ -11,27 +11,57 @@
package org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse;
import org.eclipse.emf.ecore.EObject;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.DoublyLinkedList;
+import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
/**
* <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Tempty List2empty List</b></em>'.
+ * A representation of the model object '<em><b>Tlist Head2list Head</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getForwardList <em>Forward List</em>}</li>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getListName <em>List Name</em>}</li>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getReverseList <em>Reverse List</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getForwardHead <em>Forward Head</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getForwardList <em>Forward List</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getReverseHead <em>Reverse Head</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getReverseList <em>Reverse List</em>}</li>
* </ul>
*
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTemptyList2emptyList()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTlistHead2listHead()
* @model
* @generated
*/
-public interface TemptyList2emptyList extends EObject {
+public interface TlistHead2listHead extends EObject {
+ /**
+ * Returns the value of the '<em><b>Forward Head</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Forward Head</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Forward Head</em>' reference.
+ * @see #setForwardHead(Element)
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTlistHead2listHead_ForwardHead()
+ * @model required="true"
+ * annotation="http://www.eclipse.org/qvt#Domains referredDomain='forward'"
+ * @generated
+ */
+ Element getForwardHead();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getForwardHead <em>Forward Head</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Forward Head</em>' reference.
+ * @see #getForwardHead()
+ * @generated
+ */
+ void setForwardHead(Element value);
+
/**
* Returns the value of the '<em><b>Forward List</b></em>' reference.
* <!-- begin-user-doc -->
@@ -42,7 +72,7 @@ public interface TemptyList2emptyList extends EObject {
* <!-- end-user-doc -->
* @return the value of the '<em>Forward List</em>' reference.
* @see #setForwardList(DoublyLinkedList)
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTemptyList2emptyList_ForwardList()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTlistHead2listHead_ForwardList()
* @model required="true"
* annotation="http://www.eclipse.org/qvt#Domains referredDomain='forward'"
* @generated
@@ -50,7 +80,7 @@ public interface TemptyList2emptyList extends EObject {
DoublyLinkedList getForwardList();
/**
- * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getForwardList <em>Forward List</em>}' reference.
+ * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getForwardList <em>Forward List</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Forward List</em>' reference.
@@ -60,30 +90,31 @@ public interface TemptyList2emptyList extends EObject {
void setForwardList(DoublyLinkedList value);
/**
- * Returns the value of the '<em><b>List Name</b></em>' attribute.
+ * Returns the value of the '<em><b>Reverse Head</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>List Name</em>' attribute isn't clear,
+ * If the meaning of the '<em>Reverse Head</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>List Name</em>' attribute.
- * @see #setListName(String)
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTemptyList2emptyList_ListName()
+ * @return the value of the '<em>Reverse Head</em>' reference.
+ * @see #setReverseHead(Element)
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTlistHead2listHead_ReverseHead()
* @model required="true"
+ * annotation="http://www.eclipse.org/qvt#Domains referredDomain='reverse'"
* @generated
*/
- String getListName();
+ Element getReverseHead();
/**
- * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getListName <em>List Name</em>}' attribute.
+ * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getReverseHead <em>Reverse Head</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @param value the new value of the '<em>List Name</em>' attribute.
- * @see #getListName()
+ * @param value the new value of the '<em>Reverse Head</em>' reference.
+ * @see #getReverseHead()
* @generated
*/
- void setListName(String value);
+ void setReverseHead(Element value);
/**
* Returns the value of the '<em><b>Reverse List</b></em>' reference.
@@ -95,7 +126,7 @@ public interface TemptyList2emptyList extends EObject {
* <!-- end-user-doc -->
* @return the value of the '<em>Reverse List</em>' reference.
* @see #setReverseList(DoublyLinkedList)
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTemptyList2emptyList_ReverseList()
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage#getTlistHead2listHead_ReverseList()
* @model required="true"
* annotation="http://www.eclipse.org/qvt#Domains referredDomain='reverse'"
* @generated
@@ -103,7 +134,7 @@ public interface TemptyList2emptyList extends EObject {
DoublyLinkedList getReverseList();
/**
- * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList#getReverseList <em>Reverse List</em>}' reference.
+ * Sets the value of the '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead#getReverseList <em>Reverse List</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Reverse List</em>' reference.
@@ -112,4 +143,4 @@ public interface TemptyList2emptyList extends EObject {
*/
void setReverseList(DoublyLinkedList value);
-} // TemptyList2emptyList
+} // TlistHead2listHead
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReverseFactoryImpl.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReverseFactoryImpl.java
index b1702f577..6a8457e20 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReverseFactoryImpl.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReverseFactoryImpl.java
@@ -17,6 +17,7 @@ import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.*;
/**
@@ -64,8 +65,8 @@ public class PForward2ReverseFactoryImpl extends EFactoryImpl implements PForwar
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
case PForward2ReversePackage.TELEMENT2ELEMENT: return createTelement2element();
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST: return createTemptyList2emptyList();
case PForward2ReversePackage.TLIST2LIST: return createTlist2list();
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD: return createTlistHead2listHead();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -88,9 +89,9 @@ public class PForward2ReverseFactoryImpl extends EFactoryImpl implements PForwar
* @generated
*/
@Override
- public TemptyList2emptyList createTemptyList2emptyList() {
- TemptyList2emptyListImpl temptyList2emptyList = new TemptyList2emptyListImpl();
- return temptyList2emptyList;
+ public Tlist2list createTlist2list() {
+ Tlist2listImpl tlist2list = new Tlist2listImpl();
+ return tlist2list;
}
/**
@@ -99,9 +100,9 @@ public class PForward2ReverseFactoryImpl extends EFactoryImpl implements PForwar
* @generated
*/
@Override
- public Tlist2list createTlist2list() {
- Tlist2listImpl tlist2list = new Tlist2listImpl();
- return tlist2list;
+ public TlistHead2listHead createTlistHead2listHead() {
+ TlistHead2listHeadImpl tlistHead2listHead = new TlistHead2listHeadImpl();
+ return tlistHead2listHead;
}
/**
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReversePackageImpl.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReversePackageImpl.java
index 8697cbb35..fe438dba4 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReversePackageImpl.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/PForward2ReversePackageImpl.java
@@ -16,12 +16,15 @@ import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReverseFactory;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Telement2element;
-import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list;
+import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.doublylinkedlistPackage;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.impl.doublylinkedlistPackageImpl;
/**
@@ -43,14 +46,14 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* <!-- end-user-doc -->
* @generated
*/
- private EClass temptyList2emptyListEClass = null;
+ private EClass tlist2listEClass = null;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
- private EClass tlist2listEClass = null;
+ private EClass tlistHead2listHeadEClass = null;
/**
* Creates an instance of the model <b>Package</b>, registered with
@@ -205,18 +208,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EClass getTemptyList2emptyList() {
- return temptyList2emptyListEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EReference getTemptyList2emptyList_ForwardList() {
- return (EReference)temptyList2emptyListEClass.getEStructuralFeatures().get(0);
+ public EClass getTlist2list() {
+ return tlist2listEClass;
}
/**
@@ -225,8 +218,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EAttribute getTemptyList2emptyList_ListName() {
- return (EAttribute)temptyList2emptyListEClass.getEStructuralFeatures().get(1);
+ public EReference getTlist2list_ForwardList() {
+ return (EReference)tlist2listEClass.getEStructuralFeatures().get(0);
}
/**
@@ -235,8 +228,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EReference getTemptyList2emptyList_ReverseList() {
- return (EReference)temptyList2emptyListEClass.getEStructuralFeatures().get(2);
+ public EAttribute getTlist2list_ListName() {
+ return (EAttribute)tlist2listEClass.getEStructuralFeatures().get(1);
}
/**
@@ -245,8 +238,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EClass getTlist2list() {
- return tlist2listEClass;
+ public EReference getTlist2list_ReverseList() {
+ return (EReference)tlist2listEClass.getEStructuralFeatures().get(2);
}
/**
@@ -255,8 +248,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EReference getTlist2list_ForwardHead() {
- return (EReference)tlist2listEClass.getEStructuralFeatures().get(0);
+ public EClass getTlistHead2listHead() {
+ return tlistHead2listHeadEClass;
}
/**
@@ -265,8 +258,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EReference getTlist2list_ForwardList() {
- return (EReference)tlist2listEClass.getEStructuralFeatures().get(1);
+ public EReference getTlistHead2listHead_ForwardHead() {
+ return (EReference)tlistHead2listHeadEClass.getEStructuralFeatures().get(0);
}
/**
@@ -275,8 +268,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EAttribute getTlist2list_ListName() {
- return (EAttribute)tlist2listEClass.getEStructuralFeatures().get(2);
+ public EReference getTlistHead2listHead_ForwardList() {
+ return (EReference)tlistHead2listHeadEClass.getEStructuralFeatures().get(1);
}
/**
@@ -285,8 +278,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EReference getTlist2list_ReverseHead() {
- return (EReference)tlist2listEClass.getEStructuralFeatures().get(3);
+ public EReference getTlistHead2listHead_ReverseHead() {
+ return (EReference)tlistHead2listHeadEClass.getEStructuralFeatures().get(2);
}
/**
@@ -295,8 +288,8 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
* @generated
*/
@Override
- public EReference getTlist2list_ReverseList() {
- return (EReference)tlist2listEClass.getEStructuralFeatures().get(4);
+ public EReference getTlistHead2listHead_ReverseList() {
+ return (EReference)tlistHead2listHeadEClass.getEStructuralFeatures().get(3);
}
/**
@@ -337,17 +330,16 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
createEReference(telement2elementEClass, TELEMENT2ELEMENT__REVERSE_LIST);
createEReference(telement2elementEClass, TELEMENT2ELEMENT__REVERSE_SOURCE);
- temptyList2emptyListEClass = createEClass(TEMPTY_LIST2EMPTY_LIST);
- createEReference(temptyList2emptyListEClass, TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST);
- createEAttribute(temptyList2emptyListEClass, TEMPTY_LIST2EMPTY_LIST__LIST_NAME);
- createEReference(temptyList2emptyListEClass, TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST);
-
tlist2listEClass = createEClass(TLIST2LIST);
- createEReference(tlist2listEClass, TLIST2LIST__FORWARD_HEAD);
createEReference(tlist2listEClass, TLIST2LIST__FORWARD_LIST);
createEAttribute(tlist2listEClass, TLIST2LIST__LIST_NAME);
- createEReference(tlist2listEClass, TLIST2LIST__REVERSE_HEAD);
createEReference(tlist2listEClass, TLIST2LIST__REVERSE_LIST);
+
+ tlistHead2listHeadEClass = createEClass(TLIST_HEAD2LIST_HEAD);
+ createEReference(tlistHead2listHeadEClass, TLIST_HEAD2LIST_HEAD__FORWARD_HEAD);
+ createEReference(tlistHead2listHeadEClass, TLIST_HEAD2LIST_HEAD__FORWARD_LIST);
+ createEReference(tlistHead2listHeadEClass, TLIST_HEAD2LIST_HEAD__REVERSE_HEAD);
+ createEReference(tlistHead2listHeadEClass, TLIST_HEAD2LIST_HEAD__REVERSE_LIST);
}
/**
@@ -392,18 +384,17 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
initEReference(getTelement2element_ReverseList(), thedoublylinkedlistPackage.getDoublyLinkedList(), null, "reverseList", null, 1, 1, Telement2element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTelement2element_ReverseSource(), thedoublylinkedlistPackage.getElement(), null, "reverseSource", null, 1, 1, Telement2element.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEClass(temptyList2emptyListEClass, TemptyList2emptyList.class, "TemptyList2emptyList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTemptyList2emptyList_ForwardList(), thedoublylinkedlistPackage.getDoublyLinkedList(), null, "forwardList", null, 1, 1, TemptyList2emptyList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTemptyList2emptyList_ListName(), ecorePackage.getEString(), "listName", null, 1, 1, TemptyList2emptyList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTemptyList2emptyList_ReverseList(), thedoublylinkedlistPackage.getDoublyLinkedList(), null, "reverseList", null, 1, 1, TemptyList2emptyList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
initEClass(tlist2listEClass, Tlist2list.class, "Tlist2list", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTlist2list_ForwardHead(), thedoublylinkedlistPackage.getElement(), null, "forwardHead", null, 1, 1, Tlist2list.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTlist2list_ForwardList(), thedoublylinkedlistPackage.getDoublyLinkedList(), null, "forwardList", null, 1, 1, Tlist2list.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getTlist2list_ListName(), ecorePackage.getEString(), "listName", null, 1, 1, Tlist2list.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTlist2list_ReverseHead(), thedoublylinkedlistPackage.getElement(), null, "reverseHead", null, 1, 1, Tlist2list.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTlist2list_ReverseList(), thedoublylinkedlistPackage.getDoublyLinkedList(), null, "reverseList", null, 1, 1, Tlist2list.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(tlistHead2listHeadEClass, TlistHead2listHead.class, "TlistHead2listHead", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getTlistHead2listHead_ForwardHead(), thedoublylinkedlistPackage.getElement(), null, "forwardHead", null, 1, 1, TlistHead2listHead.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTlistHead2listHead_ForwardList(), thedoublylinkedlistPackage.getDoublyLinkedList(), null, "forwardList", null, 1, 1, TlistHead2listHead.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTlistHead2listHead_ReverseHead(), thedoublylinkedlistPackage.getElement(), null, "reverseHead", null, 1, 1, TlistHead2listHead.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTlistHead2listHead_ReverseList(), thedoublylinkedlistPackage.getDoublyLinkedList(), null, "reverseList", null, 1, 1, TlistHead2listHead.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
// Create resource
createResource(eNS_URI);
@@ -457,37 +448,37 @@ public class PForward2ReversePackageImpl extends EPackageImpl implements PForwar
"referredDomain", "reverse"
});
addAnnotation
- (getTemptyList2emptyList_ForwardList(),
+ (getTlist2list_ForwardList(),
source,
new String[] {
"referredDomain", "forward"
});
addAnnotation
- (getTemptyList2emptyList_ReverseList(),
+ (getTlist2list_ReverseList(),
source,
new String[] {
"referredDomain", "reverse"
});
addAnnotation
- (getTlist2list_ForwardHead(),
+ (getTlistHead2listHead_ForwardHead(),
source,
new String[] {
"referredDomain", "forward"
});
addAnnotation
- (getTlist2list_ForwardList(),
+ (getTlistHead2listHead_ForwardList(),
source,
new String[] {
"referredDomain", "forward"
});
addAnnotation
- (getTlist2list_ReverseHead(),
+ (getTlistHead2listHead_ReverseHead(),
source,
new String[] {
"referredDomain", "reverse"
});
addAnnotation
- (getTlist2list_ReverseList(),
+ (getTlistHead2listHead_ReverseList(),
source,
new String[] {
"referredDomain", "reverse"
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Telement2elementImpl.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Telement2elementImpl.java
index 98fdbbc8d..6e9f8032e 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Telement2elementImpl.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Telement2elementImpl.java
@@ -17,8 +17,10 @@ import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Telement2element;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.DoublyLinkedList;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Tlist2listImpl.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Tlist2listImpl.java
index 3e4e60508..9f23519b3 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Tlist2listImpl.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/Tlist2listImpl.java
@@ -17,10 +17,11 @@ import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage;
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.DoublyLinkedList;
-import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
/**
* <!-- begin-user-doc -->
@@ -30,10 +31,8 @@ import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl#getForwardHead <em>Forward Head</em>}</li>
* <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl#getForwardList <em>Forward List</em>}</li>
* <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl#getListName <em>List Name</em>}</li>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl#getReverseHead <em>Reverse Head</em>}</li>
* <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.Tlist2listImpl#getReverseList <em>Reverse List</em>}</li>
* </ul>
*
@@ -41,16 +40,6 @@ import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
*/
public class Tlist2listImpl extends MinimalEObjectImpl.Container implements Tlist2list {
/**
- * The cached value of the '{@link #getForwardHead() <em>Forward Head</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getForwardHead()
- * @generated
- * @ordered
- */
- protected Element forwardHead;
-
- /**
* The cached value of the '{@link #getForwardList() <em>Forward List</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -81,16 +70,6 @@ public class Tlist2listImpl extends MinimalEObjectImpl.Container implements Tlis
protected String listName = LIST_NAME_EDEFAULT;
/**
- * The cached value of the '{@link #getReverseHead() <em>Reverse Head</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getReverseHead()
- * @generated
- * @ordered
- */
- protected Element reverseHead;
-
- /**
* The cached value of the '{@link #getReverseList() <em>Reverse List</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
@@ -125,46 +104,6 @@ public class Tlist2listImpl extends MinimalEObjectImpl.Container implements Tlis
* @generated
*/
@Override
- public Element getForwardHead() {
- if (forwardHead != null && forwardHead.eIsProxy()) {
- InternalEObject oldForwardHead = (InternalEObject)forwardHead;
- forwardHead = (Element)eResolveProxy(oldForwardHead);
- if (forwardHead != oldForwardHead) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PForward2ReversePackage.TLIST2LIST__FORWARD_HEAD, oldForwardHead, forwardHead));
- }
- }
- return forwardHead;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Element basicGetForwardHead() {
- return forwardHead;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void setForwardHead(Element newForwardHead) {
- Element oldForwardHead = forwardHead;
- forwardHead = newForwardHead;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TLIST2LIST__FORWARD_HEAD, oldForwardHead, forwardHead));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
public DoublyLinkedList getForwardList() {
if (forwardList != null && forwardList.eIsProxy()) {
InternalEObject oldForwardList = (InternalEObject)forwardList;
@@ -228,46 +167,6 @@ public class Tlist2listImpl extends MinimalEObjectImpl.Container implements Tlis
* @generated
*/
@Override
- public Element getReverseHead() {
- if (reverseHead != null && reverseHead.eIsProxy()) {
- InternalEObject oldReverseHead = (InternalEObject)reverseHead;
- reverseHead = (Element)eResolveProxy(oldReverseHead);
- if (reverseHead != oldReverseHead) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PForward2ReversePackage.TLIST2LIST__REVERSE_HEAD, oldReverseHead, reverseHead));
- }
- }
- return reverseHead;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Element basicGetReverseHead() {
- return reverseHead;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void setReverseHead(Element newReverseHead) {
- Element oldReverseHead = reverseHead;
- reverseHead = newReverseHead;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TLIST2LIST__REVERSE_HEAD, oldReverseHead, reverseHead));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
public DoublyLinkedList getReverseList() {
if (reverseList != null && reverseList.eIsProxy()) {
InternalEObject oldReverseList = (InternalEObject)reverseList;
@@ -310,17 +209,11 @@ public class Tlist2listImpl extends MinimalEObjectImpl.Container implements Tlis
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case PForward2ReversePackage.TLIST2LIST__FORWARD_HEAD:
- if (resolve) return getForwardHead();
- return basicGetForwardHead();
case PForward2ReversePackage.TLIST2LIST__FORWARD_LIST:
if (resolve) return getForwardList();
return basicGetForwardList();
case PForward2ReversePackage.TLIST2LIST__LIST_NAME:
return getListName();
- case PForward2ReversePackage.TLIST2LIST__REVERSE_HEAD:
- if (resolve) return getReverseHead();
- return basicGetReverseHead();
case PForward2ReversePackage.TLIST2LIST__REVERSE_LIST:
if (resolve) return getReverseList();
return basicGetReverseList();
@@ -336,18 +229,12 @@ public class Tlist2listImpl extends MinimalEObjectImpl.Container implements Tlis
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case PForward2ReversePackage.TLIST2LIST__FORWARD_HEAD:
- setForwardHead((Element)newValue);
- return;
case PForward2ReversePackage.TLIST2LIST__FORWARD_LIST:
setForwardList((DoublyLinkedList)newValue);
return;
case PForward2ReversePackage.TLIST2LIST__LIST_NAME:
setListName((String)newValue);
return;
- case PForward2ReversePackage.TLIST2LIST__REVERSE_HEAD:
- setReverseHead((Element)newValue);
- return;
case PForward2ReversePackage.TLIST2LIST__REVERSE_LIST:
setReverseList((DoublyLinkedList)newValue);
return;
@@ -363,18 +250,12 @@ public class Tlist2listImpl extends MinimalEObjectImpl.Container implements Tlis
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case PForward2ReversePackage.TLIST2LIST__FORWARD_HEAD:
- setForwardHead((Element)null);
- return;
case PForward2ReversePackage.TLIST2LIST__FORWARD_LIST:
setForwardList((DoublyLinkedList)null);
return;
case PForward2ReversePackage.TLIST2LIST__LIST_NAME:
setListName(LIST_NAME_EDEFAULT);
return;
- case PForward2ReversePackage.TLIST2LIST__REVERSE_HEAD:
- setReverseHead((Element)null);
- return;
case PForward2ReversePackage.TLIST2LIST__REVERSE_LIST:
setReverseList((DoublyLinkedList)null);
return;
@@ -390,14 +271,10 @@ public class Tlist2listImpl extends MinimalEObjectImpl.Container implements Tlis
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case PForward2ReversePackage.TLIST2LIST__FORWARD_HEAD:
- return forwardHead != null;
case PForward2ReversePackage.TLIST2LIST__FORWARD_LIST:
return forwardList != null;
case PForward2ReversePackage.TLIST2LIST__LIST_NAME:
return LIST_NAME_EDEFAULT == null ? listName != null : !LIST_NAME_EDEFAULT.equals(listName);
- case PForward2ReversePackage.TLIST2LIST__REVERSE_HEAD:
- return reverseHead != null;
case PForward2ReversePackage.TLIST2LIST__REVERSE_LIST:
return reverseList != null;
}
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/TemptyList2emptyListImpl.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/TlistHead2listHeadImpl.java
index 2d85f14a9..c7dc6accf 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/TemptyList2emptyListImpl.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/impl/TlistHead2listHeadImpl.java
@@ -17,55 +17,59 @@ import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.PForward2ReversePackage;
-import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList;
+import org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead;
+
import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.DoublyLinkedList;
+import org.eclipse.qvtd.doc.exe2016.tests.qvtr.doublylinkedlist.Element;
/**
* <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Tempty List2empty List</b></em>'.
+ * An implementation of the model object '<em><b>Tlist Head2list Head</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TemptyList2emptyListImpl#getForwardList <em>Forward List</em>}</li>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TemptyList2emptyListImpl#getListName <em>List Name</em>}</li>
- * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TemptyList2emptyListImpl#getReverseList <em>Reverse List</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TlistHead2listHeadImpl#getForwardHead <em>Forward Head</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TlistHead2listHeadImpl#getForwardList <em>Forward List</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TlistHead2listHeadImpl#getReverseHead <em>Reverse Head</em>}</li>
+ * <li>{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.impl.TlistHead2listHeadImpl#getReverseList <em>Reverse List</em>}</li>
* </ul>
*
* @generated
*/
-public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container implements TemptyList2emptyList {
+public class TlistHead2listHeadImpl extends MinimalEObjectImpl.Container implements TlistHead2listHead {
/**
- * The cached value of the '{@link #getForwardList() <em>Forward List</em>}' reference.
+ * The cached value of the '{@link #getForwardHead() <em>Forward Head</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getForwardList()
+ * @see #getForwardHead()
* @generated
* @ordered
*/
- protected DoublyLinkedList forwardList;
+ protected Element forwardHead;
/**
- * The default value of the '{@link #getListName() <em>List Name</em>}' attribute.
+ * The cached value of the '{@link #getForwardList() <em>Forward List</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getListName()
+ * @see #getForwardList()
* @generated
* @ordered
*/
- protected static final String LIST_NAME_EDEFAULT = null;
+ protected DoublyLinkedList forwardList;
/**
- * The cached value of the '{@link #getListName() <em>List Name</em>}' attribute.
+ * The cached value of the '{@link #getReverseHead() <em>Reverse Head</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getListName()
+ * @see #getReverseHead()
* @generated
* @ordered
*/
- protected String listName = LIST_NAME_EDEFAULT;
+ protected Element reverseHead;
/**
* The cached value of the '{@link #getReverseList() <em>Reverse List</em>}' reference.
@@ -82,7 +86,7 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
* <!-- end-user-doc -->
* @generated
*/
- protected TemptyList2emptyListImpl() {
+ protected TlistHead2listHeadImpl() {
super();
}
@@ -93,7 +97,47 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
*/
@Override
protected EClass eStaticClass() {
- return PForward2ReversePackage.Literals.TEMPTY_LIST2EMPTY_LIST;
+ return PForward2ReversePackage.Literals.TLIST_HEAD2LIST_HEAD;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Element getForwardHead() {
+ if (forwardHead != null && forwardHead.eIsProxy()) {
+ InternalEObject oldForwardHead = (InternalEObject)forwardHead;
+ forwardHead = (Element)eResolveProxy(oldForwardHead);
+ if (forwardHead != oldForwardHead) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_HEAD, oldForwardHead, forwardHead));
+ }
+ }
+ return forwardHead;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Element basicGetForwardHead() {
+ return forwardHead;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void setForwardHead(Element newForwardHead) {
+ Element oldForwardHead = forwardHead;
+ forwardHead = newForwardHead;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_HEAD, oldForwardHead, forwardHead));
}
/**
@@ -108,7 +152,7 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
forwardList = (DoublyLinkedList)eResolveProxy(oldForwardList);
if (forwardList != oldForwardList) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST, oldForwardList, forwardList));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_LIST, oldForwardList, forwardList));
}
}
return forwardList;
@@ -133,7 +177,7 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
DoublyLinkedList oldForwardList = forwardList;
forwardList = newForwardList;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST, oldForwardList, forwardList));
+ eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_LIST, oldForwardList, forwardList));
}
/**
@@ -142,8 +186,25 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
* @generated
*/
@Override
- public String getListName() {
- return listName;
+ public Element getReverseHead() {
+ if (reverseHead != null && reverseHead.eIsProxy()) {
+ InternalEObject oldReverseHead = (InternalEObject)reverseHead;
+ reverseHead = (Element)eResolveProxy(oldReverseHead);
+ if (reverseHead != oldReverseHead) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_HEAD, oldReverseHead, reverseHead));
+ }
+ }
+ return reverseHead;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Element basicGetReverseHead() {
+ return reverseHead;
}
/**
@@ -152,11 +213,11 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
* @generated
*/
@Override
- public void setListName(String newListName) {
- String oldListName = listName;
- listName = newListName;
+ public void setReverseHead(Element newReverseHead) {
+ Element oldReverseHead = reverseHead;
+ reverseHead = newReverseHead;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__LIST_NAME, oldListName, listName));
+ eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_HEAD, oldReverseHead, reverseHead));
}
/**
@@ -171,7 +232,7 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
reverseList = (DoublyLinkedList)eResolveProxy(oldReverseList);
if (reverseList != oldReverseList) {
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST, oldReverseList, reverseList));
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_LIST, oldReverseList, reverseList));
}
}
return reverseList;
@@ -196,7 +257,7 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
DoublyLinkedList oldReverseList = reverseList;
reverseList = newReverseList;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST, oldReverseList, reverseList));
+ eNotify(new ENotificationImpl(this, Notification.SET, PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_LIST, oldReverseList, reverseList));
}
/**
@@ -207,12 +268,16 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST:
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_HEAD:
+ if (resolve) return getForwardHead();
+ return basicGetForwardHead();
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_LIST:
if (resolve) return getForwardList();
return basicGetForwardList();
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__LIST_NAME:
- return getListName();
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST:
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_HEAD:
+ if (resolve) return getReverseHead();
+ return basicGetReverseHead();
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_LIST:
if (resolve) return getReverseList();
return basicGetReverseList();
}
@@ -227,13 +292,16 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST:
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_HEAD:
+ setForwardHead((Element)newValue);
+ return;
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_LIST:
setForwardList((DoublyLinkedList)newValue);
return;
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__LIST_NAME:
- setListName((String)newValue);
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_HEAD:
+ setReverseHead((Element)newValue);
return;
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST:
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_LIST:
setReverseList((DoublyLinkedList)newValue);
return;
}
@@ -248,13 +316,16 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST:
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_HEAD:
+ setForwardHead((Element)null);
+ return;
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_LIST:
setForwardList((DoublyLinkedList)null);
return;
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__LIST_NAME:
- setListName(LIST_NAME_EDEFAULT);
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_HEAD:
+ setReverseHead((Element)null);
return;
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST:
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_LIST:
setReverseList((DoublyLinkedList)null);
return;
}
@@ -269,30 +340,16 @@ public class TemptyList2emptyListImpl extends MinimalEObjectImpl.Container imple
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__FORWARD_LIST:
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_HEAD:
+ return forwardHead != null;
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__FORWARD_LIST:
return forwardList != null;
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__LIST_NAME:
- return LIST_NAME_EDEFAULT == null ? listName != null : !LIST_NAME_EDEFAULT.equals(listName);
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST__REVERSE_LIST:
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_HEAD:
+ return reverseHead != null;
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD__REVERSE_LIST:
return reverseList != null;
}
return super.eIsSet(featureID);
}
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (listName: ");
- result.append(listName);
- result.append(')');
- return result.toString();
- }
-
-} //TemptyList2emptyListImpl
+} //TlistHead2listHeadImpl
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseAdapterFactory.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseAdapterFactory.java
index 06c5a768e..13291fa65 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseAdapterFactory.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseAdapterFactory.java
@@ -81,14 +81,14 @@ public class PForward2ReverseAdapterFactory extends AdapterFactoryImpl {
return createTelement2elementAdapter();
}
@Override
- public Adapter caseTemptyList2emptyList(TemptyList2emptyList object) {
- return createTemptyList2emptyListAdapter();
- }
- @Override
public Adapter caseTlist2list(Tlist2list object) {
return createTlist2listAdapter();
}
@Override
+ public Adapter caseTlistHead2listHead(TlistHead2listHead object) {
+ return createTlistHead2listHeadAdapter();
+ }
+ @Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
@@ -123,30 +123,30 @@ public class PForward2ReverseAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList <em>Tempty List2empty List</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list <em>Tlist2list</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TemptyList2emptyList
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list
* @generated
*/
- public Adapter createTemptyList2emptyListAdapter() {
+ public Adapter createTlist2listAdapter() {
return null;
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list <em>Tlist2list</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead <em>Tlist Head2list Head</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
- * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.Tlist2list
+ * @see org.eclipse.qvtd.doc.exe2016.tests.qvtr.PForward2Reverse.TlistHead2listHead
* @generated
*/
- public Adapter createTlist2listAdapter() {
+ public Adapter createTlistHead2listHeadAdapter() {
return null;
}
diff --git a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseSwitch.java b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseSwitch.java
index 0cfdac8ab..6033868f3 100644
--- a/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseSwitch.java
+++ b/tests/org.eclipse.qvtd.doc.exe2016.tests/src-copy/org/eclipse/qvtd/doc/exe2016/tests/qvtr/PForward2Reverse/util/PForward2ReverseSwitch.java
@@ -81,18 +81,18 @@ public class PForward2ReverseSwitch<@Nullable T> extends Switch<T> {
if (result == null) result = defaultCase(theEObject);
return result;
}
- case PForward2ReversePackage.TEMPTY_LIST2EMPTY_LIST: {
- TemptyList2emptyList temptyList2emptyList = (TemptyList2emptyList)theEObject;
- T result = caseTemptyList2emptyList(temptyList2emptyList);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
case PForward2ReversePackage.TLIST2LIST: {
Tlist2list tlist2list = (Tlist2list)theEObject;
T result = caseTlist2list(tlist2list);
if (result == null) result = defaultCase(theEObject);
return result;
}
+ case PForward2ReversePackage.TLIST_HEAD2LIST_HEAD: {
+ TlistHead2listHead tlistHead2listHead = (TlistHead2listHead)theEObject;
+ T result = caseTlistHead2listHead(tlistHead2listHead);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
default: return defaultCase(theEObject);
}
}
@@ -113,32 +113,32 @@ public class PForward2ReverseSwitch<@Nullable T> extends Switch<T> {
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Tempty List2empty List</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>Tlist2list</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Tempty List2empty List</em>'.
+ * @return the result of interpreting the object as an instance of '<em>Tlist2list</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T caseTemptyList2emptyList(TemptyList2emptyList object) {
+ public T caseTlist2list(Tlist2list object) {
return null;
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Tlist2list</em>'.
+ * Returns the result of interpreting the object as an instance of '<em>Tlist Head2list Head</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Tlist2list</em>'.
+ * @return the result of interpreting the object as an instance of '<em>Tlist Head2list Head</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T caseTlist2list(Tlist2list object) {
+ public T caseTlistHead2listHead(TlistHead2listHead object) {
return null;
}
diff --git a/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/forward2reverse/Forward2Reverse.qvtr b/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/forward2reverse/Forward2Reverse.qvtr
index 22285a78c..98562e939 100644
--- a/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/forward2reverse/Forward2Reverse.qvtr
+++ b/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/src/org/eclipse/qvtd/xtext/qvtrelation/tests/forward2reverse/Forward2Reverse.qvtr
@@ -24,26 +24,25 @@ package org::eclipse::qvtd::xtext::qvtrelation2::tests::forward2reverse {
*/
top relation list2list {
domain forward forwardList : DoublyLinkedList {
- name = listName : String{},
- headElement = forwardHead : Element{}
+ name = listName : String{}
};
enforce domain reverse reverseList : DoublyLinkedList {
- name = listName,
- headElement = reverseHead : Element{}
+ name = listName
};
- when {
- element2element(forwardHead, reverseHead);
+ where {
+ listHead2listHead(forwardList, reverseList);
}
}
- top relation emptyList2emptyList {
+ relation listHead2listHead {
domain forward forwardList : DoublyLinkedList {
- name = listName : String{},
- headElement = null
+ headElement = forwardHead : Element{}
};
enforce domain reverse reverseList : DoublyLinkedList {
- name = listName,
- headElement = null
+ headElement = reverseHead : Element{}
};
+ when {
+ element2element(forwardHead, reverseHead);
+ }
}
/**

Back to the top