1 17 package org.eclipse.emf.codegen.ecore.genmodel.util; 18 19 20 import org.eclipse.emf.codegen.ecore.genmodel.*; 21 import org.eclipse.emf.common.notify.Adapter; 22 import org.eclipse.emf.common.notify.Notifier; 23 import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; 24 import org.eclipse.emf.ecore.EObject; 25 26 27 35 public class GenModelAdapterFactory extends AdapterFactoryImpl 36 { 37 38 44 protected static GenModelPackage modelPackage; 45 46 52 public GenModelAdapterFactory() 53 { 54 if (modelPackage == null) 55 { 56 modelPackage = GenModelPackage.eINSTANCE; 57 } 58 } 59 60 68 public boolean isFactoryForType(Object object) 69 { 70 if (object == modelPackage) 71 { 72 return true; 73 } 74 if (object instanceof EObject) 75 { 76 return ((EObject)object).eClass().getEPackage() == modelPackage; 77 } 78 return false; 79 } 80 81 87 protected GenModelSwitch modelSwitch = 88 new GenModelSwitch() 89 { 90 public Object caseGenModel(GenModel object) 91 { 92 return createGenModelAdapter(); 93 } 94 public Object caseGenPackage(GenPackage object) 95 { 96 return createGenPackageAdapter(); 97 } 98 public Object caseGenClass(GenClass object) 99 { 100 return createGenClassAdapter(); 101 } 102 public Object caseGenFeature(GenFeature object) 103 { 104 return createGenFeatureAdapter(); 105 } 106 public Object caseGenBase(GenBase object) 107 { 108 return createGenBaseAdapter(); 109 } 110 public Object caseGenEnum(GenEnum object) 111 { 112 return createGenEnumAdapter(); 113 } 114 public Object caseGenEnumLiteral(GenEnumLiteral object) 115 { 116 return createGenEnumLiteralAdapter(); 117 } 118 public Object caseGenClassifier(GenClassifier object) 119 { 120 return createGenClassifierAdapter(); 121 } 122 public Object caseGenDataType(GenDataType object) 123 { 124 return createGenDataTypeAdapter(); 125 } 126 public Object caseGenOperation(GenOperation object) 127 { 128 return createGenOperationAdapter(); 129 } 130 public Object caseGenParameter(GenParameter object) 131 { 132 return createGenParameterAdapter(); 133 } 134 public Object caseGenTypedElement(GenTypedElement object) 135 { 136 return createGenTypedElementAdapter(); 137 } 138 public Object defaultCase(EObject object) 139 { 140 return createEObjectAdapter(); 141 } 142 }; 143 144 152 public Adapter createAdapter(Notifier target) 153 { 154 return (Adapter)modelSwitch.doSwitch((EObject)target); 155 } 156 157 158 168 public Adapter createGenModelAdapter() 169 { 170 return null; 171 } 172 173 183 public Adapter createGenPackageAdapter() 184 { 185 return null; 186 } 187 188 198 public Adapter createGenClassAdapter() 199 { 200 return null; 201 } 202 203 213 public Adapter createGenFeatureAdapter() 214 { 215 return null; 216 } 217 218 228 public Adapter createGenBaseAdapter() 229 { 230 return null; 231 } 232 233 243 public Adapter createGenEnumAdapter() 244 { 245 return null; 246 } 247 248 258 public Adapter createGenEnumLiteralAdapter() 259 { 260 return null; 261 } 262 263 273 public Adapter createGenClassifierAdapter() 274 { 275 return null; 276 } 277 278 288 public Adapter createGenDataTypeAdapter() 289 { 290 return null; 291 } 292 293 303 public Adapter createGenOperationAdapter() 304 { 305 return null; 306 } 307 308 318 public Adapter createGenParameterAdapter() 319 { 320 return null; 321 } 322 323 333 public Adapter createGenTypedElementAdapter() 334 { 335 return null; 336 } 337 338 346 public Adapter createEObjectAdapter() 347 { 348 return null; 349 } 350 351 } | Popular Tags |