1 17 package org.eclipse.emf.codegen.ecore.genmodel; 18 19 20 import java.util.Collection ; 21 import java.util.List ; 22 import java.util.Map ; 23 import java.util.Set ; 24 25 import org.eclipse.core.runtime.IStatus; 26 27 import org.eclipse.emf.codegen.jet.JETEmitter; 28 import org.eclipse.emf.codegen.jmerge.JControlModel; 29 import org.eclipse.emf.common.util.EList; 30 import org.eclipse.emf.ecore.EPackage; 31 import org.eclipse.emf.ecore.util.ExtendedMetaData; 32 import org.eclipse.jdt.core.formatter.CodeFormatter; 33 34 35 92 public interface GenModel extends GenBase{ 93 107 String getCopyrightText(); 108 109 117 void setCopyrightText(String value); 118 119 132 String getModelDirectory(); 133 134 142 void setModelDirectory(String value); 143 144 155 boolean isCreationCommands(); 156 157 165 void setCreationCommands(boolean value); 166 167 182 boolean isCreationIcons(); 183 184 192 void setCreationIcons(boolean value); 193 194 209 String getEditDirectory(); 210 211 221 void setEditDirectory(String value); 222 223 232 void unsetEditDirectory(); 233 234 244 boolean isSetEditDirectory(); 245 246 261 String getEditorDirectory(); 262 263 273 void setEditorDirectory(String value); 274 275 284 void unsetEditorDirectory(); 285 286 296 boolean isSetEditorDirectory(); 297 298 312 String getModelPluginID(); 313 314 322 void setModelPluginID(String value); 323 324 338 String getTemplateDirectory(); 339 340 348 void setTemplateDirectory(String value); 349 350 360 boolean isRuntimeJar(); 361 362 370 void setRuntimeJar(boolean value); 371 372 386 EList getForeignModel(); 387 388 398 boolean isDynamicTemplates(); 399 400 408 void setDynamicTemplates(boolean value); 409 410 424 String getRedirection(); 425 426 434 void setRedirection(String value); 435 436 446 boolean isForceOverwrite(); 447 448 456 void setForceOverwrite(boolean value); 457 458 473 String getNonExternalizedStringTag(); 474 475 487 void setNonExternalizedStringTag(String value); 488 489 503 String getModelName(); 504 505 513 void setModelName(String value); 514 515 529 String getModelPluginClass(); 530 531 539 void setModelPluginClass(String value); 540 541 557 String getEditPluginClass(); 558 559 569 void setEditPluginClass(String value); 570 571 580 void unsetEditPluginClass(); 581 582 592 boolean isSetEditPluginClass(); 593 594 610 String getEditorPluginClass(); 611 612 622 void setEditorPluginClass(String value); 623 624 633 void unsetEditorPluginClass(); 634 635 645 boolean isSetEditorPluginClass(); 646 647 662 boolean isUpdateClasspath(); 663 664 672 void setUpdateClasspath(boolean value); 673 674 688 boolean isGenerateSchema(); 689 690 698 void setGenerateSchema(boolean value); 699 700 711 boolean isNonNLSMarkers(); 712 713 724 void setNonNLSMarkers(boolean value); 725 726 740 EList getStaticPackages(); 741 742 756 EList getModelPluginVariables(); 757 758 773 String getRootExtendsInterface(); 774 775 783 void setRootExtendsInterface(String value); 784 785 800 String getRootExtendsClass(); 801 802 810 void setRootExtendsClass(String value); 811 812 826 String getRootImplementsInterface(); 827 828 GenClass getRootImplementsInterfaceGenClass(); 829 830 831 839 void setRootImplementsInterface(String value); 840 841 855 boolean isSuppressEMFTypes(); 856 857 865 void setSuppressEMFTypes(boolean value); 866 867 881 String getFeatureMapWrapperInterface(); 882 883 891 void setFeatureMapWrapperInterface(String value); 892 893 907 String getFeatureMapWrapperInternalInterface(); 908 909 917 void setFeatureMapWrapperInternalInterface(String value); 918 919 933 String getFeatureMapWrapperClass(); 934 935 943 void setFeatureMapWrapperClass(String value); 944 945 959 boolean isRuntimeCompatibility(); 960 961 969 void setRuntimeCompatibility(boolean value); 970 971 985 boolean isRichClientPlatform(); 986 987 995 void setRichClientPlatform(boolean value); 996 997 1011 boolean isReflectiveDelegation(); 1012 1013 1021 void setReflectiveDelegation(boolean value); 1022 1023 1037 boolean isCodeFormatting(); 1038 1039 1047 void setCodeFormatting(boolean value); 1048 1049 1064 String getTestsDirectory(); 1065 1066 1076 void setTestsDirectory(String value); 1077 1078 1087 void unsetTestsDirectory(); 1088 1089 1099 boolean isSetTestsDirectory(); 1100 1101 1117 String getTestSuiteClass(); 1118 1119 1129 void setTestSuiteClass(String value); 1130 1131 1140 void unsetTestSuiteClass(); 1141 1142 1152 boolean isSetTestSuiteClass(); 1153 1154 1168 String getBooleanFlagsField(); 1169 1170 1178 void setBooleanFlagsField(String value); 1179 1180 1195 int getBooleanFlagsReservedBits(); 1196 1197 1205 void setBooleanFlagsReservedBits(int value); 1206 1207 1221 String getImporterID(); 1222 1223 1231 void setImporterID(String value); 1232 1233 1248 boolean isBundleManifest(); 1249 1250 1258 void setBundleManifest(boolean value); 1259 1260 1276 EList getGenPackages(); 1277 1278 1292 EList getUsedGenPackages(); 1293 1294 EList getStaticGenPackages(); 1295 1296 void initialize(Collection ePackages); 1297 1298 String getDriverNumber(); 1299 String getDate(); 1300 1301 String getNonNLS(); 1302 String getNonNLS(int i); 1303 String getNonNLS(String s); 1304 String getNonNLS(String s, int i); 1305 1306 void markImportLocation(StringBuffer stringBuffer); 1307 void markImportLocation(StringBuffer stringBuffer, GenPackage genPackage); 1308 void emitSortedImports(); 1309 String getIndentation(StringBuffer stringBuffer); 1310 1311 String getImportedName(String qualifiedName); 1312 void addImport(String qualifiedName); 1313 void addPseudoImport(String qualifiedName); 1314 1315 JControlModel getJControlModel(); 1316 1317 JETEmitter getInterfaceEmitter(); 1318 JETEmitter getClassEmitter(); 1319 JETEmitter getEnumClassEmitter(); 1320 JETEmitter getFactoryInterfaceEmitter(); 1321 JETEmitter getFactoryClassEmitter(); 1322 JETEmitter getPackageInterfaceEmitter(); 1323 JETEmitter getPackageClassEmitter(); 1324 JETEmitter getAdapterFactoryClassEmitter(); 1325 JETEmitter getSwitchClassEmitter(); 1326 JETEmitter getValidatorClassEmitter(); 1327 JETEmitter getPluginXMLEmitter(); 1328 JETEmitter getManifestMFEmitter(); 1329 JETEmitter getModelPluginClassEmitter(); 1330 JETEmitter getResourceClassEmitter(); 1331 JETEmitter getResourceFactoryClassEmitter(); 1332 JETEmitter getBuildPropertiesEmitter(); 1333 1334 boolean hasEditSupport(); 1338 1339 JETEmitter getItemProviderEmitter(); 1340 JETEmitter getItemProviderAdapterFactoryEmitter(); 1341 JETEmitter getEditPluginClassEmitter(); 1342 JETEmitter getEditPluginXMLEmitter(); 1343 JETEmitter getEditManifestMFEmitter(); 1344 JETEmitter getEditPluginPropertiesEmitter(); 1345 JETEmitter getEditBuildPropertiesEmitter(); 1346 1347 boolean hasEditorSupport(); 1351 1352 JETEmitter getEditorEmitter(); 1353 JETEmitter getActionBarContributorEmitter(); 1354 JETEmitter getModelWizardEmitter(); 1355 JETEmitter getEditorAdvisorEmitter(); 1356 JETEmitter getEditorPluginClassEmitter(); 1357 JETEmitter getEditorPluginXMLEmitter(); 1358 JETEmitter getEditorManifestMFEmitter(); 1359 JETEmitter getEditorPluginPropertiesEmitter(); 1360 JETEmitter getEditorBuildPropertiesEmitter(); 1361 1362 boolean hasTestSupport(); 1366 1367 JETEmitter getTestCaseEmitter(); 1368 JETEmitter getModelTestSuiteEmitter(); 1369 JETEmitter getPackageTestSuiteEmitter(); 1370 JETEmitter getPackageExampleEmitter(); 1371 JETEmitter getTestsPluginXMLEmitter(); 1372 JETEmitter getTestsManifestMFEmitter(); 1373 JETEmitter getTestsPluginPropertiesEmitter(); 1374 JETEmitter getTestsBuildPropertiesEmitter(); 1375 1376 1379 String getModelProjectDirectory(); 1380 String getEditProjectDirectory(); 1381 String getEditorProjectDirectory(); 1382 String getTestsProjectDirectory(); 1383 1384 boolean sameModelEditProject(); 1385 boolean sameEditEditorProject(); 1386 boolean sameModelEditorProject(); 1387 boolean sameModelTestsProject(); 1388 1389 String getEditIconsDirectory(); 1390 String getEditorIconsDirectory(); 1391 1392 void setCanGenerate(boolean canGenerate); 1393 1394 GenPackage findGenPackage(EPackage ePackage); 1395 1396 List getAllGenPackagesWithClassifiers(); 1397 List getAllUsedGenPackagesWithClassifiers(); 1398 List getAllGenAndUsedGenPackagesWithClassifiers(); 1399 List getAllGenUsedAndStaticGenPackagesWithClassifiers(); 1400 1401 boolean hasModelPluginClass(); 1402 boolean hasPluginSupport(); 1403 1404 String getModelPluginClassName(); 1405 String getModelPluginPackageName(); 1406 String getQualifiedModelPluginClassName(); 1407 1408 String getEditPluginClassName(); 1409 String getEditPluginPackageName(); 1410 String getQualifiedEditPluginClassName(); 1411 1412 String getEditorPluginClassName(); 1413 String getEditorPluginPackageName(); 1414 String getEditorAdvisorClassName(); 1415 String getQualifiedEditorPluginClassName(); 1416 String getQualifiedEditorAdvisorClassName(); 1417 1418 String getTestSuiteClassName(); 1419 String getTestSuitePackageName(); 1420 String getQualifiedTestSuiteClassName(); 1421 1422 String getEditPluginID(); 1423 String getEditorPluginID(); 1424 String getTestsPluginID(); 1425 1426 List getModelQualifiedPackageNames(); 1427 List getModelRequiredPlugins(); 1428 List getEditQualifiedPackageNames(); 1429 List getEditRequiredPlugins(); 1430 List getEditorQualifiedPackageNames(); 1431 List getEditorRequiredPlugins(); 1432 List getTestsQualifiedPackageNames(); 1433 List getTestsRequiredPlugins(); 1434 1435 List getEditResourceDelegateImportedPluginClassNames(); 1436 1437 1440 boolean reconcile(GenModel oldGenModelVersion); 1441 1442 List getMissingPackages(); 1443 1444 boolean hasXMLDependency(); 1445 1446 IStatus validate(); 1447 1448 String getXMLEncodingChoices(); 1449 1450 List getEffectiveModelPluginVariables(); 1451 1452 boolean needsRuntimeCompatibility(); 1453 1454 List getAllGenFeatures(); 1455 List getFilteredAllGenFeatures(); 1457 1460 void setCodeFormatterOptions(Map options); 1461 1462 1465 CodeFormatter createCodeFormatter(); 1466 1467 boolean isBooleanFlagsEnabled(); 1468 1469 GenModel createGenModel(); 1470 GenPackage createGenPackage(); 1471 GenClass createGenClass(); 1472 GenFeature createGenFeature(); 1473 GenEnum createGenEnum(); 1474 GenEnumLiteral createGenEnumLiteral(); 1475 GenDataType createGenDataType(); 1476 GenOperation createGenOperation(); 1477 GenParameter createGenParameter(); 1478 1479 Set getPropertyCategories(); 1480 1481 boolean hasLocalGenModel(); 1482 String getRelativeGenModelLocation(); 1483 1484 String getPropertyCategoryKey(String category); 1485 1486 ExtendedMetaData getExtendedMetaData(); 1487 1488 List computeMissingUsedGenPackages(); 1489} 1490 | Popular Tags |