1 7 package Olj.util; 8 9 import Olj.*; 10 11 import java.util.Collection ; 12 import java.util.Map ; 13 14 import org.eclipse.emf.common.util.DiagnosticChain; 15 16 import org.eclipse.emf.ecore.EPackage; 17 18 import org.eclipse.emf.ecore.util.EObjectValidator; 19 20 import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator; 21 22 29 public class OljValidator extends EObjectValidator { 30 36 public static final OljValidator INSTANCE = new OljValidator(); 37 38 46 public static final String DIAGNOSTIC_SOURCE = "Olj"; 47 48 54 private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0; 55 56 62 protected XMLTypeValidator xmlTypeValidator; 63 64 70 public OljValidator() { 71 xmlTypeValidator = XMLTypeValidator.INSTANCE; 72 } 73 74 80 protected EPackage getEPackage() { 81 return OljPackage.eINSTANCE; 82 } 83 84 90 protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map context) { 91 switch (classifierID) { 92 case OljPackage.CONSTANT_COLUMNS_TYPE: 93 return validateConstantColumnsType((ConstantColumnsType)value, diagnostics, context); 94 case OljPackage.CONSTANT_COLUMN_TYPE: 95 return validateConstantColumnType((ConstantColumnType)value, diagnostics, context); 96 case OljPackage.COPY_TABLE_TYPE: 97 return validateCopyTableType((CopyTableType)value, diagnostics, context); 98 case OljPackage.COUNTER_COLUMNS_TYPE: 99 return validateCounterColumnsType((CounterColumnsType)value, diagnostics, context); 100 case OljPackage.COUNTER_COLUMN_TYPE: 101 return validateCounterColumnType((CounterColumnType)value, diagnostics, context); 102 case OljPackage.DEFINITION_INCLUDE_TYPE: 103 return validateDefinitionIncludeType((DefinitionIncludeType)value, diagnostics, context); 104 case OljPackage.DOCUMENT_ROOT: 105 return validateDocumentRoot((DocumentRoot)value, diagnostics, context); 106 case OljPackage.ECHO_TYPE: 107 return validateEchoType((EchoType)value, diagnostics, context); 108 case OljPackage.IMPORT_DEFINITION_TYPE: 109 return validateImportDefinitionType((ImportDefinitionType)value, diagnostics, context); 110 case OljPackage.INCLUDE_TYPE: 111 return validateIncludeType((IncludeType)value, diagnostics, context); 112 case OljPackage.JAVA_SCRIPT_TYPE: 113 return validateJavaScriptType((JavaScriptType)value, diagnostics, context); 114 case OljPackage.JDBC_DEFAULT_PARAMETERS_TYPE: 115 return validateJdbcDefaultParametersType((JdbcDefaultParametersType)value, diagnostics, context); 116 case OljPackage.JDBC_PARAMETERS_TYPE: 117 return validateJdbcParametersType((JdbcParametersType)value, diagnostics, context); 118 case OljPackage.JDBC_SOURCE_PARAMETERS_TYPE: 119 return validateJdbcSourceParametersType((JdbcSourceParametersType)value, diagnostics, context); 120 case OljPackage.JDBC_SOURCE_PARAMETER_TYPE: 121 return validateJdbcSourceParameterType((JdbcSourceParameterType)value, diagnostics, context); 122 case OljPackage.JDBC_SOURCE_TARGET_PARAMETERS_TYPE: 123 return validateJdbcSourceTargetParametersType((JdbcSourceTargetParametersType)value, diagnostics, context); 124 case OljPackage.JDBC_TARGET_PARAMETERS_TYPE: 125 return validateJdbcTargetParametersType((JdbcTargetParametersType)value, diagnostics, context); 126 case OljPackage.JDBC_TARGET_PARAMETER_TYPE: 127 return validateJdbcTargetParameterType((JdbcTargetParameterType)value, diagnostics, context); 128 case OljPackage.LOADER_JOB_TYPE: 129 return validateLoaderJobType((LoaderJobType)value, diagnostics, context); 130 case OljPackage.RELATION_COLUMNS_TYPE: 131 return validateRelationColumnsType((RelationColumnsType)value, diagnostics, context); 132 case OljPackage.RELATION_COLUMN_TYPE: 133 return validateRelationColumnType((RelationColumnType)value, diagnostics, context); 134 case OljPackage.RESTART_COUNTER_TYPE: 135 return validateRestartCounterType((RestartCounterType)value, diagnostics, context); 136 case OljPackage.SORT_COLUMNS_TYPE: 137 return validateSortColumnsType((SortColumnsType)value, diagnostics, context); 138 case OljPackage.SORT_COLUMN_TYPE: 139 return validateSortColumnType((SortColumnType)value, diagnostics, context); 140 case OljPackage.SOURCE_COLUMNS_TYPE: 141 return validateSourceColumnsType((SourceColumnsType)value, diagnostics, context); 142 case OljPackage.SOURCE_COLUMN_TYPE: 143 return validateSourceColumnType((SourceColumnType)value, diagnostics, context); 144 case OljPackage.SQL_STMT_TYPE: 145 return validateSqlStmtType((SqlStmtType)value, diagnostics, context); 146 case OljPackage.SQL_TYPE: 147 return validateSqlType((SqlType)value, diagnostics, context); 148 case OljPackage.SUB_COUNTER_COLUMN_TYPE: 149 return validateSubCounterColumnType((SubCounterColumnType)value, diagnostics, context); 150 case OljPackage.SUB_COUNTER_KEY_COLUMN_TYPE: 151 return validateSubCounterKeyColumnType((SubCounterKeyColumnType)value, diagnostics, context); 152 case OljPackage.TABLES_TYPE: 153 return validateTablesType((TablesType)value, diagnostics, context); 154 case OljPackage.TABLE_TYPE: 155 return validateTableType((TableType)value, diagnostics, context); 156 case OljPackage.TARGET_COLUMNS_TYPE: 157 return validateTargetColumnsType((TargetColumnsType)value, diagnostics, context); 158 case OljPackage.TARGET_COLUMN_TYPE: 159 return validateTargetColumnType((TargetColumnType)value, diagnostics, context); 160 case OljPackage.TIME_STAMP_COLUMN_TYPE: 161 return validateTimeStampColumnType((TimeStampColumnType)value, diagnostics, context); 162 case OljPackage.TRANSFORMATIONS_TYPE: 163 return validateTransformationsType((TransformationsType)value, diagnostics, context); 164 case OljPackage.TRANSFORMATION_TYPE: 165 return validateTransformationType((TransformationType)value, diagnostics, context); 166 case OljPackage.USER_ID_COLUMN_TYPE: 167 return validateUserIDColumnType((UserIDColumnType)value, diagnostics, context); 168 case OljPackage.VALUE_COLUMNS_TYPE: 169 return validateValueColumnsType((ValueColumnsType)value, diagnostics, context); 170 case OljPackage.VALUE_COLUMN_TYPE: 171 return validateValueColumnType((ValueColumnType)value, diagnostics, context); 172 case OljPackage.VARIABLE_COLUMNS_TYPE: 173 return validateVariableColumnsType((VariableColumnsType)value, diagnostics, context); 174 case OljPackage.VARIABLE_COLUMN_TYPE: 175 return validateVariableColumnType((VariableColumnType)value, diagnostics, context); 176 case OljPackage.VARIABLES_TYPE: 177 return validateVariablesType((VariablesType)value, diagnostics, context); 178 case OljPackage.VARIABLE_TYPE: 179 return validateVariableType((VariableType)value, diagnostics, context); 180 case OljPackage.AUTO_MAP_COLUMNS_TYPE: 181 return validateAutoMapColumnsType((Object )value, diagnostics, context); 182 case OljPackage.COMMIT_TYPE: 183 return validateCommitType((Object )value, diagnostics, context); 184 case OljPackage.COUNTER_START_VALUE_RESET_TYPE: 185 return validateCounterStartValueResetType((Object )value, diagnostics, context); 186 case OljPackage.DATA_CUT_OFF_TYPE: 187 return validateDataCutOffType((Object )value, diagnostics, context); 188 case OljPackage.DATA_CUT_OFF_TYPE1: 189 return validateDataCutOffType1((Object )value, diagnostics, context); 190 case OljPackage.DB_VENDOR_TYPE: 191 return validateDbVendorType((Object )value, diagnostics, context); 192 case OljPackage.DB_VENDOR_TYPE1: 193 return validateDbVendorType1((Object )value, diagnostics, context); 194 case OljPackage.DEFAULT_MODE_TYPE: 195 return validateDefaultModeType((Object )value, diagnostics, context); 196 case OljPackage.FROM_HEX_TYPE: 197 return validateFromHexType((Object )value, diagnostics, context); 198 case OljPackage.INSERT_TYPE: 199 return validateInsertType((Object )value, diagnostics, context); 200 case OljPackage.LOG_MODE_TYPE: 201 return validateLogModeType((Object )value, diagnostics, context); 202 case OljPackage.LOG_MODE_TYPE1: 203 return validateLogModeType1((Object )value, diagnostics, context); 204 case OljPackage.LOG_MODE_TYPE2: 205 return validateLogModeType2((Object )value, diagnostics, context); 206 case OljPackage.LOG_MODE_TYPE3: 207 return validateLogModeType3((Object )value, diagnostics, context); 208 case OljPackage.OID_LOGIC_TYPE: 209 return validateOidLogicType((Object )value, diagnostics, context); 210 case OljPackage.OID_LOGIC_TYPE1: 211 return validateOidLogicType1((Object )value, diagnostics, context); 212 case OljPackage.ON_ERROR_CONTINUE_TYPE: 213 return validateOnErrorContinueType((Object )value, diagnostics, context); 214 case OljPackage.ON_ERROR_CONTINUE_TYPE1: 215 return validateOnErrorContinueType1((Object )value, diagnostics, context); 216 case OljPackage.ON_ERROR_CONTINUE_TYPE2: 217 return validateOnErrorContinueType2((Object )value, diagnostics, context); 218 case OljPackage.RELATION_MODE_TYPE: 219 return validateRelationModeType((Object )value, diagnostics, context); 220 case OljPackage.SET_CURSOR_NAME_TYPE: 221 return validateSetCursorNameType((Object )value, diagnostics, context); 222 case OljPackage.SET_CURSOR_NAME_TYPE1: 223 return validateSetCursorNameType1((Object )value, diagnostics, context); 224 case OljPackage.SET_CURSOR_NAME_TYPE2: 225 return validateSetCursorNameType2((Object )value, diagnostics, context); 226 case OljPackage.SET_FETCH_SIZE_TYPE: 227 return validateSetFetchSizeType((Object )value, diagnostics, context); 228 case OljPackage.SET_FETCH_SIZE_TYPE1: 229 return validateSetFetchSizeType1((Object )value, diagnostics, context); 230 case OljPackage.SET_FETCH_SIZE_TYPE2: 231 return validateSetFetchSizeType2((Object )value, diagnostics, context); 232 case OljPackage.TABLE_MODE_TYPE: 233 return validateTableModeType((Object )value, diagnostics, context); 234 case OljPackage.TO_HEX_TYPE: 235 return validateToHexType((Object )value, diagnostics, context); 236 case OljPackage.VALUE_MODE_TYPE: 237 return validateValueModeType((Object )value, diagnostics, context); 238 case OljPackage.VALUE_MODE_TYPE1: 239 return validateValueModeType1((Object )value, diagnostics, context); 240 case OljPackage.VALUE_MODE_TYPE2: 241 return validateValueModeType2((Object )value, diagnostics, context); 242 case OljPackage.VALUE_MODE_TYPE3: 243 return validateValueModeType3((Object )value, diagnostics, context); 244 case OljPackage.VALUE_MODE_TYPE4: 245 return validateValueModeType4((Object )value, diagnostics, context); 246 case OljPackage.VALUE_MODE_TYPE5: 247 return validateValueModeType5((Object )value, diagnostics, context); 248 case OljPackage.VALUE_MODE_TYPE6: 249 return validateValueModeType6((Object )value, diagnostics, context); 250 case OljPackage.AUTO_MAP_COLUMNS_TYPE_OBJECT: 251 return validateAutoMapColumnsTypeObject((AutoMapColumnsType)value, diagnostics, context); 252 case OljPackage.COMMIT_TYPE_OBJECT: 253 return validateCommitTypeObject((CommitType)value, diagnostics, context); 254 case OljPackage.COUNTER_START_VALUE_RESET_TYPE_OBJECT: 255 return validateCounterStartValueResetTypeObject((CounterStartValueResetType)value, diagnostics, context); 256 case OljPackage.DATA_CUT_OFF_TYPE_OBJECT: 257 return validateDataCutOffTypeObject((DataCutOffType)value, diagnostics, context); 258 case OljPackage.DATA_CUT_OFF_TYPE_OBJECT1: 259 return validateDataCutOffTypeObject1((DataCutOffType)value, diagnostics, context); 260 case OljPackage.DB_VENDOR_TYPE_OBJECT: 261 return validateDbVendorTypeObject((DbVendorType)value, diagnostics, context); 262 case OljPackage.DB_VENDOR_TYPE_OBJECT1: 263 return validateDbVendorTypeObject1((DbVendorType)value, diagnostics, context); 264 case OljPackage.DEFAULT_MODE_TYPE_OBJECT: 265 return validateDefaultModeTypeObject((DefaultModeType)value, diagnostics, context); 266 case OljPackage.FROM_HEX_TYPE_OBJECT: 267 return validateFromHexTypeObject((FromHexType)value, diagnostics, context); 268 case OljPackage.INSERT_TYPE_OBJECT: 269 return validateInsertTypeObject((InsertType)value, diagnostics, context); 270 case OljPackage.LOG_MODE_TYPE_OBJECT: 271 return validateLogModeTypeObject((LogModeType)value, diagnostics, context); 272 case OljPackage.LOG_MODE_TYPE_OBJECT1: 273 return validateLogModeTypeObject1((LogModeType)value, diagnostics, context); 274 case OljPackage.LOG_MODE_TYPE_OBJECT2: 275 return validateLogModeTypeObject2((LogModeType)value, diagnostics, context); 276 case OljPackage.LOG_MODE_TYPE_OBJECT3: 277 return validateLogModeTypeObject3((LogModeType)value, diagnostics, context); 278 case OljPackage.NAME_TYPE: 279 return validateNameType((String )value, diagnostics, context); 280 case OljPackage.NAME_TYPE1: 281 return validateNameType1((String )value, diagnostics, context); 282 case OljPackage.OID_LOGIC_TYPE_OBJECT: 283 return validateOidLogicTypeObject((OidLogicType)value, diagnostics, context); 284 case OljPackage.OID_LOGIC_TYPE_OBJECT1: 285 return validateOidLogicTypeObject1((OidLogicType)value, diagnostics, context); 286 case OljPackage.ON_ERROR_CONTINUE_TYPE_OBJECT: 287 return validateOnErrorContinueTypeObject((OnErrorContinueType)value, diagnostics, context); 288 case OljPackage.ON_ERROR_CONTINUE_TYPE_OBJECT1: 289 return validateOnErrorContinueTypeObject1((OnErrorContinueType)value, diagnostics, context); 290 case OljPackage.ON_ERROR_CONTINUE_TYPE_OBJECT2: 291 return validateOnErrorContinueTypeObject2((OnErrorContinueType)value, diagnostics, context); 292 case OljPackage.RELATION_MODE_TYPE_OBJECT: 293 return validateRelationModeTypeObject((RelationModeType)value, diagnostics, context); 294 case OljPackage.SET_CURSOR_NAME_TYPE_OBJECT: 295 return validateSetCursorNameTypeObject((SetCursorNameType)value, diagnostics, context); 296 case OljPackage.SET_CURSOR_NAME_TYPE_OBJECT1: 297 return validateSetCursorNameTypeObject1((SetCursorNameType)value, diagnostics, context); 298 case OljPackage.SET_CURSOR_NAME_TYPE_OBJECT2: 299 return validateSetCursorNameTypeObject2((SetCursorNameType)value, diagnostics, context); 300 case OljPackage.SET_FETCH_SIZE_TYPE_OBJECT: 301 return validateSetFetchSizeTypeObject((SetFetchSizeType)value, diagnostics, context); 302 case OljPackage.SET_FETCH_SIZE_TYPE_OBJECT1: 303 return validateSetFetchSizeTypeObject1((SetFetchSizeType)value, diagnostics, context); 304 case OljPackage.SET_FETCH_SIZE_TYPE_OBJECT2: 305 return validateSetFetchSizeTypeObject2((SetFetchSizeType)value, diagnostics, context); 306 case OljPackage.TABLE_MODE_TYPE_OBJECT: 307 return validateTableModeTypeObject((TableModeType)value, diagnostics, context); 308 case OljPackage.TO_HEX_TYPE_OBJECT: 309 return validateToHexTypeObject((ToHexType)value, diagnostics, context); 310 case OljPackage.VALUE_MODE_TYPE_OBJECT: 311 return validateValueModeTypeObject((ValueModeType)value, diagnostics, context); 312 case OljPackage.VALUE_MODE_TYPE_OBJECT1: 313 return validateValueModeTypeObject1((ValueModeType)value, diagnostics, context); 314 case OljPackage.VALUE_MODE_TYPE_OBJECT2: 315 return validateValueModeTypeObject2((ValueModeType)value, diagnostics, context); 316 case OljPackage.VALUE_MODE_TYPE_OBJECT3: 317 return validateValueModeTypeObject3((ValueModeType)value, diagnostics, context); 318 case OljPackage.VALUE_MODE_TYPE_OBJECT4: 319 return validateValueModeTypeObject4((ValueModeType)value, diagnostics, context); 320 case OljPackage.VALUE_MODE_TYPE_OBJECT5: 321 return validateValueModeTypeObject5((ValueModeType)value, diagnostics, context); 322 case OljPackage.VALUE_MODE_TYPE_OBJECT6: 323 return validateValueModeTypeObject6((ValueModeType)value, diagnostics, context); 324 default: 325 return true; 326 } 327 } 328 329 334 public boolean validateConstantColumnsType(ConstantColumnsType constantColumnsType, DiagnosticChain diagnostics, Map context) { 335 return validate_EveryDefaultConstraint(constantColumnsType, diagnostics, context); 336 } 337 338 343 public boolean validateConstantColumnType(ConstantColumnType constantColumnType, DiagnosticChain diagnostics, Map context) { 344 return validate_EveryDefaultConstraint(constantColumnType, diagnostics, context); 345 } 346 347 352 public boolean validateCopyTableType(CopyTableType copyTableType, DiagnosticChain diagnostics, Map context) { 353 return validate_EveryDefaultConstraint(copyTableType, diagnostics, context); 354 } 355 356 361 public boolean validateCounterColumnsType(CounterColumnsType counterColumnsType, DiagnosticChain diagnostics, Map context) { 362 return validate_EveryDefaultConstraint(counterColumnsType, diagnostics, context); 363 } 364 365 370 public boolean validateCounterColumnType(CounterColumnType counterColumnType, DiagnosticChain diagnostics, Map context) { 371 return validate_EveryDefaultConstraint(counterColumnType, diagnostics, context); 372 } 373 374 379 public boolean validateDefinitionIncludeType(DefinitionIncludeType definitionIncludeType, DiagnosticChain diagnostics, Map context) { 380 return validate_EveryDefaultConstraint(definitionIncludeType, diagnostics, context); 381 } 382 383 388 public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map context) { 389 return validate_EveryDefaultConstraint(documentRoot, diagnostics, context); 390 } 391 392 397 public boolean validateEchoType(EchoType echoType, DiagnosticChain diagnostics, Map context) { 398 return validate_EveryDefaultConstraint(echoType, diagnostics, context); 399 } 400 401 406 public boolean validateImportDefinitionType(ImportDefinitionType importDefinitionType, DiagnosticChain diagnostics, Map context) { 407 return validate_EveryDefaultConstraint(importDefinitionType, diagnostics, context); 408 } 409 410 415 public boolean validateIncludeType(IncludeType includeType, DiagnosticChain diagnostics, Map context) { 416 return validate_EveryDefaultConstraint(includeType, diagnostics, context); 417 } 418 419 424 public boolean validateJavaScriptType(JavaScriptType javaScriptType, DiagnosticChain diagnostics, Map context) { 425 return validate_EveryDefaultConstraint(javaScriptType, diagnostics, context); 426 } 427 428 433 public boolean validateJdbcDefaultParametersType(JdbcDefaultParametersType jdbcDefaultParametersType, DiagnosticChain diagnostics, Map context) { 434 return validate_EveryDefaultConstraint(jdbcDefaultParametersType, diagnostics, context); 435 } 436 437 442 public boolean validateJdbcParametersType(JdbcParametersType jdbcParametersType, DiagnosticChain diagnostics, Map context) { 443 return validate_EveryDefaultConstraint(jdbcParametersType, diagnostics, context); 444 } 445 446 451 public boolean validateJdbcSourceParametersType(JdbcSourceParametersType jdbcSourceParametersType, DiagnosticChain diagnostics, Map context) { 452 return validate_EveryDefaultConstraint(jdbcSourceParametersType, diagnostics, context); 453 } 454 455 460 public boolean validateJdbcSourceParameterType(JdbcSourceParameterType jdbcSourceParameterType, DiagnosticChain diagnostics, Map context) { 461 return validate_EveryDefaultConstraint(jdbcSourceParameterType, diagnostics, context); 462 } 463 464 469 public boolean validateJdbcSourceTargetParametersType(JdbcSourceTargetParametersType jdbcSourceTargetParametersType, DiagnosticChain diagnostics, Map context) { 470 return validate_EveryDefaultConstraint(jdbcSourceTargetParametersType, diagnostics, context); 471 } 472 473 478 public boolean validateJdbcTargetParametersType(JdbcTargetParametersType jdbcTargetParametersType, DiagnosticChain diagnostics, Map context) { 479 return validate_EveryDefaultConstraint(jdbcTargetParametersType, diagnostics, context); 480 } 481 482 487 public boolean validateJdbcTargetParameterType(JdbcTargetParameterType jdbcTargetParameterType, DiagnosticChain diagnostics, Map context) { 488 return validate_EveryDefaultConstraint(jdbcTargetParameterType, diagnostics, context); 489 } 490 491 496 public boolean validateLoaderJobType(LoaderJobType loaderJobType, DiagnosticChain diagnostics, Map context) { 497 return validate_EveryDefaultConstraint(loaderJobType, diagnostics, context); 498 } 499 500 505 public boolean validateRelationColumnsType(RelationColumnsType relationColumnsType, DiagnosticChain diagnostics, Map context) { 506 return validate_EveryDefaultConstraint(relationColumnsType, diagnostics, context); 507 } 508 509 514 public boolean validateRelationColumnType(RelationColumnType relationColumnType, DiagnosticChain diagnostics, Map context) { 515 return validate_EveryDefaultConstraint(relationColumnType, diagnostics, context); 516 } 517 518 523 public boolean validateRestartCounterType(RestartCounterType restartCounterType, DiagnosticChain diagnostics, Map context) { 524 return validate_EveryDefaultConstraint(restartCounterType, diagnostics, context); 525 } 526 527 532 public boolean validateSortColumnsType(SortColumnsType sortColumnsType, DiagnosticChain diagnostics, Map context) { 533 return validate_EveryDefaultConstraint(sortColumnsType, diagnostics, context); 534 } 535 536 541 public boolean validateSortColumnType(SortColumnType sortColumnType, DiagnosticChain diagnostics, Map context) { 542 return validate_EveryDefaultConstraint(sortColumnType, diagnostics, context); 543 } 544 545 550 public boolean validateSourceColumnsType(SourceColumnsType sourceColumnsType, DiagnosticChain diagnostics, Map context) { 551 return validate_EveryDefaultConstraint(sourceColumnsType, diagnostics, context); 552 } 553 554 559 public boolean validateSourceColumnType(SourceColumnType sourceColumnType, DiagnosticChain diagnostics, Map context) { 560 return validate_EveryDefaultConstraint(sourceColumnType, diagnostics, context); 561 } 562 563 568 public boolean validateSqlStmtType(SqlStmtType sqlStmtType, DiagnosticChain diagnostics, Map context) { 569 return validate_EveryDefaultConstraint(sqlStmtType, diagnostics, context); 570 } 571 572 577 public boolean validateSqlType(SqlType sqlType, DiagnosticChain diagnostics, Map context) { 578 return validate_EveryDefaultConstraint(sqlType, diagnostics, context); 579 } 580 581 586 public boolean validateSubCounterColumnType(SubCounterColumnType subCounterColumnType, DiagnosticChain diagnostics, Map context) { 587 return validate_EveryDefaultConstraint(subCounterColumnType, diagnostics, context); 588 } 589 590 595 public boolean validateSubCounterKeyColumnType(SubCounterKeyColumnType subCounterKeyColumnType, DiagnosticChain diagnostics, Map context) { 596 return validate_EveryDefaultConstraint(subCounterKeyColumnType, diagnostics, context); 597 } 598 599 604 public boolean validateTablesType(TablesType tablesType, DiagnosticChain diagnostics, Map context) { 605 return validate_EveryDefaultConstraint(tablesType, diagnostics, context); 606 } 607 608 613 public boolean validateTableType(TableType tableType, DiagnosticChain diagnostics, Map context) { 614 return validate_EveryDefaultConstraint(tableType, diagnostics, context); 615 } 616 617 622 public boolean validateTargetColumnsType(TargetColumnsType targetColumnsType, DiagnosticChain diagnostics, Map context) { 623 return validate_EveryDefaultConstraint(targetColumnsType, diagnostics, context); 624 } 625 626 631 public boolean validateTargetColumnType(TargetColumnType targetColumnType, DiagnosticChain diagnostics, Map context) { 632 return validate_EveryDefaultConstraint(targetColumnType, diagnostics, context); 633 } 634 635 640 public boolean validateTimeStampColumnType(TimeStampColumnType timeStampColumnType, DiagnosticChain diagnostics, Map context) { 641 return validate_EveryDefaultConstraint(timeStampColumnType, diagnostics, context); 642 } 643 644 649 public boolean validateTransformationsType(TransformationsType transformationsType, DiagnosticChain diagnostics, Map context) { 650 return validate_EveryDefaultConstraint(transformationsType, diagnostics, context); 651 } 652 653 658 public boolean validateTransformationType(TransformationType transformationType, DiagnosticChain diagnostics, Map context) { 659 return validate_EveryDefaultConstraint(transformationType, diagnostics, context); 660 } 661 662 667 public boolean validateUserIDColumnType(UserIDColumnType userIDColumnType, DiagnosticChain diagnostics, Map context) { 668 return validate_EveryDefaultConstraint(userIDColumnType, diagnostics, context); 669 } 670 671 676 public boolean validateValueColumnsType(ValueColumnsType valueColumnsType, DiagnosticChain diagnostics, Map context) { 677 return validate_EveryDefaultConstraint(valueColumnsType, diagnostics, context); 678 } 679 680 685 public boolean validateValueColumnType(ValueColumnType valueColumnType, DiagnosticChain diagnostics, Map context) { 686 return validate_EveryDefaultConstraint(valueColumnType, diagnostics, context); 687 } 688 689 694 public boolean validateVariableColumnsType(VariableColumnsType variableColumnsType, DiagnosticChain diagnostics, Map context) { 695 return validate_EveryDefaultConstraint(variableColumnsType, diagnostics, context); 696 } 697 698 703 public boolean validateVariableColumnType(VariableColumnType variableColumnType, DiagnosticChain diagnostics, Map context) { 704 return validate_EveryDefaultConstraint(variableColumnType, diagnostics, context); 705 } 706 707 712 public boolean validateVariablesType(VariablesType variablesType, DiagnosticChain diagnostics, Map context) { 713 return validate_EveryDefaultConstraint(variablesType, diagnostics, context); 714 } 715 716 721 public boolean validateVariableType(VariableType variableType, DiagnosticChain diagnostics, Map context) { 722 return validate_EveryDefaultConstraint(variableType, diagnostics, context); 723 } 724 725 730 public boolean validateAutoMapColumnsType(Object autoMapColumnsType, DiagnosticChain diagnostics, Map context) { 731 return true; 732 } 733 734 739 public boolean validateCommitType(Object commitType, DiagnosticChain diagnostics, Map context) { 740 return true; 741 } 742 743 748 public boolean validateCounterStartValueResetType(Object counterStartValueResetType, DiagnosticChain diagnostics, Map context) { 749 return true; 750 } 751 752 757 public boolean validateDataCutOffType(Object dataCutOffType, DiagnosticChain diagnostics, Map context) { 758 return true; 759 } 760 761 766 public boolean validateDataCutOffType1(Object dataCutOffType1, DiagnosticChain diagnostics, Map context) { 767 return true; 768 } 769 770 775 public boolean validateDbVendorType(Object dbVendorType, DiagnosticChain diagnostics, Map context) { 776 return true; 777 } 778 779 784 public boolean validateDbVendorType1(Object dbVendorType1, DiagnosticChain diagnostics, Map context) { 785 return true; 786 } 787 788 793 public boolean validateDefaultModeType(Object defaultModeType, DiagnosticChain diagnostics, Map context) { 794 return true; 795 } 796 797 802 public boolean validateFromHexType(Object fromHexType, DiagnosticChain diagnostics, Map context) { 803 return true; 804 } 805 806 811 public boolean validateInsertType(Object insertType, DiagnosticChain diagnostics, Map context) { 812 return true; 813 } 814 815 820 public boolean validateLogModeType(Object logModeType, DiagnosticChain diagnostics, Map context) { 821 return true; 822 } 823 824 829 public boolean validateLogModeType1(Object logModeType1, DiagnosticChain diagnostics, Map context) { 830 return true; 831 } 832 833 838 public boolean validateLogModeType2(Object logModeType2, DiagnosticChain diagnostics, Map context) { 839 return true; 840 } 841 842 847 public boolean validateLogModeType3(Object logModeType3, DiagnosticChain diagnostics, Map context) { 848 return true; 849 } 850 851 856 public boolean validateOidLogicType(Object oidLogicType, DiagnosticChain diagnostics, Map context) { 857 return true; 858 } 859 860 865 public boolean validateOidLogicType1(Object oidLogicType1, DiagnosticChain diagnostics, Map context) { 866 return true; 867 } 868 869 874 public boolean validateOnErrorContinueType(Object onErrorContinueType, DiagnosticChain diagnostics, Map context) { 875 return true; 876 } 877 878 883 public boolean validateOnErrorContinueType1(Object onErrorContinueType1, DiagnosticChain diagnostics, Map context) { 884 return true; 885 } 886 887 892 public boolean validateOnErrorContinueType2(Object onErrorContinueType2, DiagnosticChain diagnostics, Map context) { 893 return true; 894 } 895 896 901 public boolean validateRelationModeType(Object relationModeType, DiagnosticChain diagnostics, Map context) { 902 return true; 903 } 904 905 910 public boolean validateSetCursorNameType(Object setCursorNameType, DiagnosticChain diagnostics, Map context) { 911 return true; 912 } 913 914 919 public boolean validateSetCursorNameType1(Object setCursorNameType1, DiagnosticChain diagnostics, Map context) { 920 return true; 921 } 922 923 928 public boolean validateSetCursorNameType2(Object setCursorNameType2, DiagnosticChain diagnostics, Map context) { 929 return true; 930 } 931 932 937 public boolean validateSetFetchSizeType(Object setFetchSizeType, DiagnosticChain diagnostics, Map context) { 938 return true; 939 } 940 941 946 public boolean validateSetFetchSizeType1(Object setFetchSizeType1, DiagnosticChain diagnostics, Map context) { 947 return true; 948 } 949 950 955 public boolean validateSetFetchSizeType2(Object setFetchSizeType2, DiagnosticChain diagnostics, Map context) { 956 return true; 957 } 958 959 964 public boolean validateTableModeType(Object tableModeType, DiagnosticChain diagnostics, Map context) { 965 return true; 966 } 967 968 973 public boolean validateToHexType(Object toHexType, DiagnosticChain diagnostics, Map context) { 974 return true; 975 } 976 977 982 public boolean validateValueModeType(Object valueModeType, DiagnosticChain diagnostics, Map context) { 983 return true; 984 } 985 986 991 public boolean validateValueModeType1(Object valueModeType1, DiagnosticChain diagnostics, Map context) { 992 return true; 993 } 994 995 1000 public boolean validateValueModeType2(Object valueModeType2, DiagnosticChain diagnostics, Map context) { 1001 return true; 1002 } 1003 1004 1009 public boolean validateValueModeType3(Object valueModeType3, DiagnosticChain diagnostics, Map context) { 1010 return true; 1011 } 1012 1013 1018 public boolean validateValueModeType4(Object valueModeType4, DiagnosticChain diagnostics, Map context) { 1019 return true; 1020 } 1021 1022 1027 public boolean validateValueModeType5(Object valueModeType5, DiagnosticChain diagnostics, Map context) { 1028 return true; 1029 } 1030 1031 1036 public boolean validateValueModeType6(Object valueModeType6, DiagnosticChain diagnostics, Map context) { 1037 return true; 1038 } 1039 1040 1045 public boolean validateAutoMapColumnsTypeObject(AutoMapColumnsType autoMapColumnsTypeObject, DiagnosticChain diagnostics, Map context) { 1046 return true; 1047 } 1048 1049 1054 public boolean validateCommitTypeObject(CommitType commitTypeObject, DiagnosticChain diagnostics, Map context) { 1055 return true; 1056 } 1057 1058 1063 public boolean validateCounterStartValueResetTypeObject(CounterStartValueResetType counterStartValueResetTypeObject, DiagnosticChain diagnostics, Map context) { 1064 return true; 1065 } 1066 1067 1072 public boolean validateDataCutOffTypeObject(DataCutOffType dataCutOffTypeObject, DiagnosticChain diagnostics, Map context) { 1073 return true; 1074 } 1075 1076 1081 public boolean validateDataCutOffTypeObject1(DataCutOffType dataCutOffTypeObject1, DiagnosticChain diagnostics, Map context) { 1082 return true; 1083 } 1084 1085 1090 public boolean validateDbVendorTypeObject(DbVendorType dbVendorTypeObject, DiagnosticChain diagnostics, Map context) { 1091 return true; 1092 } 1093 1094 1099 public boolean validateDbVendorTypeObject1(DbVendorType dbVendorTypeObject1, DiagnosticChain diagnostics, Map context) { 1100 return true; 1101 } 1102 1103 1108 public boolean validateDefaultModeTypeObject(DefaultModeType defaultModeTypeObject, DiagnosticChain diagnostics, Map context) { 1109 return true; 1110 } 1111 1112 1117 public boolean validateFromHexTypeObject(FromHexType fromHexTypeObject, DiagnosticChain diagnostics, Map context) { 1118 return true; 1119 } 1120 1121 1126 public boolean validateInsertTypeObject(InsertType insertTypeObject, DiagnosticChain diagnostics, Map context) { 1127 return true; 1128 } 1129 1130 1135 public boolean validateLogModeTypeObject(LogModeType logModeTypeObject, DiagnosticChain diagnostics, Map context) { 1136 return true; 1137 } 1138 1139 1144 public boolean validateLogModeTypeObject1(LogModeType logModeTypeObject1, DiagnosticChain diagnostics, Map context) { 1145 return true; 1146 } 1147 1148 1153 public boolean validateLogModeTypeObject2(LogModeType logModeTypeObject2, DiagnosticChain diagnostics, Map context) { 1154 return true; 1155 } 1156 1157 1162 public boolean validateLogModeTypeObject3(LogModeType logModeTypeObject3, DiagnosticChain diagnostics, Map context) { 1163 return true; 1164 } 1165 1166 1171 public boolean validateNameType(String nameType, DiagnosticChain diagnostics, Map context) { 1172 boolean result = validateNameType_Enumeration(nameType, diagnostics, context); 1173 return result; 1174 } 1175 1176 1182 public static final Collection NAME_TYPE__ENUMERATION__VALUES = 1183 wrapEnumerationValues 1184 (new Object [] { 1185 "JdbcDriver", 1186 "Connection.Url", 1187 "User", 1188 "Password" 1189 }); 1190 1191 1197 public boolean validateNameType_Enumeration(String nameType, DiagnosticChain diagnostics, Map context) { 1198 boolean result = NAME_TYPE__ENUMERATION__VALUES.contains(nameType); 1199 if (!result && diagnostics != null) 1200 reportEnumerationViolation(OljPackage.eINSTANCE.getNameType(), nameType, NAME_TYPE__ENUMERATION__VALUES, diagnostics, context); 1201 return result; 1202 } 1203 1204 1209 public boolean validateNameType1(String nameType1, DiagnosticChain diagnostics, Map context) { 1210 boolean result = validateNameType1_Enumeration(nameType1, diagnostics, context); 1211 return result; 1212 } 1213 1214 1220 public static final Collection NAME_TYPE1__ENUMERATION__VALUES = 1221 wrapEnumerationValues 1222 (new Object [] { 1223 "JdbcDriver", 1224 "Connection.Url", 1225 "User", 1226 "Password" 1227 }); 1228 1229 1235 public boolean validateNameType1_Enumeration(String nameType1, DiagnosticChain diagnostics, Map context) { 1236 boolean result = NAME_TYPE1__ENUMERATION__VALUES.contains(nameType1); 1237 if (!result && diagnostics != null) 1238 reportEnumerationViolation(OljPackage.eINSTANCE.getNameType1(), nameType1, NAME_TYPE1__ENUMERATION__VALUES, diagnostics, context); 1239 return result; 1240 } 1241 1242 1247 public boolean validateOidLogicTypeObject(OidLogicType oidLogicTypeObject, DiagnosticChain diagnostics, Map context) { 1248 return true; 1249 } 1250 1251 1256 public boolean validateOidLogicTypeObject1(OidLogicType oidLogicTypeObject1, DiagnosticChain diagnostics, Map context) { 1257 return true; 1258 } 1259 1260 1265 public boolean validateOnErrorContinueTypeObject(OnErrorContinueType onErrorContinueTypeObject, DiagnosticChain diagnostics, Map context) { 1266 return true; 1267 } 1268 1269 1274 public boolean validateOnErrorContinueTypeObject1(OnErrorContinueType onErrorContinueTypeObject1, DiagnosticChain diagnostics, Map context) { 1275 return true; 1276 } 1277 1278 1283 public boolean validateOnErrorContinueTypeObject2(OnErrorContinueType onErrorContinueTypeObject2, DiagnosticChain diagnostics, Map context) { 1284 return true; 1285 } 1286 1287 1292 public boolean validateRelationModeTypeObject(RelationModeType relationModeTypeObject, DiagnosticChain diagnostics, Map context) { 1293 return true; 1294 } 1295 1296 1301 public boolean validateSetCursorNameTypeObject(SetCursorNameType setCursorNameTypeObject, DiagnosticChain diagnostics, Map context) { 1302 return true; 1303 } 1304 1305 1310 public boolean validateSetCursorNameTypeObject1(SetCursorNameType setCursorNameTypeObject1, DiagnosticChain diagnostics, Map context) { 1311 return true; 1312 } 1313 1314 1319 public boolean validateSetCursorNameTypeObject2(SetCursorNameType setCursorNameTypeObject2, DiagnosticChain diagnostics, Map context) { 1320 return true; 1321 } 1322 1323 1328 public boolean validateSetFetchSizeTypeObject(SetFetchSizeType setFetchSizeTypeObject, DiagnosticChain diagnostics, Map context) { 1329 return true; 1330 } 1331 1332 1337 public boolean validateSetFetchSizeTypeObject1(SetFetchSizeType setFetchSizeTypeObject1, DiagnosticChain diagnostics, Map context) { 1338 return true; 1339 } 1340 1341 1346 public boolean validateSetFetchSizeTypeObject2(SetFetchSizeType setFetchSizeTypeObject2, DiagnosticChain diagnostics, Map context) { 1347 return true; 1348 } 1349 1350 1355 public boolean validateTableModeTypeObject(TableModeType tableModeTypeObject, DiagnosticChain diagnostics, Map context) { 1356 return true; 1357 } 1358 1359 1364 public boolean validateToHexTypeObject(ToHexType toHexTypeObject, DiagnosticChain diagnostics, Map context) { 1365 return true; 1366 } 1367 1368 1373 public boolean validateValueModeTypeObject(ValueModeType valueModeTypeObject, DiagnosticChain diagnostics, Map context) { 1374 return true; 1375 } 1376 1377 1382 public boolean validateValueModeTypeObject1(ValueModeType valueModeTypeObject1, DiagnosticChain diagnostics, Map context) { 1383 return true; 1384 } 1385 1386 1391 public boolean validateValueModeTypeObject2(ValueModeType valueModeTypeObject2, DiagnosticChain diagnostics, Map context) { 1392 return true; 1393 } 1394 1395 1400 public boolean validateValueModeTypeObject3(ValueModeType valueModeTypeObject3, DiagnosticChain diagnostics, Map context) { 1401 return true; 1402 } 1403 1404 1409 public boolean validateValueModeTypeObject4(ValueModeType valueModeTypeObject4, DiagnosticChain diagnostics, Map context) { 1410 return true; 1411 } 1412 1413 1418 public boolean validateValueModeTypeObject5(ValueModeType valueModeTypeObject5, DiagnosticChain diagnostics, Map context) { 1419 return true; 1420 } 1421 1422 1427 public boolean validateValueModeTypeObject6(ValueModeType valueModeTypeObject6, DiagnosticChain diagnostics, Map context) { 1428 return true; 1429 } 1430 1431} | Popular Tags |