diff options
Diffstat (limited to 'Metrics/Metrics-Calculation/SocialNetwork_plugin/encore_gen/socialnetwork/util/SocialnetworkSwitch.java')
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/encore_gen/socialnetwork/util/SocialnetworkSwitch.java | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/encore_gen/socialnetwork/util/SocialnetworkSwitch.java b/Metrics/Metrics-Calculation/SocialNetwork_plugin/encore_gen/socialnetwork/util/SocialnetworkSwitch.java new file mode 100644 index 00000000..00d7955c --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/encore_gen/socialnetwork/util/SocialnetworkSwitch.java | |||
@@ -0,0 +1,134 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package socialnetwork.util; | ||
4 | |||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | import org.eclipse.emf.ecore.EPackage; | ||
7 | |||
8 | import org.eclipse.emf.ecore.util.Switch; | ||
9 | |||
10 | import socialnetwork.*; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
15 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
16 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
17 | * starting with the actual class of the object | ||
18 | * and proceeding up the inheritance hierarchy | ||
19 | * until a non-null result is returned, | ||
20 | * which is the result of the switch. | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see socialnetwork.SocialnetworkPackage | ||
23 | * @generated | ||
24 | */ | ||
25 | public class SocialnetworkSwitch<T> extends Switch<T> { | ||
26 | /** | ||
27 | * The cached model package | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @generated | ||
31 | */ | ||
32 | protected static SocialnetworkPackage modelPackage; | ||
33 | |||
34 | /** | ||
35 | * Creates an instance of the switch. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @generated | ||
39 | */ | ||
40 | public SocialnetworkSwitch() { | ||
41 | if (modelPackage == null) { | ||
42 | modelPackage = SocialnetworkPackage.eINSTANCE; | ||
43 | } | ||
44 | } | ||
45 | |||
46 | /** | ||
47 | * Checks whether this is a switch for the given package. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @param ePackage the package in question. | ||
51 | * @return whether this is a switch for the given package. | ||
52 | * @generated | ||
53 | */ | ||
54 | @Override | ||
55 | protected boolean isSwitchFor(EPackage ePackage) { | ||
56 | return ePackage == modelPackage; | ||
57 | } | ||
58 | |||
59 | /** | ||
60 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected T doSwitch(int classifierID, EObject theEObject) { | ||
68 | switch (classifierID) { | ||
69 | case SocialnetworkPackage.SOCIAL_NETWORK: { | ||
70 | SocialNetwork socialNetwork = (SocialNetwork) theEObject; | ||
71 | T result = caseSocialNetwork(socialNetwork); | ||
72 | if (result == null) | ||
73 | result = defaultCase(theEObject); | ||
74 | return result; | ||
75 | } | ||
76 | case SocialnetworkPackage.PERSON: { | ||
77 | Person person = (Person) theEObject; | ||
78 | T result = casePerson(person); | ||
79 | if (result == null) | ||
80 | result = defaultCase(theEObject); | ||
81 | return result; | ||
82 | } | ||
83 | default: | ||
84 | return defaultCase(theEObject); | ||
85 | } | ||
86 | } | ||
87 | |||
88 | /** | ||
89 | * Returns the result of interpreting the object as an instance of '<em>Social Network</em>'. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * This implementation returns null; | ||
92 | * returning a non-null result will terminate the switch. | ||
93 | * <!-- end-user-doc --> | ||
94 | * @param object the target of the switch. | ||
95 | * @return the result of interpreting the object as an instance of '<em>Social Network</em>'. | ||
96 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
97 | * @generated | ||
98 | */ | ||
99 | public T caseSocialNetwork(SocialNetwork object) { | ||
100 | return null; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * Returns the result of interpreting the object as an instance of '<em>Person</em>'. | ||
105 | * <!-- begin-user-doc --> | ||
106 | * This implementation returns null; | ||
107 | * returning a non-null result will terminate the switch. | ||
108 | * <!-- end-user-doc --> | ||
109 | * @param object the target of the switch. | ||
110 | * @return the result of interpreting the object as an instance of '<em>Person</em>'. | ||
111 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
112 | * @generated | ||
113 | */ | ||
114 | public T casePerson(Person object) { | ||
115 | return null; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
120 | * <!-- begin-user-doc --> | ||
121 | * This implementation returns null; | ||
122 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
123 | * <!-- end-user-doc --> | ||
124 | * @param object the target of the switch. | ||
125 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
126 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
127 | * @generated | ||
128 | */ | ||
129 | @Override | ||
130 | public T defaultCase(EObject object) { | ||
131 | return null; | ||
132 | } | ||
133 | |||
134 | } //SocialnetworkSwitch | ||