1 7 package Olj.util; 8 9 import Olj.*; 10 11 import java.util.List ; 12 13 import org.eclipse.emf.ecore.EClass; 14 import org.eclipse.emf.ecore.EObject; 15 16 29 public class OljSwitch { 30 36 protected static OljPackage modelPackage; 37 38 44 public OljSwitch() { 45 if (modelPackage == null) { 46 modelPackage = OljPackage.eINSTANCE; 47 } 48 } 49 50 57 public Object doSwitch(EObject theEObject) { 58 return doSwitch(theEObject.eClass(), theEObject); 59 } 60 61 68 protected Object doSwitch(EClass theEClass, EObject theEObject) { 69 if (theEClass.eContainer() == modelPackage) { 70 return doSwitch(theEClass.getClassifierID(), theEObject); 71 } 72 else { 73 List eSuperTypes = theEClass.getESuperTypes(); 74 return 75 eSuperTypes.isEmpty() ? 76 defaultCase(theEObject) : 77 doSwitch((EClass)eSuperTypes.get(0), theEObject); 78 } 79 } 80 81 88 protected Object doSwitch(int classifierID, EObject theEObject) { 89 switch (classifierID) { 90 case OljPackage.CONSTANT_COLUMNS_TYPE: { 91 ConstantColumnsType constantColumnsType = (ConstantColumnsType)theEObject; 92 Object result = caseConstantColumnsType(constantColumnsType); 93 if (result == null) result = defaultCase(theEObject); 94 return result; 95 } 96 case OljPackage.CONSTANT_COLUMN_TYPE: { 97 ConstantColumnType constantColumnType = (ConstantColumnType)theEObject; 98 Object result = caseConstantColumnType(constantColumnType); 99 if (result == null) result = defaultCase(theEObject); 100 return result; 101 } 102 case OljPackage.COPY_TABLE_TYPE: { 103 CopyTableType copyTableType = (CopyTableType)theEObject; 104 Object result = caseCopyTableType(copyTableType); 105 if (result == null) result = defaultCase(theEObject); 106 return result; 107 } 108 case OljPackage.COUNTER_COLUMNS_TYPE: { 109 CounterColumnsType counterColumnsType = (CounterColumnsType)theEObject; 110 Object result = caseCounterColumnsType(counterColumnsType); 111 if (result == null) result = defaultCase(theEObject); 112 return result; 113 } 114 case OljPackage.COUNTER_COLUMN_TYPE: { 115 CounterColumnType counterColumnType = (CounterColumnType)theEObject; 116 Object result = caseCounterColumnType(counterColumnType); 117 if (result == null) result = defaultCase(theEObject); 118 return result; 119 } 120 case OljPackage.DEFINITION_INCLUDE_TYPE: { 121 DefinitionIncludeType definitionIncludeType = (DefinitionIncludeType)theEObject; 122 Object result = caseDefinitionIncludeType(definitionIncludeType); 123 if (result == null) result = defaultCase(theEObject); 124 return result; 125 } 126 case OljPackage.DOCUMENT_ROOT: { 127 DocumentRoot documentRoot = (DocumentRoot)theEObject; 128 Object result = caseDocumentRoot(documentRoot); 129 if (result == null) result = defaultCase(theEObject); 130 return result; 131 } 132 case OljPackage.ECHO_TYPE: { 133 EchoType echoType = (EchoType)theEObject; 134 Object result = caseEchoType(echoType); 135 if (result == null) result = defaultCase(theEObject); 136 return result; 137 } 138 case OljPackage.IMPORT_DEFINITION_TYPE: { 139 ImportDefinitionType importDefinitionType = (ImportDefinitionType)theEObject; 140 Object result = caseImportDefinitionType(importDefinitionType); 141 if (result == null) result = defaultCase(theEObject); 142 return result; 143 } 144 case OljPackage.INCLUDE_TYPE: { 145 IncludeType includeType = (IncludeType)theEObject; 146 Object result = caseIncludeType(includeType); 147 if (result == null) result = defaultCase(theEObject); 148 return result; 149 } 150 case OljPackage.JAVA_SCRIPT_TYPE: { 151 JavaScriptType javaScriptType = (JavaScriptType)theEObject; 152 Object result = caseJavaScriptType(javaScriptType); 153 if (result == null) result = defaultCase(theEObject); 154 return result; 155 } 156 case OljPackage.JDBC_DEFAULT_PARAMETERS_TYPE: { 157 JdbcDefaultParametersType jdbcDefaultParametersType = (JdbcDefaultParametersType)theEObject; 158 Object result = caseJdbcDefaultParametersType(jdbcDefaultParametersType); 159 if (result == null) result = defaultCase(theEObject); 160 return result; 161 } 162 case OljPackage.JDBC_PARAMETERS_TYPE: { 163 JdbcParametersType jdbcParametersType = (JdbcParametersType)theEObject; 164 Object result = caseJdbcParametersType(jdbcParametersType); 165 if (result == null) result = defaultCase(theEObject); 166 return result; 167 } 168 case OljPackage.JDBC_SOURCE_PARAMETERS_TYPE: { 169 JdbcSourceParametersType jdbcSourceParametersType = (JdbcSourceParametersType)theEObject; 170 Object result = caseJdbcSourceParametersType(jdbcSourceParametersType); 171 if (result == null) result = defaultCase(theEObject); 172 return result; 173 } 174 case OljPackage.JDBC_SOURCE_PARAMETER_TYPE: { 175 JdbcSourceParameterType jdbcSourceParameterType = (JdbcSourceParameterType)theEObject; 176 Object result = caseJdbcSourceParameterType(jdbcSourceParameterType); 177 if (result == null) result = defaultCase(theEObject); 178 return result; 179 } 180 case OljPackage.JDBC_SOURCE_TARGET_PARAMETERS_TYPE: { 181 JdbcSourceTargetParametersType jdbcSourceTargetParametersType = (JdbcSourceTargetParametersType)theEObject; 182 Object result = caseJdbcSourceTargetParametersType(jdbcSourceTargetParametersType); 183 if (result == null) result = defaultCase(theEObject); 184 return result; 185 } 186 case OljPackage.JDBC_TARGET_PARAMETERS_TYPE: { 187 JdbcTargetParametersType jdbcTargetParametersType = (JdbcTargetParametersType)theEObject; 188 Object result = caseJdbcTargetParametersType(jdbcTargetParametersType); 189 if (result == null) result = defaultCase(theEObject); 190 return result; 191 } 192 case OljPackage.JDBC_TARGET_PARAMETER_TYPE: { 193 JdbcTargetParameterType jdbcTargetParameterType = (JdbcTargetParameterType)theEObject; 194 Object result = caseJdbcTargetParameterType(jdbcTargetParameterType); 195 if (result == null) result = defaultCase(theEObject); 196 return result; 197 } 198 case OljPackage.LOADER_JOB_TYPE: { 199 LoaderJobType loaderJobType = (LoaderJobType)theEObject; 200 Object result = caseLoaderJobType(loaderJobType); 201 if (result == null) result = defaultCase(theEObject); 202 return result; 203 } 204 case OljPackage.RELATION_COLUMNS_TYPE: { 205 RelationColumnsType relationColumnsType = (RelationColumnsType)theEObject; 206 Object result = caseRelationColumnsType(relationColumnsType); 207 if (result == null) result = defaultCase(theEObject); 208 return result; 209 } 210 case OljPackage.RELATION_COLUMN_TYPE: { 211 RelationColumnType relationColumnType = (RelationColumnType)theEObject; 212 Object result = caseRelationColumnType(relationColumnType); 213 if (result == null) result = defaultCase(theEObject); 214 return result; 215 } 216 case OljPackage.RESTART_COUNTER_TYPE: { 217 RestartCounterType restartCounterType = (RestartCounterType)theEObject; 218 Object result = caseRestartCounterType(restartCounterType); 219 if (result == null) result = defaultCase(theEObject); 220 return result; 221 } 222 case OljPackage.SORT_COLUMNS_TYPE: { 223 SortColumnsType sortColumnsType = (SortColumnsType)theEObject; 224 Object result = caseSortColumnsType(sortColumnsType); 225 if (result == null) result = defaultCase(theEObject); 226 return result; 227 } 228 case OljPackage.SORT_COLUMN_TYPE: { 229 SortColumnType sortColumnType = (SortColumnType)theEObject; 230 Object result = caseSortColumnType(sortColumnType); 231 if (result == null) result = defaultCase(theEObject); 232 return result; 233 } 234 case OljPackage.SOURCE_COLUMNS_TYPE: { 235 SourceColumnsType sourceColumnsType = (SourceColumnsType)theEObject; 236 Object result = caseSourceColumnsType(sourceColumnsType); 237 if (result == null) result = defaultCase(theEObject); 238 return result; 239 } 240 case OljPackage.SOURCE_COLUMN_TYPE: { 241 SourceColumnType sourceColumnType = (SourceColumnType)theEObject; 242 Object result = caseSourceColumnType(sourceColumnType); 243 if (result == null) result = defaultCase(theEObject); 244 return result; 245 } 246 case OljPackage.SQL_STMT_TYPE: { 247 SqlStmtType sqlStmtType = (SqlStmtType)theEObject; 248 Object result = caseSqlStmtType(sqlStmtType); 249 if (result == null) result = defaultCase(theEObject); 250 return result; 251 } 252 case OljPackage.SQL_TYPE: { 253 SqlType sqlType = (SqlType)theEObject; 254 Object result = caseSqlType(sqlType); 255 if (result == null) result = defaultCase(theEObject); 256 return result; 257 } 258 case OljPackage.SUB_COUNTER_COLUMN_TYPE: { 259 SubCounterColumnType subCounterColumnType = (SubCounterColumnType)theEObject; 260 Object result = caseSubCounterColumnType(subCounterColumnType); 261 if (result == null) result = defaultCase(theEObject); 262 return result; 263 } 264 case OljPackage.SUB_COUNTER_KEY_COLUMN_TYPE: { 265 SubCounterKeyColumnType subCounterKeyColumnType = (SubCounterKeyColumnType)theEObject; 266 Object result = caseSubCounterKeyColumnType(subCounterKeyColumnType); 267 if (result == null) result = defaultCase(theEObject); 268 return result; 269 } 270 case OljPackage.TABLES_TYPE: { 271 TablesType tablesType = (TablesType)theEObject; 272 Object result = caseTablesType(tablesType); 273 if (result == null) result = defaultCase(theEObject); 274 return result; 275 } 276 case OljPackage.TABLE_TYPE: { 277 TableType tableType = (TableType)theEObject; 278 Object result = caseTableType(tableType); 279 if (result == null) result = defaultCase(theEObject); 280 return result; 281 } 282 case OljPackage.TARGET_COLUMNS_TYPE: { 283 TargetColumnsType targetColumnsType = (TargetColumnsType)theEObject; 284 Object result = caseTargetColumnsType(targetColumnsType); 285 if (result == null) result = defaultCase(theEObject); 286 return result; 287 } 288 case OljPackage.TARGET_COLUMN_TYPE: { 289 TargetColumnType targetColumnType = (TargetColumnType)theEObject; 290 Object result = caseTargetColumnType(targetColumnType); 291 if (result == null) result = defaultCase(theEObject); 292 return result; 293 } 294 case OljPackage.TIME_STAMP_COLUMN_TYPE: { 295 TimeStampColumnType timeStampColumnType = (TimeStampColumnType)theEObject; 296 Object result = caseTimeStampColumnType(timeStampColumnType); 297 if (result == null) result = defaultCase(theEObject); 298 return result; 299 } 300 case OljPackage.TRANSFORMATIONS_TYPE: { 301 TransformationsType transformationsType = (TransformationsType)theEObject; 302 Object result = caseTransformationsType(transformationsType); 303 if (result == null) result = defaultCase(theEObject); 304 return result; 305 } 306 case OljPackage.TRANSFORMATION_TYPE: { 307 TransformationType transformationType = (TransformationType)theEObject; 308 Object result = caseTransformationType(transformationType); 309 if (result == null) result = defaultCase(theEObject); 310 return result; 311 } 312 case OljPackage.USER_ID_COLUMN_TYPE: { 313 UserIDColumnType userIDColumnType = (UserIDColumnType)theEObject; 314 Object result = caseUserIDColumnType(userIDColumnType); 315 if (result == null) result = defaultCase(theEObject); 316 return result; 317 } 318 case OljPackage.VALUE_COLUMNS_TYPE: { 319 ValueColumnsType valueColumnsType = (ValueColumnsType)theEObject; 320 Object result = caseValueColumnsType(valueColumnsType); 321 if (result == null) result = defaultCase(theEObject); 322 return result; 323 } 324 case OljPackage.VALUE_COLUMN_TYPE: { 325 ValueColumnType valueColumnType = (ValueColumnType)theEObject; 326 Object result = caseValueColumnType(valueColumnType); 327 if (result == null) result = defaultCase(theEObject); 328 return result; 329 } 330 case OljPackage.VARIABLE_COLUMNS_TYPE: { 331 VariableColumnsType variableColumnsType = (VariableColumnsType)theEObject; 332 Object result = caseVariableColumnsType(variableColumnsType); 333 if (result == null) result = defaultCase(theEObject); 334 return result; 335 } 336 case OljPackage.VARIABLE_COLUMN_TYPE: { 337 VariableColumnType variableColumnType = (VariableColumnType)theEObject; 338 Object result = caseVariableColumnType(variableColumnType); 339 if (result == null) result = defaultCase(theEObject); 340 return result; 341 } 342 case OljPackage.VARIABLES_TYPE: { 343 VariablesType variablesType = (VariablesType)theEObject; 344 Object result = caseVariablesType(variablesType); 345 if (result == null) result = defaultCase(theEObject); 346 return result; 347 } 348 case OljPackage.VARIABLE_TYPE: { 349 VariableType variableType = (VariableType)theEObject; 350 Object result = caseVariableType(variableType); 351 if (result == null) result = defaultCase(theEObject); 352 return result; 353 } 354 default: return defaultCase(theEObject); 355 } 356 } 357 358 369 public Object caseConstantColumnsType(ConstantColumnsType object) { 370 return null; 371 } 372 373 384 public Object caseConstantColumnType(ConstantColumnType object) { 385 return null; 386 } 387 388 399 public Object caseCopyTableType(CopyTableType object) { 400 return null; 401 } 402 403 414 public Object caseCounterColumnsType(CounterColumnsType object) { 415 return null; 416 } 417 418 429 public Object caseCounterColumnType(CounterColumnType object) { 430 return null; 431 } 432 433 444 public Object caseDefinitionIncludeType(DefinitionIncludeType object) { 445 return null; 446 } 447 448 459 public Object caseDocumentRoot(DocumentRoot object) { 460 return null; 461 } 462 463 474 public Object caseEchoType(EchoType object) { 475 return null; 476 } 477 478 489 public Object caseImportDefinitionType(ImportDefinitionType object) { 490 return null; 491 } 492 493 504 public Object caseIncludeType(IncludeType object) { 505 return null; 506 } 507 508 519 public Object caseJavaScriptType(JavaScriptType object) { 520 return null; 521 } 522 523 534 public Object caseJdbcDefaultParametersType(JdbcDefaultParametersType object) { 535 return null; 536 } 537 538 549 public Object caseJdbcParametersType(JdbcParametersType object) { 550 return null; 551 } 552 553 564 public Object caseJdbcSourceParametersType(JdbcSourceParametersType object) { 565 return null; 566 } 567 568 579 public Object caseJdbcSourceParameterType(JdbcSourceParameterType object) { 580 return null; 581 } 582 583 594 public Object caseJdbcSourceTargetParametersType(JdbcSourceTargetParametersType object) { 595 return null; 596 } 597 598 609 public Object caseJdbcTargetParametersType(JdbcTargetParametersType object) { 610 return null; 611 } 612 613 624 public Object caseJdbcTargetParameterType(JdbcTargetParameterType object) { 625 return null; 626 } 627 628 639 public Object caseLoaderJobType(LoaderJobType object) { 640 return null; 641 } 642 643 654 public Object caseRelationColumnsType(RelationColumnsType object) { 655 return null; 656 } 657 658 669 public Object caseRelationColumnType(RelationColumnType object) { 670 return null; 671 } 672 673 684 public Object caseRestartCounterType(RestartCounterType object) { 685 return null; 686 } 687 688 699 public Object caseSortColumnsType(SortColumnsType object) { 700 return null; 701 } 702 703 714 public Object caseSortColumnType(SortColumnType object) { 715 return null; 716 } 717 718 729 public Object caseSourceColumnsType(SourceColumnsType object) { 730 return null; 731 } 732 733 744 public Object caseSourceColumnType(SourceColumnType object) { 745 return null; 746 } 747 748 759 public Object caseSqlStmtType(SqlStmtType object) { 760 return null; 761 } 762 763 774 public Object caseSqlType(SqlType object) { 775 return null; 776 } 777 778 789 public Object caseSubCounterColumnType(SubCounterColumnType object) { 790 return null; 791 } 792 793 804 public Object caseSubCounterKeyColumnType(SubCounterKeyColumnType object) { 805 return null; 806 } 807 808 819 public Object caseTablesType(TablesType object) { 820 return null; 821 } 822 823 834 public Object caseTableType(TableType object) { 835 return null; 836 } 837 838 849 public Object caseTargetColumnsType(TargetColumnsType object) { 850 return null; 851 } 852 853 864 public Object caseTargetColumnType(TargetColumnType object) { 865 return null; 866 } 867 868 879 public Object caseTimeStampColumnType(TimeStampColumnType object) { 880 return null; 881 } 882 883 894 public Object caseTransformationsType(TransformationsType object) { 895 return null; 896 } 897 898 909 public Object caseTransformationType(TransformationType object) { 910 return null; 911 } 912 913 924 public Object caseUserIDColumnType(UserIDColumnType object) { 925 return null; 926 } 927 928 939 public Object caseValueColumnsType(ValueColumnsType object) { 940 return null; 941 } 942 943 954 public Object caseValueColumnType(ValueColumnType object) { 955 return null; 956 } 957 958 969 public Object caseVariableColumnsType(VariableColumnsType object) { 970 return null; 971 } 972 973 984 public Object caseVariableColumnType(VariableColumnType object) { 985 return null; 986 } 987 988 999 public Object caseVariablesType(VariablesType object) { 1000 return null; 1001 } 1002 1003 1014 public Object caseVariableType(VariableType object) { 1015 return null; 1016 } 1017 1018 1029 public Object defaultCase(EObject object) { 1030 return null; 1031 } 1032 1033} | Popular Tags |