aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java')
-rw-r--r--Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java174
1 files changed, 174 insertions, 0 deletions
diff --git a/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java
new file mode 100644
index 00000000..86568e9d
--- /dev/null
+++ b/Domains/ca.mcgill.rtgmrt.example.modes3/ecore-gen/modes3/util/Modes3AdapterFactory.java
@@ -0,0 +1,174 @@
1/**
2 */
3package modes3.util;
4
5import modes3.*;
6
7import org.eclipse.emf.common.notify.Adapter;
8import org.eclipse.emf.common.notify.Notifier;
9
10import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
11
12import org.eclipse.emf.ecore.EObject;
13
14/**
15 * <!-- begin-user-doc -->
16 * The <b>Adapter Factory</b> for the model.
17 * It provides an adapter <code>createXXX</code> method for each class of the model.
18 * <!-- end-user-doc -->
19 * @see modes3.Modes3Package
20 * @generated
21 */
22public class Modes3AdapterFactory extends AdapterFactoryImpl {
23 /**
24 * The cached model package.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @generated
28 */
29 protected static Modes3Package modelPackage;
30
31 /**
32 * Creates an instance of the adapter factory.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @generated
36 */
37 public Modes3AdapterFactory() {
38 if (modelPackage == null) {
39 modelPackage = Modes3Package.eINSTANCE;
40 }
41 }
42
43 /**
44 * Returns whether this factory is applicable for the type of the object.
45 * <!-- begin-user-doc -->
46 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
47 * <!-- end-user-doc -->
48 * @return whether this factory is applicable for the type of the object.
49 * @generated
50 */
51 @Override
52 public boolean isFactoryForType(Object object) {
53 if (object == modelPackage) {
54 return true;
55 }
56 if (object instanceof EObject) {
57 return ((EObject)object).eClass().getEPackage() == modelPackage;
58 }
59 return false;
60 }
61
62 /**
63 * The switch that delegates to the <code>createXXX</code> methods.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 protected Modes3Switch<Adapter> modelSwitch =
69 new Modes3Switch<Adapter>() {
70 @Override
71 public Adapter caseSegment(Segment object) {
72 return createSegmentAdapter();
73 }
74 @Override
75 public Adapter caseModes3ModelRoot(Modes3ModelRoot object) {
76 return createModes3ModelRootAdapter();
77 }
78 @Override
79 public Adapter caseTurnout(Turnout object) {
80 return createTurnoutAdapter();
81 }
82 @Override
83 public Adapter caseTrain(Train object) {
84 return createTrainAdapter();
85 }
86 @Override
87 public Adapter defaultCase(EObject object) {
88 return createEObjectAdapter();
89 }
90 };
91
92 /**
93 * Creates an adapter for the <code>target</code>.
94 * <!-- begin-user-doc -->
95 * <!-- end-user-doc -->
96 * @param target the object to adapt.
97 * @return the adapter for the <code>target</code>.
98 * @generated
99 */
100 @Override
101 public Adapter createAdapter(Notifier target) {
102 return modelSwitch.doSwitch((EObject)target);
103 }
104
105
106 /**
107 * Creates a new adapter for an object of class '{@link modes3.Segment <em>Segment</em>}'.
108 * <!-- begin-user-doc -->
109 * This default implementation returns null so that we can easily ignore cases;
110 * it's useful to ignore a case when inheritance will catch all the cases anyway.
111 * <!-- end-user-doc -->
112 * @return the new adapter.
113 * @see modes3.Segment
114 * @generated
115 */
116 public Adapter createSegmentAdapter() {
117 return null;
118 }
119
120 /**
121 * Creates a new adapter for an object of class '{@link modes3.Modes3ModelRoot <em>Model Root</em>}'.
122 * <!-- begin-user-doc -->
123 * This default implementation returns null so that we can easily ignore cases;
124 * it's useful to ignore a case when inheritance will catch all the cases anyway.
125 * <!-- end-user-doc -->
126 * @return the new adapter.
127 * @see modes3.Modes3ModelRoot
128 * @generated
129 */
130 public Adapter createModes3ModelRootAdapter() {
131 return null;
132 }
133
134 /**
135 * Creates a new adapter for an object of class '{@link modes3.Turnout <em>Turnout</em>}'.
136 * <!-- begin-user-doc -->
137 * This default implementation returns null so that we can easily ignore cases;
138 * it's useful to ignore a case when inheritance will catch all the cases anyway.
139 * <!-- end-user-doc -->
140 * @return the new adapter.
141 * @see modes3.Turnout
142 * @generated
143 */
144 public Adapter createTurnoutAdapter() {
145 return null;
146 }
147
148 /**
149 * Creates a new adapter for an object of class '{@link modes3.Train <em>Train</em>}'.
150 * <!-- begin-user-doc -->
151 * This default implementation returns null so that we can easily ignore cases;
152 * it's useful to ignore a case when inheritance will catch all the cases anyway.
153 * <!-- end-user-doc -->
154 * @return the new adapter.
155 * @see modes3.Train
156 * @generated
157 */
158 public Adapter createTrainAdapter() {
159 return null;
160 }
161
162 /**
163 * Creates a new adapter for the default case.
164 * <!-- begin-user-doc -->
165 * This default implementation returns null.
166 * <!-- end-user-doc -->
167 * @return the new adapter.
168 * @generated
169 */
170 public Adapter createEObjectAdapter() {
171 return null;
172 }
173
174} //Modes3AdapterFactory