From 8b7413cab3354365b45e98445509ba837ab9cbfb Mon Sep 17 00:00:00 2001 From: eparovyshnaya Date: Thu, 22 Oct 2020 14:50:22 +0300 Subject: [PATCH 1/3] Bug 568093 Create GenModel for Floating license pack ecore Generated .model and .edit code Signed-off-by: eparovyshnaya --- .../.classpath | 7 + .../.project | 39 + .../.settings/org.eclipse.jdt.core.prefs | 115 ++ .../.settings/org.eclipse.jdt.ui.prefs | 123 ++ .../org.eclipse.pde.ds.annotations.prefs | 8 + .../.settings/org.eclipse.pde.prefs | 34 + .../META-INF/MANIFEST.MF | 19 + .../about.html | 36 + .../build.properties | 21 + .../plugin.properties | 72 ++ .../plugin.xml | 32 + .../edit/FLoatingLicensesEditPlugin.java | 102 ++ .../EvaluationInstructionsItemProvider.java | 161 +++ .../providers/FeatureGrantItemProvider.java | 227 ++++ .../FloatingItemProviderAdapterFactory.java | 405 +++++++ .../FloatingLicensePackItemProvider.java | 177 +++ .../providers/FloatingServerItemProvider.java | 159 +++ .../LicenseRequisitesItemProvider.java | 229 ++++ .../providers/ProductRefItemProvider.java | 161 +++ .../edit/providers/UserGrantItemProvider.java | 159 +++ .../ValidityPeriodClosedItemProvider.java | 163 +++ .../providers/VersionMatchItemProvider.java | 161 +++ .../model/api/EvaluationInstructions.java | 69 ++ .../lic/floating/model/api/FeatureGrant.java | 163 +++ .../model/api/FloatingLicensePack.java | 99 ++ .../floating/model/api/FloatingServer.java | 69 ++ .../floating/model/api/LicenseRequisites.java | 163 +++ .../lic/floating/model/api/ProductRef.java | 69 ++ .../lic/floating/model/api/UserGrant.java | 69 ++ .../floating/model/api/ValidityPeriod.java | 18 + .../model/api/ValidityPeriodClosed.java | 69 ++ .../lic/floating/model/api/VersionMatch.java | 69 ++ .../impl/EvaluationInstructionsImpl.java | 235 ++++ .../floating/model/impl/FeatureGrantImpl.java | 560 +++++++++ .../model/impl/FloatingFactoryImpl.java | 205 ++++ .../model/impl/FloatingLicensePackImpl.java | 354 ++++++ .../model/impl/FloatingPackageImpl.java | 769 +++++++++++++ .../model/impl/FloatingServerImpl.java | 246 ++++ .../model/impl/LicenseRequisitesImpl.java | 489 ++++++++ .../floating/model/impl/ProductRefImpl.java | 235 ++++ .../floating/model/impl/UserGrantImpl.java | 245 ++++ .../model/impl/ValidityPeriodClosedImpl.java | 236 ++++ .../floating/model/impl/VersionMatchImpl.java | 234 ++++ .../floating/model/meta/FloatingFactory.java | 124 ++ .../floating/model/meta/FloatingPackage.java | 1008 +++++++++++++++++ .../model/util/FloatingAdapterFactory.java | 292 +++++ .../floating/model/util/FloatingSwitch.java | 314 +++++ .../model/AssignGrantIdentifiers.java | 45 + .../floating/model/LicensesClassMetadata.java | 47 + 49 files changed, 9105 insertions(+) create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/.classpath create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/.project create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.jdt.core.prefs create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.jdt.ui.prefs create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.pde.ds.annotations.prefs create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.pde.prefs create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/META-INF/MANIFEST.MF create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/about.html create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/build.properties create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/plugin.properties create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/plugin.xml create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/FLoatingLicensesEditPlugin.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/EvaluationInstructionsItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FeatureGrantItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingLicensePackItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingServerItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/LicenseRequisitesItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ProductRefItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/UserGrantItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ValidityPeriodClosedItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/VersionMatchItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/EvaluationInstructions.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FeatureGrant.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingLicensePack.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingServer.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/LicenseRequisites.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ProductRef.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/UserGrant.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriod.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriodClosed.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/VersionMatch.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/EvaluationInstructionsImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FeatureGrantImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingLicensePackImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingServerImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/LicenseRequisitesImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ProductRefImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/UserGrantImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ValidityPeriodClosedImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/VersionMatchImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingPackage.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/AssignGrantIdentifiers.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/LicensesClassMetadata.java diff --git a/bundles/org.eclipse.passage.lic.floating.edit/.classpath b/bundles/org.eclipse.passage.lic.floating.edit/.classpath new file mode 100644 index 000000000..26e67d64a --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/bundles/org.eclipse.passage.lic.floating.edit/.project b/bundles/org.eclipse.passage.lic.floating.edit/.project new file mode 100644 index 000000000..a7f0869e9 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/.project @@ -0,0 +1,39 @@ + + + org.eclipse.passage.lic.floating.edit + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.pde.ds.core.builder + + + + + org.eclipse.pde.api.tools.apiAnalysisBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + org.eclipse.pde.api.tools.apiAnalysisNature + + diff --git a/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..4a4b1a446 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,115 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullable.secondary= +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.APILeak=warning +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=error +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=warning +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=warning +org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning +org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning +org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled +org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=warning +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 000000000..15649cf27 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,123 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_missing_override_annotations_interface_methods=true +cleanup.add_serial_version_id=false +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_functional_interfaces=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=false +cleanup.format_source_code=false +cleanup.format_source_code_changes_only=false +cleanup.insert_inferred_type_arguments=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=false +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_redundant_modifiers=false +cleanup.remove_redundant_semicolons=false +cleanup.remove_redundant_type_arguments=false +cleanup.remove_trailing_whitespaces=false +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_anonymous_class_creation=false +cleanup.use_blocks=false +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_lambda=true +cleanup.use_parentheses_in_expressions=false +cleanup.use_this_for_non_static_field_access=false +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=false +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup_profile=org.eclipse.jdt.ui.default.eclipse_clean_up_profile +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_settings_version=16 +org.eclipse.jdt.ui.text.custom_code_templates= +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_functional_interfaces=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=true +sp_cleanup.insert_inferred_type_arguments=false +sp_cleanup.make_local_variable_final=true +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=false +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_redundant_modifiers=false +sp_cleanup.remove_redundant_semicolons=false +sp_cleanup.remove_redundant_type_arguments=false +sp_cleanup.remove_trailing_whitespaces=false +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_anonymous_class_creation=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_lambda=true +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.pde.ds.annotations.prefs b/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.pde.ds.annotations.prefs new file mode 100644 index 000000000..73a356b6d --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.pde.ds.annotations.prefs @@ -0,0 +1,8 @@ +classpath=true +dsVersion=V1_3 +eclipse.preferences.version=1 +enabled=true +generateBundleActivationPolicyLazy=true +path=OSGI-INF +validationErrorLevel=error +validationErrorLevel.missingImplicitUnbindMethod=error diff --git a/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.pde.prefs new file mode 100644 index 000000000..47bd5bdfc --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/.settings/org.eclipse.pde.prefs @@ -0,0 +1,34 @@ +compilers.f.unresolved-features=1 +compilers.f.unresolved-plugins=1 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.build.bin.includes=1 +compilers.p.build.encodings=2 +compilers.p.build.java.compiler=2 +compilers.p.build.java.compliance=1 +compilers.p.build.missing.output=2 +compilers.p.build.output.library=1 +compilers.p.build.source.library=1 +compilers.p.build.src.includes=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=2 +compilers.p.missing-version-export-package=2 +compilers.p.missing-version-import-package=2 +compilers.p.missing-version-require-bundle=1 +compilers.p.no-required-att=0 +compilers.p.no.automatic.module=1 +compilers.p.not-externalized-att=0 +compilers.p.service.component.without.lazyactivation=1 +compilers.p.unknown-attribute=1 +compilers.p.unknown-class=1 +compilers.p.unknown-element=1 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=1 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=0 +compilers.s.create-docs=false +compilers.s.doc-folder=doc +compilers.s.open-tags=1 +eclipse.preferences.version=1 diff --git a/bundles/org.eclipse.passage.lic.floating.edit/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.floating.edit/META-INF/MANIFEST.MF new file mode 100644 index 000000000..0dbde6ce0 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/META-INF/MANIFEST.MF @@ -0,0 +1,19 @@ +Manifest-Version: 1.0 +Automatic-Module-Name: org.eclipse.passage.lic.floating.edit +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.passage.lic.floating.edit;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-Name: %pluginName +Bundle-Vendor: %providerName +Bundle-Copyright: %Bundle-Copyright +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, + org.eclipse.passage.lic.floating.model;bundle-version="1.0.0";visibility:=reexport, + org.eclipse.emf.edit;bundle-version="0.0.0";visibility:=reexport +Import-Package: org.osgi.framework +Export-Package: org.eclipse.passage.lic.floating.edit, + org.eclipse.passage.lic.floating.edit.providers +Bundle-ClassPath: . +Bundle-Activator: org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin$Implementation$Activator +Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.floating.edit/about.html b/bundles/org.eclipse.passage.lic.floating.edit/about.html new file mode 100644 index 000000000..164f781a8 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/about.html @@ -0,0 +1,36 @@ + + + + +About + + +

About This Content

+ +

November 30, 2017

+

License

+ +

+ The Eclipse Foundation makes available all content in this plug-in + ("Content"). Unless otherwise indicated below, the Content + is provided to you under the terms and conditions of the Eclipse + Public License Version 2.0 ("EPL"). A copy of the EPL is + available at http://www.eclipse.org/legal/epl-2.0. + For purposes of the EPL, "Program" will mean the Content. +

+ +

+ If you did not receive this Content directly from the Eclipse + Foundation, the Content is being redistributed by another party + ("Redistributor") and different terms and conditions may + apply to your use of any object code in the Content. Check the + Redistributor's license that was provided with the Content. If no such + license exists, contact the Redistributor. Unless otherwise indicated + below, the terms and conditions of the EPL still apply to any source + code in the Content and such source code may be obtained at http://www.eclipse.org. +

+ + + \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.floating.edit/build.properties b/bundles/org.eclipse.passage.lic.floating.edit/build.properties new file mode 100644 index 000000000..917afec5b --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/build.properties @@ -0,0 +1,21 @@ +############################################################################### +# Copyright (c) 2020 ArSysOp and others +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License 2.0 which is available at +# https://www.eclipse.org/legal/epl-2.0/. +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# ArSysOp - initial API and implementation +############################################################################### + +source.. = src-gen/ +output.. = bin/ +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + about.html diff --git a/bundles/org.eclipse.passage.lic.floating.edit/plugin.properties b/bundles/org.eclipse.passage.lic.floating.edit/plugin.properties new file mode 100644 index 000000000..2cd8c689c --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/plugin.properties @@ -0,0 +1,72 @@ +############################################################################### +# Copyright (c) 2020 ArSysOp and others +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License 2.0 which is available at +# https://www.eclipse.org/legal/epl-2.0/. +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# ArSysOp - initial API and implementation +############################################################################### + +pluginName = Passage LIC Floating Licenses Edit Support +providerName=Eclipse Passage + +Bundle-Copyright = Copyright (c) 2020 ArSysOp and others.\n\ +\n\ +This program and the accompanying materials are made\n\ +available under the terms of the Eclipse Public License 2.0\n\ +which is available at https://www.eclipse.org/legal/epl-2.0/\n\ +\n\ +SPDX-License-Identifier: EPL-2.0\n\ +_UI_CreateChild_text = {0} +_UI_CreateChild_text2 = {1} {0} +_UI_CreateChild_text3 = {1} +_UI_CreateChild_tooltip = Create New {0} Under {1} Feature +_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. +_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. + _UI_PropertyDescriptor_description = The {0} of the {1} + _UI_FloatingLicensePack_type = License Pack +_UI_LicenseRequisites_type = License Requisites +_UI_ProductRef_type = Product Ref +_UI_FloatingServer_type = Server +_UI_UserGrant_type = User Grant +_UI_FeatureGrant_type = Feature Grant +_UI_ValidityPeriod_type = Validity Period +_UI_ValidityPeriodClosed_type = Validity Period Closed +_UI_EvaluationInstructions_type = Evaluation Instructions +_UI_VersionMatch_type = Version Match +_UI_Unknown_type = Object + _UI_Unknown_datatype= Value + _UI_FloatingLicensePack_license_feature = License +_UI_FloatingLicensePack_host_feature = Host +_UI_FloatingLicensePack_users_feature = Users +_UI_FloatingLicensePack_features_feature = Features +_UI_LicenseRequisites_identifier_feature = Identifier +_UI_LicenseRequisites_issueDate_feature = Issue Date +_UI_LicenseRequisites_company_feature = Company +_UI_LicenseRequisites_plan_feature = Plan +_UI_LicenseRequisites_product_feature = Product +_UI_LicenseRequisites_valid_feature = Valid +_UI_ProductRef_product_feature = Product +_UI_ProductRef_version_feature = Version +_UI_FloatingServer_identifier_feature = Identifier +_UI_FloatingServer_authentication_feature = Authentication +_UI_UserGrant_user_feature = User +_UI_UserGrant_authentication_feature = Authentication +_UI_FeatureGrant_identifier_feature = Identifier +_UI_FeatureGrant_feature_feature = Feature +_UI_FeatureGrant_version_feature = Version +_UI_FeatureGrant_valid_feature = Valid +_UI_FeatureGrant_capacity_feature = Capacity +_UI_FeatureGrant_pack_feature = Pack +_UI_ValidityPeriodClosed_from_feature = From +_UI_ValidityPeriodClosed_until_feature = Until +_UI_EvaluationInstructions_type_feature = Type +_UI_EvaluationInstructions_expression_feature = Expression +_UI_VersionMatch_version_feature = Version +_UI_VersionMatch_rule_feature = Rule +_UI_Unknown_feature = Unspecified + \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.floating.edit/plugin.xml b/bundles/org.eclipse.passage.lic.floating.edit/plugin.xml new file mode 100644 index 000000000..f57fe4aba --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/plugin.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/FLoatingLicensesEditPlugin.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/FLoatingLicensesEditPlugin.java new file mode 100644 index 000000000..efddd27bb --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/FLoatingLicensesEditPlugin.java @@ -0,0 +1,102 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.osgi.framework.BundleActivator; + +/** + * This is the central singleton for the Floating edit plugin. + * + * + * @generated + */ +public final class FLoatingLicensesEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final FLoatingLicensesEditPlugin INSTANCE = new FLoatingLicensesEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public FLoatingLicensesEditPlugin() { + super(new ResourceLocator[] {}); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + + /** + * The actual implementation of the purely OSGi-compatible Bundle Activator. + * + * + * @generated + */ + public static final class Activator extends EMFPlugin.OSGiDelegatingBundleActivator { + @Override + protected BundleActivator createBundle() { + return new Implementation(); + } + } + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/EvaluationInstructionsItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/EvaluationInstructionsItemProvider.java new file mode 100644 index 000000000..a862611df --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/EvaluationInstructionsItemProvider.java @@ -0,0 +1,161 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions} object. + * + * + * @generated + */ +public class EvaluationInstructionsItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public EvaluationInstructionsItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addTypePropertyDescriptor(object); + addExpressionPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Type feature. + * + * + * @generated + */ + protected void addTypePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_EvaluationInstructions_type_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_EvaluationInstructions_type_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_EvaluationInstructions_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getEvaluationInstructions_Type(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Expression feature. + * + * + * @generated + */ + protected void addExpressionPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_EvaluationInstructions_expression_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_EvaluationInstructions_expression_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_EvaluationInstructions_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getEvaluationInstructions_Expression(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((EvaluationInstructions) object).getType(); + return label == null || label.length() == 0 ? getString("_UI_EvaluationInstructions_type") : //$NON-NLS-1$ + getString("_UI_EvaluationInstructions_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(EvaluationInstructions.class)) { + case FloatingPackage.EVALUATION_INSTRUCTIONS__TYPE: + case FloatingPackage.EVALUATION_INSTRUCTIONS__EXPRESSION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FeatureGrantItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FeatureGrantItemProvider.java new file mode 100644 index 000000000..328180608 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FeatureGrantItemProvider.java @@ -0,0 +1,227 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant} object. + * + * + * @generated + */ +public class FeatureGrantItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FeatureGrantItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addIdentifierPropertyDescriptor(object); + addFeaturePropertyDescriptor(object); + addVersionPropertyDescriptor(object); + addValidPropertyDescriptor(object); + addCapacityPropertyDescriptor(object); + addPackPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Identifier feature. + * + * + * @generated + */ + protected void addIdentifierPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FeatureGrant_identifier_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FeatureGrant_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FeatureGrant_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFeatureGrant_Identifier(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Feature feature. + * + * + * @generated + */ + protected void addFeaturePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FeatureGrant_feature_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FeatureGrant_feature_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FeatureGrant_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFeatureGrant_Feature(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Version feature. + * + * + * @generated + */ + protected void addVersionPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FeatureGrant_version_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FeatureGrant_version_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FeatureGrant_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFeatureGrant_Version(), true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Valid feature. + * + * + * @generated + */ + protected void addValidPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FeatureGrant_valid_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FeatureGrant_valid_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FeatureGrant_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFeatureGrant_Valid(), true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Capacity feature. + * + * + * @generated + */ + protected void addCapacityPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FeatureGrant_capacity_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FeatureGrant_capacity_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FeatureGrant_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFeatureGrant_Capacity(), true, false, false, + ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Pack feature. + * + * + * @generated + */ + protected void addPackPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FeatureGrant_pack_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FeatureGrant_pack_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FeatureGrant_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFeatureGrant_Pack(), true, false, true, null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((FeatureGrant) object).getIdentifier(); + return label == null || label.length() == 0 ? getString("_UI_FeatureGrant_type") : //$NON-NLS-1$ + getString("_UI_FeatureGrant_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(FeatureGrant.class)) { + case FloatingPackage.FEATURE_GRANT__IDENTIFIER: + case FloatingPackage.FEATURE_GRANT__FEATURE: + case FloatingPackage.FEATURE_GRANT__CAPACITY: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java new file mode 100644 index 000000000..5b0e647a3 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java @@ -0,0 +1,405 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.edit.provider.ChangeNotifier; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.ComposedAdapterFactory; +import org.eclipse.emf.edit.provider.IChangeNotifier; +import org.eclipse.emf.edit.provider.IDisposable; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.INotifyChangedListener; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; + +/** + * This is the factory that is used to provide the interfaces needed to support Viewers. + * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. + * The adapters also support Eclipse property sheets. + * Note that most of the adapters are shared among multiple instances. + * + * + * @generated + */ +public class FloatingItemProviderAdapterFactory extends FloatingAdapterFactory + implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public FloatingItemProviderAdapterFactory() { + supportedTypes.add(IEditingDomainItemProvider.class); + supportedTypes.add(IStructuredItemContentProvider.class); + supportedTypes.add(ITreeItemContentProvider.class); + supportedTypes.add(IItemLabelProvider.class); + supportedTypes.add(IItemPropertySource.class); + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack} instances. + * + * + * @generated + */ + protected FloatingLicensePackItemProvider floatingLicensePackItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack}. + * + * + * @generated + */ + @Override + public Adapter createFloatingLicensePackAdapter() { + if (floatingLicensePackItemProvider == null) { + floatingLicensePackItemProvider = new FloatingLicensePackItemProvider(this); + } + + return floatingLicensePackItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites} instances. + * + * + * @generated + */ + protected LicenseRequisitesItemProvider licenseRequisitesItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites}. + * + * + * @generated + */ + @Override + public Adapter createLicenseRequisitesAdapter() { + if (licenseRequisitesItemProvider == null) { + licenseRequisitesItemProvider = new LicenseRequisitesItemProvider(this); + } + + return licenseRequisitesItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.ProductRef} instances. + * + * + * @generated + */ + protected ProductRefItemProvider productRefItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.ProductRef}. + * + * + * @generated + */ + @Override + public Adapter createProductRefAdapter() { + if (productRefItemProvider == null) { + productRefItemProvider = new ProductRefItemProvider(this); + } + + return productRefItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.FloatingServer} instances. + * + * + * @generated + */ + protected FloatingServerItemProvider floatingServerItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.FloatingServer}. + * + * + * @generated + */ + @Override + public Adapter createFloatingServerAdapter() { + if (floatingServerItemProvider == null) { + floatingServerItemProvider = new FloatingServerItemProvider(this); + } + + return floatingServerItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.UserGrant} instances. + * + * + * @generated + */ + protected UserGrantItemProvider userGrantItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.UserGrant}. + * + * + * @generated + */ + @Override + public Adapter createUserGrantAdapter() { + if (userGrantItemProvider == null) { + userGrantItemProvider = new UserGrantItemProvider(this); + } + + return userGrantItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant} instances. + * + * + * @generated + */ + protected FeatureGrantItemProvider featureGrantItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant}. + * + * + * @generated + */ + @Override + public Adapter createFeatureGrantAdapter() { + if (featureGrantItemProvider == null) { + featureGrantItemProvider = new FeatureGrantItemProvider(this); + } + + return featureGrantItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed} instances. + * + * + * @generated + */ + protected ValidityPeriodClosedItemProvider validityPeriodClosedItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed}. + * + * + * @generated + */ + @Override + public Adapter createValidityPeriodClosedAdapter() { + if (validityPeriodClosedItemProvider == null) { + validityPeriodClosedItemProvider = new ValidityPeriodClosedItemProvider(this); + } + + return validityPeriodClosedItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions} instances. + * + * + * @generated + */ + protected EvaluationInstructionsItemProvider evaluationInstructionsItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions}. + * + * + * @generated + */ + @Override + public Adapter createEvaluationInstructionsAdapter() { + if (evaluationInstructionsItemProvider == null) { + evaluationInstructionsItemProvider = new EvaluationInstructionsItemProvider(this); + } + + return evaluationInstructionsItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.VersionMatch} instances. + * + * + * @generated + */ + protected VersionMatchItemProvider versionMatchItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.VersionMatch}. + * + * + * @generated + */ + @Override + public Adapter createVersionMatchAdapter() { + if (versionMatchItemProvider == null) { + versionMatchItemProvider = new VersionMatchItemProvider(this); + } + + return versionMatchItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + @Override + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + @Override + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @generated + */ + @Override + public boolean isFactoryForType(Object type) { + return supportedTypes.contains(type) || super.isFactoryForType(type); + } + + /** + * This implementation substitutes the factory itself as the key for the adapter. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @generated + */ + @Override + public Object adapt(Object object, Object type) { + if (isFactoryForType(type)) { + Object adapter = super.adapt(object, type); + if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { + return adapter; + } + } + + return null; + } + + /** + * This adds a listener. + * + * + * @generated + */ + @Override + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + @Override + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @generated + */ + @Override + public void fireNotifyChanged(Notification notification) { + changeNotifier.fireNotifyChanged(notification); + + if (parentAdapterFactory != null) { + parentAdapterFactory.fireNotifyChanged(notification); + } + } + + /** + * This disposes all of the item providers created by this factory. + * + * + * @generated + */ + @Override + public void dispose() { + if (floatingLicensePackItemProvider != null) + floatingLicensePackItemProvider.dispose(); + if (licenseRequisitesItemProvider != null) + licenseRequisitesItemProvider.dispose(); + if (productRefItemProvider != null) + productRefItemProvider.dispose(); + if (floatingServerItemProvider != null) + floatingServerItemProvider.dispose(); + if (userGrantItemProvider != null) + userGrantItemProvider.dispose(); + if (featureGrantItemProvider != null) + featureGrantItemProvider.dispose(); + if (validityPeriodClosedItemProvider != null) + validityPeriodClosedItemProvider.dispose(); + if (evaluationInstructionsItemProvider != null) + evaluationInstructionsItemProvider.dispose(); + if (versionMatchItemProvider != null) + versionMatchItemProvider.dispose(); + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingLicensePackItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingLicensePackItemProvider.java new file mode 100644 index 000000000..2b1e51d8c --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingLicensePackItemProvider.java @@ -0,0 +1,177 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack} object. + * + * + * @generated + */ +public class FloatingLicensePackItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FloatingLicensePackItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addLicensePropertyDescriptor(object); + addHostPropertyDescriptor(object); + addUsersPropertyDescriptor(object); + addFeaturesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the License feature. + * + * + * @generated + */ + protected void addLicensePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_FloatingLicensePack_license_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FloatingLicensePack_license_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FloatingLicensePack_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFloatingLicensePack_License(), true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Host feature. + * + * + * @generated + */ + protected void addHostPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FloatingLicensePack_host_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FloatingLicensePack_host_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FloatingLicensePack_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFloatingLicensePack_Host(), true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Users feature. + * + * + * @generated + */ + protected void addUsersPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FloatingLicensePack_users_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FloatingLicensePack_users_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FloatingLicensePack_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFloatingLicensePack_Users(), true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Features feature. + * + * + * @generated + */ + protected void addFeaturesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_FloatingLicensePack_features_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FloatingLicensePack_features_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FloatingLicensePack_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFloatingLicensePack_Features(), true, false, true, null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + return getString("_UI_FloatingLicensePack_type"); //$NON-NLS-1$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingServerItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingServerItemProvider.java new file mode 100644 index 000000000..df030de84 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingServerItemProvider.java @@ -0,0 +1,159 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.FloatingServer} object. + * + * + * @generated + */ +public class FloatingServerItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FloatingServerItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addIdentifierPropertyDescriptor(object); + addAuthenticationPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Identifier feature. + * + * + * @generated + */ + protected void addIdentifierPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_FloatingServer_identifier_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FloatingServer_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FloatingServer_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFloatingServer_Identifier(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Authentication feature. + * + * + * @generated + */ + protected void addAuthenticationPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_FloatingServer_authentication_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_FloatingServer_authentication_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_FloatingServer_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getFloatingServer_Authentication(), true, false, true, null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((FloatingServer) object).getIdentifier(); + return label == null || label.length() == 0 ? getString("_UI_FloatingServer_type") : //$NON-NLS-1$ + getString("_UI_FloatingServer_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(FloatingServer.class)) { + case FloatingPackage.FLOATING_SERVER__IDENTIFIER: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/LicenseRequisitesItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/LicenseRequisitesItemProvider.java new file mode 100644 index 000000000..77e9d4f85 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/LicenseRequisitesItemProvider.java @@ -0,0 +1,229 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites} object. + * + * + * @generated + */ +public class LicenseRequisitesItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public LicenseRequisitesItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addIdentifierPropertyDescriptor(object); + addIssueDatePropertyDescriptor(object); + addCompanyPropertyDescriptor(object); + addPlanPropertyDescriptor(object); + addProductPropertyDescriptor(object); + addValidPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Identifier feature. + * + * + * @generated + */ + protected void addIdentifierPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_LicenseRequisites_identifier_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_LicenseRequisites_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_LicenseRequisites_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getLicenseRequisites_Identifier(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Issue Date feature. + * + * + * @generated + */ + protected void addIssueDatePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_LicenseRequisites_issueDate_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_LicenseRequisites_issueDate_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_LicenseRequisites_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getLicenseRequisites_IssueDate(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Company feature. + * + * + * @generated + */ + protected void addCompanyPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_LicenseRequisites_company_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_LicenseRequisites_company_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_LicenseRequisites_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getLicenseRequisites_Company(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Plan feature. + * + * + * @generated + */ + protected void addPlanPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_LicenseRequisites_plan_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_LicenseRequisites_plan_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_LicenseRequisites_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getLicenseRequisites_Plan(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Product feature. + * + * + * @generated + */ + protected void addProductPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_LicenseRequisites_product_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_LicenseRequisites_product_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_LicenseRequisites_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getLicenseRequisites_Product(), true, false, true, null, null, null)); + } + + /** + * This adds a property descriptor for the Valid feature. + * + * + * @generated + */ + protected void addValidPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_LicenseRequisites_valid_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_LicenseRequisites_valid_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_LicenseRequisites_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getLicenseRequisites_Valid(), true, false, true, null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((LicenseRequisites) object).getIdentifier(); + return label == null || label.length() == 0 ? getString("_UI_LicenseRequisites_type") : //$NON-NLS-1$ + getString("_UI_LicenseRequisites_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(LicenseRequisites.class)) { + case FloatingPackage.LICENSE_REQUISITES__IDENTIFIER: + case FloatingPackage.LICENSE_REQUISITES__ISSUE_DATE: + case FloatingPackage.LICENSE_REQUISITES__COMPANY: + case FloatingPackage.LICENSE_REQUISITES__PLAN: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ProductRefItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ProductRefItemProvider.java new file mode 100644 index 000000000..5b60dde15 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ProductRefItemProvider.java @@ -0,0 +1,161 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.ProductRef} object. + * + * + * @generated + */ +public class ProductRefItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ProductRefItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addProductPropertyDescriptor(object); + addVersionPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Product feature. + * + * + * @generated + */ + protected void addProductPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_ProductRef_product_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ProductRef_product_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_ProductRef_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getProductRef_Product(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Version feature. + * + * + * @generated + */ + protected void addVersionPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_ProductRef_version_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ProductRef_version_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_ProductRef_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getProductRef_Version(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ProductRef) object).getProduct(); + return label == null || label.length() == 0 ? getString("_UI_ProductRef_type") : //$NON-NLS-1$ + getString("_UI_ProductRef_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ProductRef.class)) { + case FloatingPackage.PRODUCT_REF__PRODUCT: + case FloatingPackage.PRODUCT_REF__VERSION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/UserGrantItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/UserGrantItemProvider.java new file mode 100644 index 000000000..bcd627e46 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/UserGrantItemProvider.java @@ -0,0 +1,159 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.UserGrant} object. + * + * + * @generated + */ +public class UserGrantItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public UserGrantItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addUserPropertyDescriptor(object); + addAuthenticationPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the User feature. + * + * + * @generated + */ + protected void addUserPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_UserGrant_user_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_UserGrant_user_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_UserGrant_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getUserGrant_User(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Authentication feature. + * + * + * @generated + */ + protected void addAuthenticationPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_UserGrant_authentication_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_UserGrant_authentication_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_UserGrant_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getUserGrant_Authentication(), true, false, true, null, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((UserGrant) object).getUser(); + return label == null || label.length() == 0 ? getString("_UI_UserGrant_type") : //$NON-NLS-1$ + getString("_UI_UserGrant_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(UserGrant.class)) { + case FloatingPackage.USER_GRANT__USER: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ValidityPeriodClosedItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ValidityPeriodClosedItemProvider.java new file mode 100644 index 000000000..0e6605a01 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ValidityPeriodClosedItemProvider.java @@ -0,0 +1,163 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.Date; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed} object. + * + * + * @generated + */ +public class ValidityPeriodClosedItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ValidityPeriodClosedItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addFromPropertyDescriptor(object); + addUntilPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the From feature. + * + * + * @generated + */ + protected void addFromPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_ValidityPeriodClosed_from_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ValidityPeriodClosed_from_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_ValidityPeriodClosed_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getValidityPeriodClosed_From(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Until feature. + * + * + * @generated + */ + protected void addUntilPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_ValidityPeriodClosed_until_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ValidityPeriodClosed_until_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_ValidityPeriodClosed_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getValidityPeriodClosed_Until(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + Date labelValue = ((ValidityPeriodClosed) object).getFrom(); + String label = labelValue == null ? null : labelValue.toString(); + return label == null || label.length() == 0 ? getString("_UI_ValidityPeriodClosed_type") : //$NON-NLS-1$ + getString("_UI_ValidityPeriodClosed_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ValidityPeriodClosed.class)) { + case FloatingPackage.VALIDITY_PERIOD_CLOSED__FROM: + case FloatingPackage.VALIDITY_PERIOD_CLOSED__UNTIL: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/VersionMatchItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/VersionMatchItemProvider.java new file mode 100644 index 000000000..274bd2c71 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/VersionMatchItemProvider.java @@ -0,0 +1,161 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.VersionMatch} object. + * + * + * @generated + */ +public class VersionMatchItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public VersionMatchItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addVersionPropertyDescriptor(object); + addRulePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Version feature. + * + * + * @generated + */ + protected void addVersionPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_VersionMatch_version_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_VersionMatch_version_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_VersionMatch_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getVersionMatch_Version(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Rule feature. + * + * + * @generated + */ + protected void addRulePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_VersionMatch_rule_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_VersionMatch_rule_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_VersionMatch_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getVersionMatch_Rule(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((VersionMatch) object).getVersion(); + return label == null || label.length() == 0 ? getString("_UI_VersionMatch_type") : //$NON-NLS-1$ + getString("_UI_VersionMatch_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(VersionMatch.class)) { + case FloatingPackage.VERSION_MATCH__VERSION: + case FloatingPackage.VERSION_MATCH__RULE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/EvaluationInstructions.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/EvaluationInstructions.java new file mode 100644 index 000000000..abb970f35 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/EvaluationInstructions.java @@ -0,0 +1,69 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Evaluation Instructions'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType Type}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression Expression}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getEvaluationInstructions() + * @model + * @generated + */ +public interface EvaluationInstructions extends EObject { + /** + * Returns the value of the 'Type' attribute. + * + * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getEvaluationInstructions_Type() + * @model required="true" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Expression' attribute. + * + * + * @return the value of the 'Expression' attribute. + * @see #setExpression(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getEvaluationInstructions_Expression() + * @model required="true" + * @generated + */ + String getExpression(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression Expression}' attribute. + * + * + * @param value the new value of the 'Expression' attribute. + * @see #getExpression() + * @generated + */ + void setExpression(String value); + +} // EvaluationInstructions diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FeatureGrant.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FeatureGrant.java new file mode 100644 index 000000000..0a1f9342f --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FeatureGrant.java @@ -0,0 +1,163 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Feature Grant'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature Feature}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid Valid}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity Capacity}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack Pack}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant() + * @model + * @generated + */ +public interface FeatureGrant extends EObject { + /** + * Returns the value of the 'Identifier' attribute. + * + * + * @return the value of the 'Identifier' attribute. + * @see #setIdentifier(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Identifier() + * @model id="true" required="true" + * @generated + */ + String getIdentifier(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier Identifier}' attribute. + * + * + * @param value the new value of the 'Identifier' attribute. + * @see #getIdentifier() + * @generated + */ + void setIdentifier(String value); + + /** + * Returns the value of the 'Feature' attribute. + * + * + * @return the value of the 'Feature' attribute. + * @see #setFeature(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Feature() + * @model required="true" + * @generated + */ + String getFeature(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature Feature}' attribute. + * + * + * @param value the new value of the 'Feature' attribute. + * @see #getFeature() + * @generated + */ + void setFeature(String value); + + /** + * Returns the value of the 'Version' reference. + * + * + * @return the value of the 'Version' reference. + * @see #setVersion(VersionMatch) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Version() + * @model + * @generated + */ + VersionMatch getVersion(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion Version}' reference. + * + * + * @param value the new value of the 'Version' reference. + * @see #getVersion() + * @generated + */ + void setVersion(VersionMatch value); + + /** + * Returns the value of the 'Valid' reference. + * + * + * @return the value of the 'Valid' reference. + * @see #setValid(ValidityPeriod) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Valid() + * @model required="true" + * @generated + */ + ValidityPeriod getValid(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid Valid}' reference. + * + * + * @param value the new value of the 'Valid' reference. + * @see #getValid() + * @generated + */ + void setValid(ValidityPeriod value); + + /** + * Returns the value of the 'Capacity' attribute. + * + * + * @return the value of the 'Capacity' attribute. + * @see #setCapacity(int) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Capacity() + * @model required="true" + * @generated + */ + int getCapacity(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity Capacity}' attribute. + * + * + * @param value the new value of the 'Capacity' attribute. + * @see #getCapacity() + * @generated + */ + void setCapacity(int value); + + /** + * Returns the value of the 'Pack' reference. + * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures Features}'. + * + * + * @return the value of the 'Pack' reference. + * @see #setPack(FloatingLicensePack) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Pack() + * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures + * @model opposite="features" required="true" + * @generated + */ + FloatingLicensePack getPack(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack Pack}' reference. + * + * + * @param value the new value of the 'Pack' reference. + * @see #getPack() + * @generated + */ + void setPack(FloatingLicensePack value); + +} // FeatureGrant diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingLicensePack.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingLicensePack.java new file mode 100644 index 000000000..a836c69a3 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingLicensePack.java @@ -0,0 +1,99 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'License Pack'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense License}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost Host}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getUsers Users}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures Features}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack() + * @model + * @generated + */ +public interface FloatingLicensePack extends EObject { + /** + * Returns the value of the 'License' reference. + * + * + * @return the value of the 'License' reference. + * @see #setLicense(LicenseRequisites) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack_License() + * @model required="true" + * @generated + */ + LicenseRequisites getLicense(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense License}' reference. + * + * + * @param value the new value of the 'License' reference. + * @see #getLicense() + * @generated + */ + void setLicense(LicenseRequisites value); + + /** + * Returns the value of the 'Host' reference. + * + * + * @return the value of the 'Host' reference. + * @see #setHost(FloatingServer) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack_Host() + * @model required="true" + * @generated + */ + FloatingServer getHost(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost Host}' reference. + * + * + * @param value the new value of the 'Host' reference. + * @see #getHost() + * @generated + */ + void setHost(FloatingServer value); + + /** + * Returns the value of the 'Users' reference list. + * The list contents are of type {@link org.eclipse.passage.lic.floating.model.api.UserGrant}. + * + * + * @return the value of the 'Users' reference list. + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack_Users() + * @model required="true" + * @generated + */ + EList getUsers(); + + /** + * Returns the value of the 'Features' reference list. + * The list contents are of type {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant}. + * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack Pack}'. + * + * + * @return the value of the 'Features' reference list. + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack_Features() + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack + * @model opposite="pack" required="true" + * @generated + */ + EList getFeatures(); + +} // FloatingLicensePack diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingServer.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingServer.java new file mode 100644 index 000000000..782551d86 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingServer.java @@ -0,0 +1,69 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Server'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication Authentication}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingServer() + * @model + * @generated + */ +public interface FloatingServer extends EObject { + /** + * Returns the value of the 'Identifier' attribute. + * + * + * @return the value of the 'Identifier' attribute. + * @see #setIdentifier(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingServer_Identifier() + * @model id="true" required="true" + * @generated + */ + String getIdentifier(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier Identifier}' attribute. + * + * + * @param value the new value of the 'Identifier' attribute. + * @see #getIdentifier() + * @generated + */ + void setIdentifier(String value); + + /** + * Returns the value of the 'Authentication' reference. + * + * + * @return the value of the 'Authentication' reference. + * @see #setAuthentication(EvaluationInstructions) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingServer_Authentication() + * @model required="true" ordered="false" + * @generated + */ + EvaluationInstructions getAuthentication(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication Authentication}' reference. + * + * + * @param value the new value of the 'Authentication' reference. + * @see #getAuthentication() + * @generated + */ + void setAuthentication(EvaluationInstructions value); + +} // FloatingServer diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/LicenseRequisites.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/LicenseRequisites.java new file mode 100644 index 000000000..36f05074e --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/LicenseRequisites.java @@ -0,0 +1,163 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import java.util.Date; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'License Requisites'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate Issue Date}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany Company}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan Plan}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct Product}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid Valid}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites() + * @model + * @generated + */ +public interface LicenseRequisites extends EObject { + /** + * Returns the value of the 'Identifier' attribute. + * + * + * @return the value of the 'Identifier' attribute. + * @see #setIdentifier(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Identifier() + * @model id="true" required="true" + * @generated + */ + String getIdentifier(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier Identifier}' attribute. + * + * + * @param value the new value of the 'Identifier' attribute. + * @see #getIdentifier() + * @generated + */ + void setIdentifier(String value); + + /** + * Returns the value of the 'Issue Date' attribute. + * + * + * @return the value of the 'Issue Date' attribute. + * @see #setIssueDate(Date) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_IssueDate() + * @model required="true" + * @generated + */ + Date getIssueDate(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate Issue Date}' attribute. + * + * + * @param value the new value of the 'Issue Date' attribute. + * @see #getIssueDate() + * @generated + */ + void setIssueDate(Date value); + + /** + * Returns the value of the 'Company' attribute. + * + * + * @return the value of the 'Company' attribute. + * @see #setCompany(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Company() + * @model required="true" + * @generated + */ + String getCompany(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany Company}' attribute. + * + * + * @param value the new value of the 'Company' attribute. + * @see #getCompany() + * @generated + */ + void setCompany(String value); + + /** + * Returns the value of the 'Plan' attribute. + * + * + * @return the value of the 'Plan' attribute. + * @see #setPlan(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Plan() + * @model required="true" + * @generated + */ + String getPlan(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan Plan}' attribute. + * + * + * @param value the new value of the 'Plan' attribute. + * @see #getPlan() + * @generated + */ + void setPlan(String value); + + /** + * Returns the value of the 'Product' reference. + * + * + * @return the value of the 'Product' reference. + * @see #setProduct(ProductRef) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Product() + * @model required="true" + * @generated + */ + ProductRef getProduct(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct Product}' reference. + * + * + * @param value the new value of the 'Product' reference. + * @see #getProduct() + * @generated + */ + void setProduct(ProductRef value); + + /** + * Returns the value of the 'Valid' reference. + * + * + * @return the value of the 'Valid' reference. + * @see #setValid(ValidityPeriod) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Valid() + * @model required="true" + * @generated + */ + ValidityPeriod getValid(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid Valid}' reference. + * + * + * @param value the new value of the 'Valid' reference. + * @see #getValid() + * @generated + */ + void setValid(ValidityPeriod value); + +} // LicenseRequisites diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ProductRef.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ProductRef.java new file mode 100644 index 000000000..95ccec688 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ProductRef.java @@ -0,0 +1,69 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Product Ref'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct Product}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion Version}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getProductRef() + * @model + * @generated + */ +public interface ProductRef extends EObject { + /** + * Returns the value of the 'Product' attribute. + * + * + * @return the value of the 'Product' attribute. + * @see #setProduct(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getProductRef_Product() + * @model required="true" + * @generated + */ + String getProduct(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct Product}' attribute. + * + * + * @param value the new value of the 'Product' attribute. + * @see #getProduct() + * @generated + */ + void setProduct(String value); + + /** + * Returns the value of the 'Version' attribute. + * + * + * @return the value of the 'Version' attribute. + * @see #setVersion(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getProductRef_Version() + * @model required="true" + * @generated + */ + String getVersion(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + +} // ProductRef diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/UserGrant.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/UserGrant.java new file mode 100644 index 000000000..245851224 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/UserGrant.java @@ -0,0 +1,69 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'User Grant'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser User}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication Authentication}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getUserGrant() + * @model + * @generated + */ +public interface UserGrant extends EObject { + /** + * Returns the value of the 'User' attribute. + * + * + * @return the value of the 'User' attribute. + * @see #setUser(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getUserGrant_User() + * @model required="true" + * @generated + */ + String getUser(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser User}' attribute. + * + * + * @param value the new value of the 'User' attribute. + * @see #getUser() + * @generated + */ + void setUser(String value); + + /** + * Returns the value of the 'Authentication' reference. + * + * + * @return the value of the 'Authentication' reference. + * @see #setAuthentication(EvaluationInstructions) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getUserGrant_Authentication() + * @model + * @generated + */ + EvaluationInstructions getAuthentication(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication Authentication}' reference. + * + * + * @param value the new value of the 'Authentication' reference. + * @see #getAuthentication() + * @generated + */ + void setAuthentication(EvaluationInstructions value); + +} // UserGrant diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriod.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriod.java new file mode 100644 index 000000000..84f63da4c --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriod.java @@ -0,0 +1,18 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Validity Period'. + * + * + * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getValidityPeriod() + * @model interface="true" abstract="true" + * @generated + */ +public interface ValidityPeriod extends EObject { +} // ValidityPeriod diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriodClosed.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriodClosed.java new file mode 100644 index 000000000..0a5fcfdac --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriodClosed.java @@ -0,0 +1,69 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import java.util.Date; + +/** + * + * A representation of the model object 'Validity Period Closed'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom From}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil Until}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getValidityPeriodClosed() + * @model + * @generated + */ +public interface ValidityPeriodClosed extends ValidityPeriod { + /** + * Returns the value of the 'From' attribute. + * + * + * @return the value of the 'From' attribute. + * @see #setFrom(Date) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getValidityPeriodClosed_From() + * @model unique="false" required="true" ordered="false" + * @generated + */ + Date getFrom(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom From}' attribute. + * + * + * @param value the new value of the 'From' attribute. + * @see #getFrom() + * @generated + */ + void setFrom(Date value); + + /** + * Returns the value of the 'Until' attribute. + * + * + * @return the value of the 'Until' attribute. + * @see #setUntil(Date) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getValidityPeriodClosed_Until() + * @model unique="false" required="true" ordered="false" + * @generated + */ + Date getUntil(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil Until}' attribute. + * + * + * @param value the new value of the 'Until' attribute. + * @see #getUntil() + * @generated + */ + void setUntil(Date value); + +} // ValidityPeriodClosed diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/VersionMatch.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/VersionMatch.java new file mode 100644 index 000000000..81a53b7ca --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/VersionMatch.java @@ -0,0 +1,69 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Version Match'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule Rule}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getVersionMatch() + * @model + * @generated + */ +public interface VersionMatch extends EObject { + /** + * Returns the value of the 'Version' attribute. + * + * + * @return the value of the 'Version' attribute. + * @see #setVersion(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getVersionMatch_Version() + * @model required="true" + * @generated + */ + String getVersion(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Returns the value of the 'Rule' attribute. + * + * + * @return the value of the 'Rule' attribute. + * @see #setRule(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getVersionMatch_Rule() + * @model required="true" + * @generated + */ + String getRule(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule Rule}' attribute. + * + * + * @param value the new value of the 'Rule' attribute. + * @see #getRule() + * @generated + */ + void setRule(String value); + +} // VersionMatch diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/EvaluationInstructionsImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/EvaluationInstructionsImpl.java new file mode 100644 index 000000000..ab246d06e --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/EvaluationInstructionsImpl.java @@ -0,0 +1,235 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'Evaluation Instructions'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl#getType Type}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl#getExpression Expression}
  • + *
+ * + * @generated + */ +public class EvaluationInstructionsImpl extends MinimalEObjectImpl.Container implements EvaluationInstructions { + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + private String type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getExpression() Expression}' attribute. + * + * + * @see #getExpression() + * @generated + * @ordered + */ + protected static final String EXPRESSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getExpression() Expression}' attribute. + * + * + * @see #getExpression() + * @generated + * @ordered + */ + private String expression = EXPRESSION_EDEFAULT; + + /** + * + * + * @generated + */ + protected EvaluationInstructionsImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getEvaluationInstructions(); + } + + /** + * + * + * @generated + */ + @Override + public String getType() { + return type; + } + + /** + * + * + * @generated + */ + @Override + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.EVALUATION_INSTRUCTIONS__TYPE, + oldType, type)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getExpression() { + return expression; + } + + /** + * + * + * @generated + */ + @Override + public void setExpression(String newExpression) { + String oldExpression = expression; + expression = newExpression; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.EVALUATION_INSTRUCTIONS__EXPRESSION, + oldExpression, expression)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.EVALUATION_INSTRUCTIONS__TYPE: + return getType(); + case FloatingPackage.EVALUATION_INSTRUCTIONS__EXPRESSION: + return getExpression(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.EVALUATION_INSTRUCTIONS__TYPE: + setType((String) newValue); + return; + case FloatingPackage.EVALUATION_INSTRUCTIONS__EXPRESSION: + setExpression((String) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.EVALUATION_INSTRUCTIONS__TYPE: + setType(TYPE_EDEFAULT); + return; + case FloatingPackage.EVALUATION_INSTRUCTIONS__EXPRESSION: + setExpression(EXPRESSION_EDEFAULT); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.EVALUATION_INSTRUCTIONS__TYPE: + return !Objects.equals(TYPE_EDEFAULT, type); + case FloatingPackage.EVALUATION_INSTRUCTIONS__EXPRESSION: + return !Objects.equals(EXPRESSION_EDEFAULT, expression); + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (type: "); //$NON-NLS-1$ + result.append(type); + result.append(", expression: "); //$NON-NLS-1$ + result.append(expression); + result.append(')'); + return result.toString(); + } + +} //EvaluationInstructionsImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FeatureGrantImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FeatureGrantImpl.java new file mode 100644 index 000000000..383b47707 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FeatureGrantImpl.java @@ -0,0 +1,560 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.FeatureGrant; +import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriod; +import org.eclipse.passage.lic.floating.model.api.VersionMatch; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'Feature Grant'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getFeature Feature}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getVersion Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getValid Valid}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getCapacity Capacity}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getPack Pack}
  • + *
+ * + * @generated + */ +public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements FeatureGrant { + /** + * The default value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected static final String IDENTIFIER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + private String identifier = IDENTIFIER_EDEFAULT; + + /** + * The default value of the '{@link #getFeature() Feature}' attribute. + * + * + * @see #getFeature() + * @generated + * @ordered + */ + protected static final String FEATURE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFeature() Feature}' attribute. + * + * + * @see #getFeature() + * @generated + * @ordered + */ + private String feature = FEATURE_EDEFAULT; + + /** + * The cached value of the '{@link #getVersion() Version}' reference. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected VersionMatch version; + + /** + * The cached value of the '{@link #getValid() Valid}' reference. + * + * + * @see #getValid() + * @generated + * @ordered + */ + protected ValidityPeriod valid; + + /** + * The default value of the '{@link #getCapacity() Capacity}' attribute. + * + * + * @see #getCapacity() + * @generated + * @ordered + */ + protected static final int CAPACITY_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getCapacity() Capacity}' attribute. + * + * + * @see #getCapacity() + * @generated + * @ordered + */ + private int capacity = CAPACITY_EDEFAULT; + + /** + * The cached value of the '{@link #getPack() Pack}' reference. + * + * + * @see #getPack() + * @generated + * @ordered + */ + protected FloatingLicensePack pack; + + /** + * + * + * @generated + */ + protected FeatureGrantImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getFeatureGrant(); + } + + /** + * + * + * @generated + */ + @Override + public String getIdentifier() { + return identifier; + } + + /** + * + * + * @generated + */ + @Override + public void setIdentifier(String newIdentifier) { + String oldIdentifier = identifier; + identifier = newIdentifier; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FEATURE_GRANT__IDENTIFIER, + oldIdentifier, identifier)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getFeature() { + return feature; + } + + /** + * + * + * @generated + */ + @Override + public void setFeature(String newFeature) { + String oldFeature = feature; + feature = newFeature; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FEATURE_GRANT__FEATURE, oldFeature, + feature)); + } + } + + /** + * + * + * @generated + */ + @Override + public VersionMatch getVersion() { + if (version != null && version.eIsProxy()) { + InternalEObject oldVersion = (InternalEObject) version; + version = (VersionMatch) eResolveProxy(oldVersion); + if (version != oldVersion) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, FloatingPackage.FEATURE_GRANT__VERSION, + oldVersion, version)); + } + } + } + return version; + } + + /** + * + * + * @generated + */ + public VersionMatch basicGetVersion() { + return version; + } + + /** + * + * + * @generated + */ + @Override + public void setVersion(VersionMatch newVersion) { + VersionMatch oldVersion = version; + version = newVersion; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FEATURE_GRANT__VERSION, oldVersion, + version)); + } + } + + /** + * + * + * @generated + */ + @Override + public ValidityPeriod getValid() { + if (valid != null && valid.eIsProxy()) { + InternalEObject oldValid = (InternalEObject) valid; + valid = (ValidityPeriod) eResolveProxy(oldValid); + if (valid != oldValid) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, FloatingPackage.FEATURE_GRANT__VALID, + oldValid, valid)); + } + } + } + return valid; + } + + /** + * + * + * @generated + */ + public ValidityPeriod basicGetValid() { + return valid; + } + + /** + * + * + * @generated + */ + @Override + public void setValid(ValidityPeriod newValid) { + ValidityPeriod oldValid = valid; + valid = newValid; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FEATURE_GRANT__VALID, oldValid, + valid)); + } + } + + /** + * + * + * @generated + */ + @Override + public int getCapacity() { + return capacity; + } + + /** + * + * + * @generated + */ + @Override + public void setCapacity(int newCapacity) { + int oldCapacity = capacity; + capacity = newCapacity; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FEATURE_GRANT__CAPACITY, oldCapacity, + capacity)); + } + } + + /** + * + * + * @generated + */ + @Override + public FloatingLicensePack getPack() { + if (pack != null && pack.eIsProxy()) { + InternalEObject oldPack = (InternalEObject) pack; + pack = (FloatingLicensePack) eResolveProxy(oldPack); + if (pack != oldPack) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, FloatingPackage.FEATURE_GRANT__PACK, + oldPack, pack)); + } + } + } + return pack; + } + + /** + * + * + * @generated + */ + public FloatingLicensePack basicGetPack() { + return pack; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPack(FloatingLicensePack newPack, NotificationChain msgs) { + FloatingLicensePack oldPack = pack; + pack = newPack; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + FloatingPackage.FEATURE_GRANT__PACK, oldPack, newPack); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setPack(FloatingLicensePack newPack) { + if (newPack != pack) { + NotificationChain msgs = null; + if (pack != null) + msgs = ((InternalEObject) pack).eInverseRemove(this, FloatingPackage.FLOATING_LICENSE_PACK__FEATURES, + FloatingLicensePack.class, msgs); + if (newPack != null) + msgs = ((InternalEObject) newPack).eInverseAdd(this, FloatingPackage.FLOATING_LICENSE_PACK__FEATURES, + FloatingLicensePack.class, msgs); + msgs = basicSetPack(newPack, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FEATURE_GRANT__PACK, newPack, + newPack)); + } + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case FloatingPackage.FEATURE_GRANT__PACK: + if (pack != null) + msgs = ((InternalEObject) pack).eInverseRemove(this, FloatingPackage.FLOATING_LICENSE_PACK__FEATURES, + FloatingLicensePack.class, msgs); + return basicSetPack((FloatingLicensePack) otherEnd, msgs); + default: + return super.eInverseAdd(otherEnd, featureID, msgs); + } + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case FloatingPackage.FEATURE_GRANT__PACK: + return basicSetPack(null, msgs); + default: + return super.eInverseRemove(otherEnd, featureID, msgs); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.FEATURE_GRANT__IDENTIFIER: + return getIdentifier(); + case FloatingPackage.FEATURE_GRANT__FEATURE: + return getFeature(); + case FloatingPackage.FEATURE_GRANT__VERSION: + if (resolve) + return getVersion(); + return basicGetVersion(); + case FloatingPackage.FEATURE_GRANT__VALID: + if (resolve) + return getValid(); + return basicGetValid(); + case FloatingPackage.FEATURE_GRANT__CAPACITY: + return getCapacity(); + case FloatingPackage.FEATURE_GRANT__PACK: + if (resolve) + return getPack(); + return basicGetPack(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.FEATURE_GRANT__IDENTIFIER: + setIdentifier((String) newValue); + return; + case FloatingPackage.FEATURE_GRANT__FEATURE: + setFeature((String) newValue); + return; + case FloatingPackage.FEATURE_GRANT__VERSION: + setVersion((VersionMatch) newValue); + return; + case FloatingPackage.FEATURE_GRANT__VALID: + setValid((ValidityPeriod) newValue); + return; + case FloatingPackage.FEATURE_GRANT__CAPACITY: + setCapacity((Integer) newValue); + return; + case FloatingPackage.FEATURE_GRANT__PACK: + setPack((FloatingLicensePack) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.FEATURE_GRANT__IDENTIFIER: + setIdentifier(IDENTIFIER_EDEFAULT); + return; + case FloatingPackage.FEATURE_GRANT__FEATURE: + setFeature(FEATURE_EDEFAULT); + return; + case FloatingPackage.FEATURE_GRANT__VERSION: + setVersion((VersionMatch) null); + return; + case FloatingPackage.FEATURE_GRANT__VALID: + setValid((ValidityPeriod) null); + return; + case FloatingPackage.FEATURE_GRANT__CAPACITY: + setCapacity(CAPACITY_EDEFAULT); + return; + case FloatingPackage.FEATURE_GRANT__PACK: + setPack((FloatingLicensePack) null); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.FEATURE_GRANT__IDENTIFIER: + return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); + case FloatingPackage.FEATURE_GRANT__FEATURE: + return !Objects.equals(FEATURE_EDEFAULT, feature); + case FloatingPackage.FEATURE_GRANT__VERSION: + return version != null; + case FloatingPackage.FEATURE_GRANT__VALID: + return valid != null; + case FloatingPackage.FEATURE_GRANT__CAPACITY: + return capacity != CAPACITY_EDEFAULT; + case FloatingPackage.FEATURE_GRANT__PACK: + return pack != null; + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (identifier: "); //$NON-NLS-1$ + result.append(identifier); + result.append(", feature: "); //$NON-NLS-1$ + result.append(feature); + result.append(", capacity: "); //$NON-NLS-1$ + result.append(capacity); + result.append(')'); + return result.toString(); + } + +} //FeatureGrantImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java new file mode 100644 index 000000000..e7c7e684a --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java @@ -0,0 +1,205 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import org.eclipse.passage.lic.floating.model.api.*; + +import org.eclipse.passage.lic.floating.model.meta.FloatingFactory; +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class FloatingFactoryImpl extends EFactoryImpl implements FloatingFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static FloatingFactory init() { + try { + FloatingFactory theFloatingFactory = (FloatingFactory) EPackage.Registry.INSTANCE + .getEFactory(FloatingPackage.eNS_URI); + if (theFloatingFactory != null) { + return theFloatingFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new FloatingFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public FloatingFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case FloatingPackage.FLOATING_LICENSE_PACK: + return createFloatingLicensePack(); + case FloatingPackage.LICENSE_REQUISITES: + return createLicenseRequisites(); + case FloatingPackage.PRODUCT_REF: + return createProductRef(); + case FloatingPackage.FLOATING_SERVER: + return createFloatingServer(); + case FloatingPackage.USER_GRANT: + return createUserGrant(); + case FloatingPackage.FEATURE_GRANT: + return createFeatureGrant(); + case FloatingPackage.VALIDITY_PERIOD_CLOSED: + return createValidityPeriodClosed(); + case FloatingPackage.EVALUATION_INSTRUCTIONS: + return createEvaluationInstructions(); + case FloatingPackage.VERSION_MATCH: + return createVersionMatch(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * @generated + */ + @Override + public FloatingLicensePack createFloatingLicensePack() { + FloatingLicensePackImpl floatingLicensePack = new FloatingLicensePackImpl(); + return floatingLicensePack; + } + + /** + * + * + * @generated + */ + @Override + public LicenseRequisites createLicenseRequisites() { + LicenseRequisitesImpl licenseRequisites = new LicenseRequisitesImpl(); + return licenseRequisites; + } + + /** + * + * + * @generated + */ + @Override + public ProductRef createProductRef() { + ProductRefImpl productRef = new ProductRefImpl(); + return productRef; + } + + /** + * + * + * @generated + */ + @Override + public FloatingServer createFloatingServer() { + FloatingServerImpl floatingServer = new FloatingServerImpl(); + return floatingServer; + } + + /** + * + * + * @generated + */ + @Override + public UserGrant createUserGrant() { + UserGrantImpl userGrant = new UserGrantImpl(); + return userGrant; + } + + /** + * + * + * @generated + */ + @Override + public FeatureGrant createFeatureGrant() { + FeatureGrantImpl featureGrant = new FeatureGrantImpl(); + return featureGrant; + } + + /** + * + * + * @generated + */ + @Override + public ValidityPeriodClosed createValidityPeriodClosed() { + ValidityPeriodClosedImpl validityPeriodClosed = new ValidityPeriodClosedImpl(); + return validityPeriodClosed; + } + + /** + * + * + * @generated + */ + @Override + public EvaluationInstructions createEvaluationInstructions() { + EvaluationInstructionsImpl evaluationInstructions = new EvaluationInstructionsImpl(); + return evaluationInstructions; + } + + /** + * + * + * @generated + */ + @Override + public VersionMatch createVersionMatch() { + VersionMatchImpl versionMatch = new VersionMatchImpl(); + return versionMatch; + } + + /** + * + * + * @generated + */ + @Override + public FloatingPackage getFloatingPackage() { + return (FloatingPackage) getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static FloatingPackage getPackage() { + return FloatingPackage.eINSTANCE; + } + +} //FloatingFactoryImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingLicensePackImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingLicensePackImpl.java new file mode 100644 index 000000000..6d1355e47 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingLicensePackImpl.java @@ -0,0 +1,354 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.passage.lic.floating.model.api.FeatureGrant; +import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; +import org.eclipse.passage.lic.floating.model.api.FloatingServer; +import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; +import org.eclipse.passage.lic.floating.model.api.UserGrant; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'License Pack'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getLicense License}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getHost Host}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getUsers Users}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getFeatures Features}
  • + *
+ * + * @generated + */ +public class FloatingLicensePackImpl extends MinimalEObjectImpl.Container implements FloatingLicensePack { + /** + * The cached value of the '{@link #getLicense() License}' reference. + * + * + * @see #getLicense() + * @generated + * @ordered + */ + protected LicenseRequisites license; + + /** + * The cached value of the '{@link #getHost() Host}' reference. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected FloatingServer host; + + /** + * The cached value of the '{@link #getUsers() Users}' reference list. + * + * + * @see #getUsers() + * @generated + * @ordered + */ + protected EList users; + + /** + * The cached value of the '{@link #getFeatures() Features}' reference list. + * + * + * @see #getFeatures() + * @generated + * @ordered + */ + protected EList features; + + /** + * + * + * @generated + */ + protected FloatingLicensePackImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getFloatingLicensePack(); + } + + /** + * + * + * @generated + */ + @Override + public LicenseRequisites getLicense() { + if (license != null && license.eIsProxy()) { + InternalEObject oldLicense = (InternalEObject) license; + license = (LicenseRequisites) eResolveProxy(oldLicense); + if (license != oldLicense) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + FloatingPackage.FLOATING_LICENSE_PACK__LICENSE, oldLicense, license)); + } + } + } + return license; + } + + /** + * + * + * @generated + */ + public LicenseRequisites basicGetLicense() { + return license; + } + + /** + * + * + * @generated + */ + @Override + public void setLicense(LicenseRequisites newLicense) { + LicenseRequisites oldLicense = license; + license = newLicense; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FLOATING_LICENSE_PACK__LICENSE, + oldLicense, license)); + } + } + + /** + * + * + * @generated + */ + @Override + public FloatingServer getHost() { + if (host != null && host.eIsProxy()) { + InternalEObject oldHost = (InternalEObject) host; + host = (FloatingServer) eResolveProxy(oldHost); + if (host != oldHost) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + FloatingPackage.FLOATING_LICENSE_PACK__HOST, oldHost, host)); + } + } + } + return host; + } + + /** + * + * + * @generated + */ + public FloatingServer basicGetHost() { + return host; + } + + /** + * + * + * @generated + */ + @Override + public void setHost(FloatingServer newHost) { + FloatingServer oldHost = host; + host = newHost; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FLOATING_LICENSE_PACK__HOST, oldHost, + host)); + } + } + + /** + * + * + * @generated + */ + @Override + public EList getUsers() { + if (users == null) { + users = new EObjectResolvingEList(UserGrant.class, this, + FloatingPackage.FLOATING_LICENSE_PACK__USERS); + } + return users; + } + + /** + * + * + * @generated + */ + @Override + public EList getFeatures() { + if (features == null) { + features = new EObjectWithInverseResolvingEList(FeatureGrant.class, this, + FloatingPackage.FLOATING_LICENSE_PACK__FEATURES, FloatingPackage.FEATURE_GRANT__PACK); + } + return features; + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case FloatingPackage.FLOATING_LICENSE_PACK__FEATURES: + return ((InternalEList) (InternalEList) getFeatures()).basicAdd(otherEnd, msgs); + default: + return super.eInverseAdd(otherEnd, featureID, msgs); + } + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case FloatingPackage.FLOATING_LICENSE_PACK__FEATURES: + return ((InternalEList) getFeatures()).basicRemove(otherEnd, msgs); + default: + return super.eInverseRemove(otherEnd, featureID, msgs); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.FLOATING_LICENSE_PACK__LICENSE: + if (resolve) + return getLicense(); + return basicGetLicense(); + case FloatingPackage.FLOATING_LICENSE_PACK__HOST: + if (resolve) + return getHost(); + return basicGetHost(); + case FloatingPackage.FLOATING_LICENSE_PACK__USERS: + return getUsers(); + case FloatingPackage.FLOATING_LICENSE_PACK__FEATURES: + return getFeatures(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.FLOATING_LICENSE_PACK__LICENSE: + setLicense((LicenseRequisites) newValue); + return; + case FloatingPackage.FLOATING_LICENSE_PACK__HOST: + setHost((FloatingServer) newValue); + return; + case FloatingPackage.FLOATING_LICENSE_PACK__USERS: + getUsers().clear(); + getUsers().addAll((Collection) newValue); + return; + case FloatingPackage.FLOATING_LICENSE_PACK__FEATURES: + getFeatures().clear(); + getFeatures().addAll((Collection) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.FLOATING_LICENSE_PACK__LICENSE: + setLicense((LicenseRequisites) null); + return; + case FloatingPackage.FLOATING_LICENSE_PACK__HOST: + setHost((FloatingServer) null); + return; + case FloatingPackage.FLOATING_LICENSE_PACK__USERS: + getUsers().clear(); + return; + case FloatingPackage.FLOATING_LICENSE_PACK__FEATURES: + getFeatures().clear(); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.FLOATING_LICENSE_PACK__LICENSE: + return license != null; + case FloatingPackage.FLOATING_LICENSE_PACK__HOST: + return host != null; + case FloatingPackage.FLOATING_LICENSE_PACK__USERS: + return users != null && !users.isEmpty(); + case FloatingPackage.FLOATING_LICENSE_PACK__FEATURES: + return features != null && !features.isEmpty(); + default: + return super.eIsSet(featureID); + } + } + +} //FloatingLicensePackImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java new file mode 100644 index 000000000..e3a67db08 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java @@ -0,0 +1,769 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; +import org.eclipse.passage.lic.floating.model.api.FeatureGrant; +import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; +import org.eclipse.passage.lic.floating.model.api.FloatingServer; +import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; +import org.eclipse.passage.lic.floating.model.api.ProductRef; +import org.eclipse.passage.lic.floating.model.api.UserGrant; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriod; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed; +import org.eclipse.passage.lic.floating.model.api.VersionMatch; + +import org.eclipse.passage.lic.floating.model.meta.FloatingFactory; +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class FloatingPackageImpl extends EPackageImpl implements FloatingPackage { + /** + * + * + * @generated + */ + private EClass floatingLicensePackEClass = null; + + /** + * + * + * @generated + */ + private EClass licenseRequisitesEClass = null; + + /** + * + * + * @generated + */ + private EClass productRefEClass = null; + + /** + * + * + * @generated + */ + private EClass floatingServerEClass = null; + + /** + * + * + * @generated + */ + private EClass userGrantEClass = null; + + /** + * + * + * @generated + */ + private EClass featureGrantEClass = null; + + /** + * + * + * @generated + */ + private EClass validityPeriodEClass = null; + + /** + * + * + * @generated + */ + private EClass validityPeriodClosedEClass = null; + + /** + * + * + * @generated + */ + private EClass evaluationInstructionsEClass = null; + + /** + * + * + * @generated + */ + private EClass versionMatchEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#eNS_URI + * @see #init() + * @generated + */ + private FloatingPackageImpl() { + super(eNS_URI, FloatingFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link FloatingPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static FloatingPackage init() { + if (isInited) + return (FloatingPackage) EPackage.Registry.INSTANCE.getEPackage(FloatingPackage.eNS_URI); + + // Obtain or create and register package + Object registeredFloatingPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + FloatingPackageImpl theFloatingPackage = registeredFloatingPackage instanceof FloatingPackageImpl + ? (FloatingPackageImpl) registeredFloatingPackage + : new FloatingPackageImpl(); + + isInited = true; + + // Create package meta-data objects + theFloatingPackage.createPackageContents(); + + // Initialize created meta-data + theFloatingPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theFloatingPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(FloatingPackage.eNS_URI, theFloatingPackage); + return theFloatingPackage; + } + + /** + * + * + * @generated + */ + @Override + public EClass getFloatingLicensePack() { + return floatingLicensePackEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getFloatingLicensePack_License() { + return (EReference) floatingLicensePackEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EReference getFloatingLicensePack_Host() { + return (EReference) floatingLicensePackEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EReference getFloatingLicensePack_Users() { + return (EReference) floatingLicensePackEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EReference getFloatingLicensePack_Features() { + return (EReference) floatingLicensePackEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EClass getLicenseRequisites() { + return licenseRequisitesEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getLicenseRequisites_Identifier() { + return (EAttribute) licenseRequisitesEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getLicenseRequisites_IssueDate() { + return (EAttribute) licenseRequisitesEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getLicenseRequisites_Company() { + return (EAttribute) licenseRequisitesEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getLicenseRequisites_Plan() { + return (EAttribute) licenseRequisitesEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EReference getLicenseRequisites_Product() { + return (EReference) licenseRequisitesEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + @Override + public EReference getLicenseRequisites_Valid() { + return (EReference) licenseRequisitesEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + @Override + public EClass getProductRef() { + return productRefEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getProductRef_Product() { + return (EAttribute) productRefEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getProductRef_Version() { + return (EAttribute) productRefEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getFloatingServer() { + return floatingServerEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getFloatingServer_Identifier() { + return (EAttribute) floatingServerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EReference getFloatingServer_Authentication() { + return (EReference) floatingServerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getUserGrant() { + return userGrantEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getUserGrant_User() { + return (EAttribute) userGrantEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EReference getUserGrant_Authentication() { + return (EReference) userGrantEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getFeatureGrant() { + return featureGrantEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getFeatureGrant_Identifier() { + return (EAttribute) featureGrantEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getFeatureGrant_Feature() { + return (EAttribute) featureGrantEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EReference getFeatureGrant_Version() { + return (EReference) featureGrantEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EReference getFeatureGrant_Valid() { + return (EReference) featureGrantEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getFeatureGrant_Capacity() { + return (EAttribute) featureGrantEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + @Override + public EReference getFeatureGrant_Pack() { + return (EReference) featureGrantEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + @Override + public EClass getValidityPeriod() { + return validityPeriodEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getValidityPeriodClosed() { + return validityPeriodClosedEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getValidityPeriodClosed_From() { + return (EAttribute) validityPeriodClosedEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getValidityPeriodClosed_Until() { + return (EAttribute) validityPeriodClosedEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getEvaluationInstructions() { + return evaluationInstructionsEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getEvaluationInstructions_Type() { + return (EAttribute) evaluationInstructionsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getEvaluationInstructions_Expression() { + return (EAttribute) evaluationInstructionsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getVersionMatch() { + return versionMatchEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getVersionMatch_Version() { + return (EAttribute) versionMatchEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getVersionMatch_Rule() { + return (EAttribute) versionMatchEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public FloatingFactory getFloatingFactory() { + return (FloatingFactory) getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) + return; + isCreated = true; + + // Create classes and their features + floatingLicensePackEClass = createEClass(FLOATING_LICENSE_PACK); + createEReference(floatingLicensePackEClass, FLOATING_LICENSE_PACK__LICENSE); + createEReference(floatingLicensePackEClass, FLOATING_LICENSE_PACK__HOST); + createEReference(floatingLicensePackEClass, FLOATING_LICENSE_PACK__USERS); + createEReference(floatingLicensePackEClass, FLOATING_LICENSE_PACK__FEATURES); + + licenseRequisitesEClass = createEClass(LICENSE_REQUISITES); + createEAttribute(licenseRequisitesEClass, LICENSE_REQUISITES__IDENTIFIER); + createEAttribute(licenseRequisitesEClass, LICENSE_REQUISITES__ISSUE_DATE); + createEAttribute(licenseRequisitesEClass, LICENSE_REQUISITES__COMPANY); + createEAttribute(licenseRequisitesEClass, LICENSE_REQUISITES__PLAN); + createEReference(licenseRequisitesEClass, LICENSE_REQUISITES__PRODUCT); + createEReference(licenseRequisitesEClass, LICENSE_REQUISITES__VALID); + + productRefEClass = createEClass(PRODUCT_REF); + createEAttribute(productRefEClass, PRODUCT_REF__PRODUCT); + createEAttribute(productRefEClass, PRODUCT_REF__VERSION); + + floatingServerEClass = createEClass(FLOATING_SERVER); + createEAttribute(floatingServerEClass, FLOATING_SERVER__IDENTIFIER); + createEReference(floatingServerEClass, FLOATING_SERVER__AUTHENTICATION); + + userGrantEClass = createEClass(USER_GRANT); + createEAttribute(userGrantEClass, USER_GRANT__USER); + createEReference(userGrantEClass, USER_GRANT__AUTHENTICATION); + + featureGrantEClass = createEClass(FEATURE_GRANT); + createEAttribute(featureGrantEClass, FEATURE_GRANT__IDENTIFIER); + createEAttribute(featureGrantEClass, FEATURE_GRANT__FEATURE); + createEReference(featureGrantEClass, FEATURE_GRANT__VERSION); + createEReference(featureGrantEClass, FEATURE_GRANT__VALID); + createEAttribute(featureGrantEClass, FEATURE_GRANT__CAPACITY); + createEReference(featureGrantEClass, FEATURE_GRANT__PACK); + + validityPeriodEClass = createEClass(VALIDITY_PERIOD); + + validityPeriodClosedEClass = createEClass(VALIDITY_PERIOD_CLOSED); + createEAttribute(validityPeriodClosedEClass, VALIDITY_PERIOD_CLOSED__FROM); + createEAttribute(validityPeriodClosedEClass, VALIDITY_PERIOD_CLOSED__UNTIL); + + evaluationInstructionsEClass = createEClass(EVALUATION_INSTRUCTIONS); + createEAttribute(evaluationInstructionsEClass, EVALUATION_INSTRUCTIONS__TYPE); + createEAttribute(evaluationInstructionsEClass, EVALUATION_INSTRUCTIONS__EXPRESSION); + + versionMatchEClass = createEClass(VERSION_MATCH); + createEAttribute(versionMatchEClass, VERSION_MATCH__VERSION); + createEAttribute(versionMatchEClass, VERSION_MATCH__RULE); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) + return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + validityPeriodClosedEClass.getESuperTypes().add(this.getValidityPeriod()); + + // Initialize classes, features, and operations; add parameters + initEClass(floatingLicensePackEClass, FloatingLicensePack.class, "FloatingLicensePack", !IS_ABSTRACT, //$NON-NLS-1$ + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFloatingLicensePack_License(), this.getLicenseRequisites(), null, "license", null, 1, 1, //$NON-NLS-1$ + FloatingLicensePack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFloatingLicensePack_Host(), this.getFloatingServer(), null, "host", null, 1, 1, //$NON-NLS-1$ + FloatingLicensePack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFloatingLicensePack_Users(), this.getUserGrant(), null, "users", null, 1, -1, //$NON-NLS-1$ + FloatingLicensePack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFloatingLicensePack_Features(), this.getFeatureGrant(), this.getFeatureGrant_Pack(), + "features", null, 1, -1, FloatingLicensePack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$ + !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(licenseRequisitesEClass, LicenseRequisites.class, "LicenseRequisites", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLicenseRequisites_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ + LicenseRequisites.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getLicenseRequisites_IssueDate(), ecorePackage.getEDate(), "issueDate", null, 1, 1, //$NON-NLS-1$ + LicenseRequisites.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getLicenseRequisites_Company(), ecorePackage.getEString(), "company", null, 1, 1, //$NON-NLS-1$ + LicenseRequisites.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getLicenseRequisites_Plan(), ecorePackage.getEString(), "plan", null, 1, 1, //$NON-NLS-1$ + LicenseRequisites.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getLicenseRequisites_Product(), this.getProductRef(), null, "product", null, 1, 1, //$NON-NLS-1$ + LicenseRequisites.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getLicenseRequisites_Valid(), this.getValidityPeriod(), null, "valid", null, 1, 1, //$NON-NLS-1$ + LicenseRequisites.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(productRefEClass, ProductRef.class, "ProductRef", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getProductRef_Product(), ecorePackage.getEString(), "product", null, 1, 1, ProductRef.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getProductRef_Version(), ecorePackage.getEString(), "version", null, 1, 1, ProductRef.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(floatingServerEClass, FloatingServer.class, "FloatingServer", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFloatingServer_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ + FloatingServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getFloatingServer_Authentication(), this.getEvaluationInstructions(), null, "authentication", //$NON-NLS-1$ + null, 1, 1, FloatingServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(userGrantEClass, UserGrant.class, "UserGrant", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getUserGrant_User(), ecorePackage.getEString(), "user", null, 1, 1, UserGrant.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getUserGrant_Authentication(), this.getEvaluationInstructions(), null, "authentication", null, 0, //$NON-NLS-1$ + 1, UserGrant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(featureGrantEClass, FeatureGrant.class, "FeatureGrant", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFeatureGrant_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ + FeatureGrant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getFeatureGrant_Feature(), ecorePackage.getEString(), "feature", null, 1, 1, FeatureGrant.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFeatureGrant_Version(), this.getVersionMatch(), null, "version", null, 0, 1, //$NON-NLS-1$ + FeatureGrant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFeatureGrant_Valid(), this.getValidityPeriod(), null, "valid", null, 1, 1, FeatureGrant.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFeatureGrant_Capacity(), ecorePackage.getEInt(), "capacity", null, 1, 1, FeatureGrant.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFeatureGrant_Pack(), this.getFloatingLicensePack(), this.getFloatingLicensePack_Features(), + "pack", null, 1, 1, FeatureGrant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, //$NON-NLS-1$ + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(validityPeriodEClass, ValidityPeriod.class, "ValidityPeriod", IS_ABSTRACT, IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + + initEClass(validityPeriodClosedEClass, ValidityPeriodClosed.class, "ValidityPeriodClosed", !IS_ABSTRACT, //$NON-NLS-1$ + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getValidityPeriodClosed_From(), ecorePackage.getEDate(), "from", null, 1, 1, //$NON-NLS-1$ + ValidityPeriodClosed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getValidityPeriodClosed_Until(), ecorePackage.getEDate(), "until", null, 1, 1, //$NON-NLS-1$ + ValidityPeriodClosed.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(evaluationInstructionsEClass, EvaluationInstructions.class, "EvaluationInstructions", !IS_ABSTRACT, //$NON-NLS-1$ + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEvaluationInstructions_Type(), ecorePackage.getEString(), "type", null, 1, 1, //$NON-NLS-1$ + EvaluationInstructions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEvaluationInstructions_Expression(), ecorePackage.getEString(), "expression", null, 1, 1, //$NON-NLS-1$ + EvaluationInstructions.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(versionMatchEClass, VersionMatch.class, "VersionMatch", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVersionMatch_Version(), ecorePackage.getEString(), "version", null, 1, 1, VersionMatch.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVersionMatch_Rule(), ecorePackage.getEString(), "rule", null, 1, 1, VersionMatch.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //FloatingPackageImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingServerImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingServerImpl.java new file mode 100644 index 000000000..7b227cdb8 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingServerImpl.java @@ -0,0 +1,246 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; +import org.eclipse.passage.lic.floating.model.api.FloatingServer; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'Server'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl#getAuthentication Authentication}
  • + *
+ * + * @generated + */ +public class FloatingServerImpl extends MinimalEObjectImpl.Container implements FloatingServer { + /** + * The default value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected static final String IDENTIFIER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + private String identifier = IDENTIFIER_EDEFAULT; + + /** + * The cached value of the '{@link #getAuthentication() Authentication}' reference. + * + * + * @see #getAuthentication() + * @generated + * @ordered + */ + protected EvaluationInstructions authentication; + + /** + * + * + * @generated + */ + protected FloatingServerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getFloatingServer(); + } + + /** + * + * + * @generated + */ + @Override + public String getIdentifier() { + return identifier; + } + + /** + * + * + * @generated + */ + @Override + public void setIdentifier(String newIdentifier) { + String oldIdentifier = identifier; + identifier = newIdentifier; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FLOATING_SERVER__IDENTIFIER, + oldIdentifier, identifier)); + } + } + + /** + * + * + * @generated + */ + @Override + public EvaluationInstructions getAuthentication() { + if (authentication != null && authentication.eIsProxy()) { + InternalEObject oldAuthentication = (InternalEObject) authentication; + authentication = (EvaluationInstructions) eResolveProxy(oldAuthentication); + if (authentication != oldAuthentication) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + FloatingPackage.FLOATING_SERVER__AUTHENTICATION, oldAuthentication, authentication)); + } + } + } + return authentication; + } + + /** + * + * + * @generated + */ + public EvaluationInstructions basicGetAuthentication() { + return authentication; + } + + /** + * + * + * @generated + */ + @Override + public void setAuthentication(EvaluationInstructions newAuthentication) { + EvaluationInstructions oldAuthentication = authentication; + authentication = newAuthentication; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.FLOATING_SERVER__AUTHENTICATION, + oldAuthentication, authentication)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.FLOATING_SERVER__IDENTIFIER: + return getIdentifier(); + case FloatingPackage.FLOATING_SERVER__AUTHENTICATION: + if (resolve) + return getAuthentication(); + return basicGetAuthentication(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.FLOATING_SERVER__IDENTIFIER: + setIdentifier((String) newValue); + return; + case FloatingPackage.FLOATING_SERVER__AUTHENTICATION: + setAuthentication((EvaluationInstructions) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.FLOATING_SERVER__IDENTIFIER: + setIdentifier(IDENTIFIER_EDEFAULT); + return; + case FloatingPackage.FLOATING_SERVER__AUTHENTICATION: + setAuthentication((EvaluationInstructions) null); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.FLOATING_SERVER__IDENTIFIER: + return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); + case FloatingPackage.FLOATING_SERVER__AUTHENTICATION: + return authentication != null; + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (identifier: "); //$NON-NLS-1$ + result.append(identifier); + result.append(')'); + return result.toString(); + } + +} //FloatingServerImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/LicenseRequisitesImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/LicenseRequisitesImpl.java new file mode 100644 index 000000000..c5192ec9d --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/LicenseRequisitesImpl.java @@ -0,0 +1,489 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Date; +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; +import org.eclipse.passage.lic.floating.model.api.ProductRef; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriod; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'License Requisites'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getIssueDate Issue Date}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getCompany Company}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getPlan Plan}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getProduct Product}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getValid Valid}
  • + *
+ * + * @generated + */ +public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implements LicenseRequisites { + /** + * The default value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected static final String IDENTIFIER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + private String identifier = IDENTIFIER_EDEFAULT; + + /** + * The default value of the '{@link #getIssueDate() Issue Date}' attribute. + * + * + * @see #getIssueDate() + * @generated + * @ordered + */ + protected static final Date ISSUE_DATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIssueDate() Issue Date}' attribute. + * + * + * @see #getIssueDate() + * @generated + * @ordered + */ + private Date issueDate = ISSUE_DATE_EDEFAULT; + + /** + * The default value of the '{@link #getCompany() Company}' attribute. + * + * + * @see #getCompany() + * @generated + * @ordered + */ + protected static final String COMPANY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCompany() Company}' attribute. + * + * + * @see #getCompany() + * @generated + * @ordered + */ + private String company = COMPANY_EDEFAULT; + + /** + * The default value of the '{@link #getPlan() Plan}' attribute. + * + * + * @see #getPlan() + * @generated + * @ordered + */ + protected static final String PLAN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPlan() Plan}' attribute. + * + * + * @see #getPlan() + * @generated + * @ordered + */ + private String plan = PLAN_EDEFAULT; + + /** + * The cached value of the '{@link #getProduct() Product}' reference. + * + * + * @see #getProduct() + * @generated + * @ordered + */ + protected ProductRef product; + + /** + * The cached value of the '{@link #getValid() Valid}' reference. + * + * + * @see #getValid() + * @generated + * @ordered + */ + protected ValidityPeriod valid; + + /** + * + * + * @generated + */ + protected LicenseRequisitesImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getLicenseRequisites(); + } + + /** + * + * + * @generated + */ + @Override + public String getIdentifier() { + return identifier; + } + + /** + * + * + * @generated + */ + @Override + public void setIdentifier(String newIdentifier) { + String oldIdentifier = identifier; + identifier = newIdentifier; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.LICENSE_REQUISITES__IDENTIFIER, + oldIdentifier, identifier)); + } + } + + /** + * + * + * @generated + */ + @Override + public Date getIssueDate() { + return issueDate; + } + + /** + * + * + * @generated + */ + @Override + public void setIssueDate(Date newIssueDate) { + Date oldIssueDate = issueDate; + issueDate = newIssueDate; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.LICENSE_REQUISITES__ISSUE_DATE, + oldIssueDate, issueDate)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getCompany() { + return company; + } + + /** + * + * + * @generated + */ + @Override + public void setCompany(String newCompany) { + String oldCompany = company; + company = newCompany; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.LICENSE_REQUISITES__COMPANY, + oldCompany, company)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getPlan() { + return plan; + } + + /** + * + * + * @generated + */ + @Override + public void setPlan(String newPlan) { + String oldPlan = plan; + plan = newPlan; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.LICENSE_REQUISITES__PLAN, oldPlan, + plan)); + } + } + + /** + * + * + * @generated + */ + @Override + public ProductRef getProduct() { + if (product != null && product.eIsProxy()) { + InternalEObject oldProduct = (InternalEObject) product; + product = (ProductRef) eResolveProxy(oldProduct); + if (product != oldProduct) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + FloatingPackage.LICENSE_REQUISITES__PRODUCT, oldProduct, product)); + } + } + } + return product; + } + + /** + * + * + * @generated + */ + public ProductRef basicGetProduct() { + return product; + } + + /** + * + * + * @generated + */ + @Override + public void setProduct(ProductRef newProduct) { + ProductRef oldProduct = product; + product = newProduct; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.LICENSE_REQUISITES__PRODUCT, + oldProduct, product)); + } + } + + /** + * + * + * @generated + */ + @Override + public ValidityPeriod getValid() { + if (valid != null && valid.eIsProxy()) { + InternalEObject oldValid = (InternalEObject) valid; + valid = (ValidityPeriod) eResolveProxy(oldValid); + if (valid != oldValid) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, FloatingPackage.LICENSE_REQUISITES__VALID, + oldValid, valid)); + } + } + } + return valid; + } + + /** + * + * + * @generated + */ + public ValidityPeriod basicGetValid() { + return valid; + } + + /** + * + * + * @generated + */ + @Override + public void setValid(ValidityPeriod newValid) { + ValidityPeriod oldValid = valid; + valid = newValid; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.LICENSE_REQUISITES__VALID, oldValid, + valid)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.LICENSE_REQUISITES__IDENTIFIER: + return getIdentifier(); + case FloatingPackage.LICENSE_REQUISITES__ISSUE_DATE: + return getIssueDate(); + case FloatingPackage.LICENSE_REQUISITES__COMPANY: + return getCompany(); + case FloatingPackage.LICENSE_REQUISITES__PLAN: + return getPlan(); + case FloatingPackage.LICENSE_REQUISITES__PRODUCT: + if (resolve) + return getProduct(); + return basicGetProduct(); + case FloatingPackage.LICENSE_REQUISITES__VALID: + if (resolve) + return getValid(); + return basicGetValid(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.LICENSE_REQUISITES__IDENTIFIER: + setIdentifier((String) newValue); + return; + case FloatingPackage.LICENSE_REQUISITES__ISSUE_DATE: + setIssueDate((Date) newValue); + return; + case FloatingPackage.LICENSE_REQUISITES__COMPANY: + setCompany((String) newValue); + return; + case FloatingPackage.LICENSE_REQUISITES__PLAN: + setPlan((String) newValue); + return; + case FloatingPackage.LICENSE_REQUISITES__PRODUCT: + setProduct((ProductRef) newValue); + return; + case FloatingPackage.LICENSE_REQUISITES__VALID: + setValid((ValidityPeriod) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.LICENSE_REQUISITES__IDENTIFIER: + setIdentifier(IDENTIFIER_EDEFAULT); + return; + case FloatingPackage.LICENSE_REQUISITES__ISSUE_DATE: + setIssueDate(ISSUE_DATE_EDEFAULT); + return; + case FloatingPackage.LICENSE_REQUISITES__COMPANY: + setCompany(COMPANY_EDEFAULT); + return; + case FloatingPackage.LICENSE_REQUISITES__PLAN: + setPlan(PLAN_EDEFAULT); + return; + case FloatingPackage.LICENSE_REQUISITES__PRODUCT: + setProduct((ProductRef) null); + return; + case FloatingPackage.LICENSE_REQUISITES__VALID: + setValid((ValidityPeriod) null); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.LICENSE_REQUISITES__IDENTIFIER: + return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); + case FloatingPackage.LICENSE_REQUISITES__ISSUE_DATE: + return !Objects.equals(ISSUE_DATE_EDEFAULT, issueDate); + case FloatingPackage.LICENSE_REQUISITES__COMPANY: + return !Objects.equals(COMPANY_EDEFAULT, company); + case FloatingPackage.LICENSE_REQUISITES__PLAN: + return !Objects.equals(PLAN_EDEFAULT, plan); + case FloatingPackage.LICENSE_REQUISITES__PRODUCT: + return product != null; + case FloatingPackage.LICENSE_REQUISITES__VALID: + return valid != null; + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (identifier: "); //$NON-NLS-1$ + result.append(identifier); + result.append(", issueDate: "); //$NON-NLS-1$ + result.append(issueDate); + result.append(", company: "); //$NON-NLS-1$ + result.append(company); + result.append(", plan: "); //$NON-NLS-1$ + result.append(plan); + result.append(')'); + return result.toString(); + } + +} //LicenseRequisitesImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ProductRefImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ProductRefImpl.java new file mode 100644 index 000000000..a658b8056 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ProductRefImpl.java @@ -0,0 +1,235 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.ProductRef; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'Product Ref'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl#getProduct Product}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl#getVersion Version}
  • + *
+ * + * @generated + */ +public class ProductRefImpl extends MinimalEObjectImpl.Container implements ProductRef { + /** + * The default value of the '{@link #getProduct() Product}' attribute. + * + * + * @see #getProduct() + * @generated + * @ordered + */ + protected static final String PRODUCT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProduct() Product}' attribute. + * + * + * @see #getProduct() + * @generated + * @ordered + */ + private String product = PRODUCT_EDEFAULT; + + /** + * The default value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + private String version = VERSION_EDEFAULT; + + /** + * + * + * @generated + */ + protected ProductRefImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getProductRef(); + } + + /** + * + * + * @generated + */ + @Override + public String getProduct() { + return product; + } + + /** + * + * + * @generated + */ + @Override + public void setProduct(String newProduct) { + String oldProduct = product; + product = newProduct; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.PRODUCT_REF__PRODUCT, oldProduct, + product)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getVersion() { + return version; + } + + /** + * + * + * @generated + */ + @Override + public void setVersion(String newVersion) { + String oldVersion = version; + version = newVersion; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.PRODUCT_REF__VERSION, oldVersion, + version)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.PRODUCT_REF__PRODUCT: + return getProduct(); + case FloatingPackage.PRODUCT_REF__VERSION: + return getVersion(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.PRODUCT_REF__PRODUCT: + setProduct((String) newValue); + return; + case FloatingPackage.PRODUCT_REF__VERSION: + setVersion((String) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.PRODUCT_REF__PRODUCT: + setProduct(PRODUCT_EDEFAULT); + return; + case FloatingPackage.PRODUCT_REF__VERSION: + setVersion(VERSION_EDEFAULT); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.PRODUCT_REF__PRODUCT: + return !Objects.equals(PRODUCT_EDEFAULT, product); + case FloatingPackage.PRODUCT_REF__VERSION: + return !Objects.equals(VERSION_EDEFAULT, version); + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (product: "); //$NON-NLS-1$ + result.append(product); + result.append(", version: "); //$NON-NLS-1$ + result.append(version); + result.append(')'); + return result.toString(); + } + +} //ProductRefImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/UserGrantImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/UserGrantImpl.java new file mode 100644 index 000000000..b9db46997 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/UserGrantImpl.java @@ -0,0 +1,245 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; +import org.eclipse.passage.lic.floating.model.api.UserGrant; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'User Grant'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl#getUser User}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl#getAuthentication Authentication}
  • + *
+ * + * @generated + */ +public class UserGrantImpl extends MinimalEObjectImpl.Container implements UserGrant { + /** + * The default value of the '{@link #getUser() User}' attribute. + * + * + * @see #getUser() + * @generated + * @ordered + */ + protected static final String USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser() User}' attribute. + * + * + * @see #getUser() + * @generated + * @ordered + */ + private String user = USER_EDEFAULT; + + /** + * The cached value of the '{@link #getAuthentication() Authentication}' reference. + * + * + * @see #getAuthentication() + * @generated + * @ordered + */ + protected EvaluationInstructions authentication; + + /** + * + * + * @generated + */ + protected UserGrantImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getUserGrant(); + } + + /** + * + * + * @generated + */ + @Override + public String getUser() { + return user; + } + + /** + * + * + * @generated + */ + @Override + public void setUser(String newUser) { + String oldUser = user; + user = newUser; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.USER_GRANT__USER, oldUser, user)); + } + } + + /** + * + * + * @generated + */ + @Override + public EvaluationInstructions getAuthentication() { + if (authentication != null && authentication.eIsProxy()) { + InternalEObject oldAuthentication = (InternalEObject) authentication; + authentication = (EvaluationInstructions) eResolveProxy(oldAuthentication); + if (authentication != oldAuthentication) { + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.RESOLVE, + FloatingPackage.USER_GRANT__AUTHENTICATION, oldAuthentication, authentication)); + } + } + } + return authentication; + } + + /** + * + * + * @generated + */ + public EvaluationInstructions basicGetAuthentication() { + return authentication; + } + + /** + * + * + * @generated + */ + @Override + public void setAuthentication(EvaluationInstructions newAuthentication) { + EvaluationInstructions oldAuthentication = authentication; + authentication = newAuthentication; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.USER_GRANT__AUTHENTICATION, + oldAuthentication, authentication)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.USER_GRANT__USER: + return getUser(); + case FloatingPackage.USER_GRANT__AUTHENTICATION: + if (resolve) + return getAuthentication(); + return basicGetAuthentication(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.USER_GRANT__USER: + setUser((String) newValue); + return; + case FloatingPackage.USER_GRANT__AUTHENTICATION: + setAuthentication((EvaluationInstructions) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.USER_GRANT__USER: + setUser(USER_EDEFAULT); + return; + case FloatingPackage.USER_GRANT__AUTHENTICATION: + setAuthentication((EvaluationInstructions) null); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.USER_GRANT__USER: + return !Objects.equals(USER_EDEFAULT, user); + case FloatingPackage.USER_GRANT__AUTHENTICATION: + return authentication != null; + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (user: "); //$NON-NLS-1$ + result.append(user); + result.append(')'); + return result.toString(); + } + +} //UserGrantImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ValidityPeriodClosedImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ValidityPeriodClosedImpl.java new file mode 100644 index 000000000..e747c925d --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ValidityPeriodClosedImpl.java @@ -0,0 +1,236 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Date; +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'Validity Period Closed'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl#getFrom From}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl#getUntil Until}
  • + *
+ * + * @generated + */ +public class ValidityPeriodClosedImpl extends MinimalEObjectImpl.Container implements ValidityPeriodClosed { + /** + * The default value of the '{@link #getFrom() From}' attribute. + * + * + * @see #getFrom() + * @generated + * @ordered + */ + protected static final Date FROM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFrom() From}' attribute. + * + * + * @see #getFrom() + * @generated + * @ordered + */ + private Date from = FROM_EDEFAULT; + + /** + * The default value of the '{@link #getUntil() Until}' attribute. + * + * + * @see #getUntil() + * @generated + * @ordered + */ + protected static final Date UNTIL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUntil() Until}' attribute. + * + * + * @see #getUntil() + * @generated + * @ordered + */ + private Date until = UNTIL_EDEFAULT; + + /** + * + * + * @generated + */ + protected ValidityPeriodClosedImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getValidityPeriodClosed(); + } + + /** + * + * + * @generated + */ + @Override + public Date getFrom() { + return from; + } + + /** + * + * + * @generated + */ + @Override + public void setFrom(Date newFrom) { + Date oldFrom = from; + from = newFrom; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.VALIDITY_PERIOD_CLOSED__FROM, oldFrom, + from)); + } + } + + /** + * + * + * @generated + */ + @Override + public Date getUntil() { + return until; + } + + /** + * + * + * @generated + */ + @Override + public void setUntil(Date newUntil) { + Date oldUntil = until; + until = newUntil; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.VALIDITY_PERIOD_CLOSED__UNTIL, + oldUntil, until)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.VALIDITY_PERIOD_CLOSED__FROM: + return getFrom(); + case FloatingPackage.VALIDITY_PERIOD_CLOSED__UNTIL: + return getUntil(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.VALIDITY_PERIOD_CLOSED__FROM: + setFrom((Date) newValue); + return; + case FloatingPackage.VALIDITY_PERIOD_CLOSED__UNTIL: + setUntil((Date) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.VALIDITY_PERIOD_CLOSED__FROM: + setFrom(FROM_EDEFAULT); + return; + case FloatingPackage.VALIDITY_PERIOD_CLOSED__UNTIL: + setUntil(UNTIL_EDEFAULT); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.VALIDITY_PERIOD_CLOSED__FROM: + return !Objects.equals(FROM_EDEFAULT, from); + case FloatingPackage.VALIDITY_PERIOD_CLOSED__UNTIL: + return !Objects.equals(UNTIL_EDEFAULT, until); + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (from: "); //$NON-NLS-1$ + result.append(from); + result.append(", until: "); //$NON-NLS-1$ + result.append(until); + result.append(')'); + return result.toString(); + } + +} //ValidityPeriodClosedImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/VersionMatchImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/VersionMatchImpl.java new file mode 100644 index 000000000..3f4479a23 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/VersionMatchImpl.java @@ -0,0 +1,234 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.VersionMatch; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'Version Match'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl#getVersion Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl#getRule Rule}
  • + *
+ * + * @generated + */ +public class VersionMatchImpl extends MinimalEObjectImpl.Container implements VersionMatch { + /** + * The default value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + private String version = VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getRule() Rule}' attribute. + * + * + * @see #getRule() + * @generated + * @ordered + */ + protected static final String RULE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRule() Rule}' attribute. + * + * + * @see #getRule() + * @generated + * @ordered + */ + private String rule = RULE_EDEFAULT; + + /** + * + * + * @generated + */ + protected VersionMatchImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getVersionMatch(); + } + + /** + * + * + * @generated + */ + @Override + public String getVersion() { + return version; + } + + /** + * + * + * @generated + */ + @Override + public void setVersion(String newVersion) { + String oldVersion = version; + version = newVersion; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.VERSION_MATCH__VERSION, oldVersion, + version)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getRule() { + return rule; + } + + /** + * + * + * @generated + */ + @Override + public void setRule(String newRule) { + String oldRule = rule; + rule = newRule; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.VERSION_MATCH__RULE, oldRule, rule)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.VERSION_MATCH__VERSION: + return getVersion(); + case FloatingPackage.VERSION_MATCH__RULE: + return getRule(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.VERSION_MATCH__VERSION: + setVersion((String) newValue); + return; + case FloatingPackage.VERSION_MATCH__RULE: + setRule((String) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.VERSION_MATCH__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case FloatingPackage.VERSION_MATCH__RULE: + setRule(RULE_EDEFAULT); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.VERSION_MATCH__VERSION: + return !Objects.equals(VERSION_EDEFAULT, version); + case FloatingPackage.VERSION_MATCH__RULE: + return !Objects.equals(RULE_EDEFAULT, rule); + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (version: "); //$NON-NLS-1$ + result.append(version); + result.append(", rule: "); //$NON-NLS-1$ + result.append(rule); + result.append(')'); + return result.toString(); + } + +} //VersionMatchImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java new file mode 100644 index 000000000..9e8baf387 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java @@ -0,0 +1,124 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.meta; + +import org.eclipse.emf.ecore.EFactory; + +import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; +import org.eclipse.passage.lic.floating.model.api.FeatureGrant; +import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; +import org.eclipse.passage.lic.floating.model.api.FloatingServer; +import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; +import org.eclipse.passage.lic.floating.model.api.ProductRef; +import org.eclipse.passage.lic.floating.model.api.UserGrant; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed; +import org.eclipse.passage.lic.floating.model.api.VersionMatch; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage + * @generated + */ +public interface FloatingFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + FloatingFactory eINSTANCE = org.eclipse.passage.lic.floating.model.impl.FloatingFactoryImpl.init(); + + /** + * Returns a new object of class 'License Pack'. + * + * + * @return a new object of class 'License Pack'. + * @generated + */ + FloatingLicensePack createFloatingLicensePack(); + + /** + * Returns a new object of class 'License Requisites'. + * + * + * @return a new object of class 'License Requisites'. + * @generated + */ + LicenseRequisites createLicenseRequisites(); + + /** + * Returns a new object of class 'Product Ref'. + * + * + * @return a new object of class 'Product Ref'. + * @generated + */ + ProductRef createProductRef(); + + /** + * Returns a new object of class 'Server'. + * + * + * @return a new object of class 'Server'. + * @generated + */ + FloatingServer createFloatingServer(); + + /** + * Returns a new object of class 'User Grant'. + * + * + * @return a new object of class 'User Grant'. + * @generated + */ + UserGrant createUserGrant(); + + /** + * Returns a new object of class 'Feature Grant'. + * + * + * @return a new object of class 'Feature Grant'. + * @generated + */ + FeatureGrant createFeatureGrant(); + + /** + * Returns a new object of class 'Validity Period Closed'. + * + * + * @return a new object of class 'Validity Period Closed'. + * @generated + */ + ValidityPeriodClosed createValidityPeriodClosed(); + + /** + * Returns a new object of class 'Evaluation Instructions'. + * + * + * @return a new object of class 'Evaluation Instructions'. + * @generated + */ + EvaluationInstructions createEvaluationInstructions(); + + /** + * Returns a new object of class 'Version Match'. + * + * + * @return a new object of class 'Version Match'. + * @generated + */ + VersionMatch createVersionMatch(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + FloatingPackage getFloatingPackage(); + +} //FloatingFactory diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingPackage.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingPackage.java new file mode 100644 index 000000000..43826e915 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingPackage.java @@ -0,0 +1,1008 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.meta; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingFactory + * @model kind="package" + * @generated + */ +public interface FloatingPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "floating"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/passage/lic/floating/0.1.0"; //$NON-NLS-1$ + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "org.eclipse.passage.lic"; //$NON-NLS-1$ + + /** + * The singleton instance of the package. + * + * + * @generated + */ + FloatingPackage eINSTANCE = org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl License Pack}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getFloatingLicensePack() + * @generated + */ + int FLOATING_LICENSE_PACK = 0; + + /** + * The feature id for the 'License' reference. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE_PACK__LICENSE = 0; + + /** + * The feature id for the 'Host' reference. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE_PACK__HOST = 1; + + /** + * The feature id for the 'Users' reference list. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE_PACK__USERS = 2; + + /** + * The feature id for the 'Features' reference list. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE_PACK__FEATURES = 3; + + /** + * The number of structural features of the 'License Pack' class. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE_PACK_FEATURE_COUNT = 4; + + /** + * The number of operations of the 'License Pack' class. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE_PACK_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl License Requisites}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getLicenseRequisites() + * @generated + */ + int LICENSE_REQUISITES = 1; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int LICENSE_REQUISITES__IDENTIFIER = 0; + + /** + * The feature id for the 'Issue Date' attribute. + * + * + * @generated + * @ordered + */ + int LICENSE_REQUISITES__ISSUE_DATE = 1; + + /** + * The feature id for the 'Company' attribute. + * + * + * @generated + * @ordered + */ + int LICENSE_REQUISITES__COMPANY = 2; + + /** + * The feature id for the 'Plan' attribute. + * + * + * @generated + * @ordered + */ + int LICENSE_REQUISITES__PLAN = 3; + + /** + * The feature id for the 'Product' reference. + * + * + * @generated + * @ordered + */ + int LICENSE_REQUISITES__PRODUCT = 4; + + /** + * The feature id for the 'Valid' reference. + * + * + * @generated + * @ordered + */ + int LICENSE_REQUISITES__VALID = 5; + + /** + * The number of structural features of the 'License Requisites' class. + * + * + * @generated + * @ordered + */ + int LICENSE_REQUISITES_FEATURE_COUNT = 6; + + /** + * The number of operations of the 'License Requisites' class. + * + * + * @generated + * @ordered + */ + int LICENSE_REQUISITES_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl Product Ref}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.ProductRefImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getProductRef() + * @generated + */ + int PRODUCT_REF = 2; + + /** + * The feature id for the 'Product' attribute. + * + * + * @generated + * @ordered + */ + int PRODUCT_REF__PRODUCT = 0; + + /** + * The feature id for the 'Version' attribute. + * + * + * @generated + * @ordered + */ + int PRODUCT_REF__VERSION = 1; + + /** + * The number of structural features of the 'Product Ref' class. + * + * + * @generated + * @ordered + */ + int PRODUCT_REF_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Product Ref' class. + * + * + * @generated + * @ordered + */ + int PRODUCT_REF_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl Server}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getFloatingServer() + * @generated + */ + int FLOATING_SERVER = 3; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int FLOATING_SERVER__IDENTIFIER = 0; + + /** + * The feature id for the 'Authentication' reference. + * + * + * @generated + * @ordered + */ + int FLOATING_SERVER__AUTHENTICATION = 1; + + /** + * The number of structural features of the 'Server' class. + * + * + * @generated + * @ordered + */ + int FLOATING_SERVER_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Server' class. + * + * + * @generated + * @ordered + */ + int FLOATING_SERVER_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl User Grant}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.UserGrantImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getUserGrant() + * @generated + */ + int USER_GRANT = 4; + + /** + * The feature id for the 'User' attribute. + * + * + * @generated + * @ordered + */ + int USER_GRANT__USER = 0; + + /** + * The feature id for the 'Authentication' reference. + * + * + * @generated + * @ordered + */ + int USER_GRANT__AUTHENTICATION = 1; + + /** + * The number of structural features of the 'User Grant' class. + * + * + * @generated + * @ordered + */ + int USER_GRANT_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'User Grant' class. + * + * + * @generated + * @ordered + */ + int USER_GRANT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl Feature Grant}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getFeatureGrant() + * @generated + */ + int FEATURE_GRANT = 5; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int FEATURE_GRANT__IDENTIFIER = 0; + + /** + * The feature id for the 'Feature' attribute. + * + * + * @generated + * @ordered + */ + int FEATURE_GRANT__FEATURE = 1; + + /** + * The feature id for the 'Version' reference. + * + * + * @generated + * @ordered + */ + int FEATURE_GRANT__VERSION = 2; + + /** + * The feature id for the 'Valid' reference. + * + * + * @generated + * @ordered + */ + int FEATURE_GRANT__VALID = 3; + + /** + * The feature id for the 'Capacity' attribute. + * + * + * @generated + * @ordered + */ + int FEATURE_GRANT__CAPACITY = 4; + + /** + * The feature id for the 'Pack' reference. + * + * + * @generated + * @ordered + */ + int FEATURE_GRANT__PACK = 5; + + /** + * The number of structural features of the 'Feature Grant' class. + * + * + * @generated + * @ordered + */ + int FEATURE_GRANT_FEATURE_COUNT = 6; + + /** + * The number of operations of the 'Feature Grant' class. + * + * + * @generated + * @ordered + */ + int FEATURE_GRANT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod Validity Period}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriod + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getValidityPeriod() + * @generated + */ + int VALIDITY_PERIOD = 6; + + /** + * The number of structural features of the 'Validity Period' class. + * + * + * @generated + * @ordered + */ + int VALIDITY_PERIOD_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Validity Period' class. + * + * + * @generated + * @ordered + */ + int VALIDITY_PERIOD_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl Validity Period Closed}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getValidityPeriodClosed() + * @generated + */ + int VALIDITY_PERIOD_CLOSED = 7; + + /** + * The feature id for the 'From' attribute. + * + * + * @generated + * @ordered + */ + int VALIDITY_PERIOD_CLOSED__FROM = VALIDITY_PERIOD_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Until' attribute. + * + * + * @generated + * @ordered + */ + int VALIDITY_PERIOD_CLOSED__UNTIL = VALIDITY_PERIOD_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Validity Period Closed' class. + * + * + * @generated + * @ordered + */ + int VALIDITY_PERIOD_CLOSED_FEATURE_COUNT = VALIDITY_PERIOD_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Validity Period Closed' class. + * + * + * @generated + * @ordered + */ + int VALIDITY_PERIOD_CLOSED_OPERATION_COUNT = VALIDITY_PERIOD_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl Evaluation Instructions}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getEvaluationInstructions() + * @generated + */ + int EVALUATION_INSTRUCTIONS = 8; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int EVALUATION_INSTRUCTIONS__TYPE = 0; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int EVALUATION_INSTRUCTIONS__EXPRESSION = 1; + + /** + * The number of structural features of the 'Evaluation Instructions' class. + * + * + * @generated + * @ordered + */ + int EVALUATION_INSTRUCTIONS_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Evaluation Instructions' class. + * + * + * @generated + * @ordered + */ + int EVALUATION_INSTRUCTIONS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl Version Match}' class. + * + * + * @see org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getVersionMatch() + * @generated + */ + int VERSION_MATCH = 9; + + /** + * The feature id for the 'Version' attribute. + * + * + * @generated + * @ordered + */ + int VERSION_MATCH__VERSION = 0; + + /** + * The feature id for the 'Rule' attribute. + * + * + * @generated + * @ordered + */ + int VERSION_MATCH__RULE = 1; + + /** + * The number of structural features of the 'Version Match' class. + * + * + * @generated + * @ordered + */ + int VERSION_MATCH_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Version Match' class. + * + * + * @generated + * @ordered + */ + int VERSION_MATCH_OPERATION_COUNT = 0; + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack License Pack}'. + * + * + * @return the meta object for class 'License Pack'. + * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack + * @generated + */ + EClass getFloatingLicensePack(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense License}'. + * + * + * @return the meta object for the reference 'License'. + * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense() + * @see #getFloatingLicensePack() + * @generated + */ + EReference getFloatingLicensePack_License(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost Host}'. + * + * + * @return the meta object for the reference 'Host'. + * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost() + * @see #getFloatingLicensePack() + * @generated + */ + EReference getFloatingLicensePack_Host(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getUsers Users}'. + * + * + * @return the meta object for the reference list 'Users'. + * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getUsers() + * @see #getFloatingLicensePack() + * @generated + */ + EReference getFloatingLicensePack_Users(); + + /** + * Returns the meta object for the reference list '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures Features}'. + * + * + * @return the meta object for the reference list 'Features'. + * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures() + * @see #getFloatingLicensePack() + * @generated + */ + EReference getFloatingLicensePack_Features(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites License Requisites}'. + * + * + * @return the meta object for class 'License Requisites'. + * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites + * @generated + */ + EClass getLicenseRequisites(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier Identifier}'. + * + * + * @return the meta object for the attribute 'Identifier'. + * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier() + * @see #getLicenseRequisites() + * @generated + */ + EAttribute getLicenseRequisites_Identifier(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate Issue Date}'. + * + * + * @return the meta object for the attribute 'Issue Date'. + * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate() + * @see #getLicenseRequisites() + * @generated + */ + EAttribute getLicenseRequisites_IssueDate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany Company}'. + * + * + * @return the meta object for the attribute 'Company'. + * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany() + * @see #getLicenseRequisites() + * @generated + */ + EAttribute getLicenseRequisites_Company(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan Plan}'. + * + * + * @return the meta object for the attribute 'Plan'. + * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan() + * @see #getLicenseRequisites() + * @generated + */ + EAttribute getLicenseRequisites_Plan(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct Product}'. + * + * + * @return the meta object for the reference 'Product'. + * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct() + * @see #getLicenseRequisites() + * @generated + */ + EReference getLicenseRequisites_Product(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid Valid}'. + * + * + * @return the meta object for the reference 'Valid'. + * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid() + * @see #getLicenseRequisites() + * @generated + */ + EReference getLicenseRequisites_Valid(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.ProductRef Product Ref}'. + * + * + * @return the meta object for class 'Product Ref'. + * @see org.eclipse.passage.lic.floating.model.api.ProductRef + * @generated + */ + EClass getProductRef(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct Product}'. + * + * + * @return the meta object for the attribute 'Product'. + * @see org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct() + * @see #getProductRef() + * @generated + */ + EAttribute getProductRef_Product(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion Version}'. + * + * + * @return the meta object for the attribute 'Version'. + * @see org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion() + * @see #getProductRef() + * @generated + */ + EAttribute getProductRef_Version(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer Server}'. + * + * + * @return the meta object for class 'Server'. + * @see org.eclipse.passage.lic.floating.model.api.FloatingServer + * @generated + */ + EClass getFloatingServer(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier Identifier}'. + * + * + * @return the meta object for the attribute 'Identifier'. + * @see org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier() + * @see #getFloatingServer() + * @generated + */ + EAttribute getFloatingServer_Identifier(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication Authentication}'. + * + * + * @return the meta object for the reference 'Authentication'. + * @see org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication() + * @see #getFloatingServer() + * @generated + */ + EReference getFloatingServer_Authentication(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.UserGrant User Grant}'. + * + * + * @return the meta object for class 'User Grant'. + * @see org.eclipse.passage.lic.floating.model.api.UserGrant + * @generated + */ + EClass getUserGrant(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser User}'. + * + * + * @return the meta object for the attribute 'User'. + * @see org.eclipse.passage.lic.floating.model.api.UserGrant#getUser() + * @see #getUserGrant() + * @generated + */ + EAttribute getUserGrant_User(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication Authentication}'. + * + * + * @return the meta object for the reference 'Authentication'. + * @see org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication() + * @see #getUserGrant() + * @generated + */ + EReference getUserGrant_Authentication(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant Feature Grant}'. + * + * + * @return the meta object for class 'Feature Grant'. + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant + * @generated + */ + EClass getFeatureGrant(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier Identifier}'. + * + * + * @return the meta object for the attribute 'Identifier'. + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier() + * @see #getFeatureGrant() + * @generated + */ + EAttribute getFeatureGrant_Identifier(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature Feature}'. + * + * + * @return the meta object for the attribute 'Feature'. + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature() + * @see #getFeatureGrant() + * @generated + */ + EAttribute getFeatureGrant_Feature(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion Version}'. + * + * + * @return the meta object for the reference 'Version'. + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion() + * @see #getFeatureGrant() + * @generated + */ + EReference getFeatureGrant_Version(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid Valid}'. + * + * + * @return the meta object for the reference 'Valid'. + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid() + * @see #getFeatureGrant() + * @generated + */ + EReference getFeatureGrant_Valid(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity Capacity}'. + * + * + * @return the meta object for the attribute 'Capacity'. + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity() + * @see #getFeatureGrant() + * @generated + */ + EAttribute getFeatureGrant_Capacity(); + + /** + * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack Pack}'. + * + * + * @return the meta object for the reference 'Pack'. + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack() + * @see #getFeatureGrant() + * @generated + */ + EReference getFeatureGrant_Pack(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod Validity Period}'. + * + * + * @return the meta object for class 'Validity Period'. + * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriod + * @generated + */ + EClass getValidityPeriod(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed Validity Period Closed}'. + * + * + * @return the meta object for class 'Validity Period Closed'. + * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed + * @generated + */ + EClass getValidityPeriodClosed(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom From}'. + * + * + * @return the meta object for the attribute 'From'. + * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom() + * @see #getValidityPeriodClosed() + * @generated + */ + EAttribute getValidityPeriodClosed_From(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil Until}'. + * + * + * @return the meta object for the attribute 'Until'. + * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil() + * @see #getValidityPeriodClosed() + * @generated + */ + EAttribute getValidityPeriodClosed_Until(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions Evaluation Instructions}'. + * + * + * @return the meta object for class 'Evaluation Instructions'. + * @see org.eclipse.passage.lic.floating.model.api.EvaluationInstructions + * @generated + */ + EClass getEvaluationInstructions(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType() + * @see #getEvaluationInstructions() + * @generated + */ + EAttribute getEvaluationInstructions_Type(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression Expression}'. + * + * + * @return the meta object for the attribute 'Expression'. + * @see org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression() + * @see #getEvaluationInstructions() + * @generated + */ + EAttribute getEvaluationInstructions_Expression(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch Version Match}'. + * + * + * @return the meta object for class 'Version Match'. + * @see org.eclipse.passage.lic.floating.model.api.VersionMatch + * @generated + */ + EClass getVersionMatch(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion Version}'. + * + * + * @return the meta object for the attribute 'Version'. + * @see org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion() + * @see #getVersionMatch() + * @generated + */ + EAttribute getVersionMatch_Version(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule Rule}'. + * + * + * @return the meta object for the attribute 'Rule'. + * @see org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule() + * @see #getVersionMatch() + * @generated + */ + EAttribute getVersionMatch_Rule(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + FloatingFactory getFloatingFactory(); + +} //FloatingPackage diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java new file mode 100644 index 000000000..dbf0f3237 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java @@ -0,0 +1,292 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.passage.lic.floating.model.api.*; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage + * @generated + */ +public class FloatingAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static FloatingPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public FloatingAdapterFactory() { + if (modelPackage == null) { + modelPackage = FloatingPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected FloatingSwitch modelSwitch = new FloatingSwitch() { + @Override + public Adapter caseFloatingLicensePack(FloatingLicensePack object) { + return createFloatingLicensePackAdapter(); + } + + @Override + public Adapter caseLicenseRequisites(LicenseRequisites object) { + return createLicenseRequisitesAdapter(); + } + + @Override + public Adapter caseProductRef(ProductRef object) { + return createProductRefAdapter(); + } + + @Override + public Adapter caseFloatingServer(FloatingServer object) { + return createFloatingServerAdapter(); + } + + @Override + public Adapter caseUserGrant(UserGrant object) { + return createUserGrantAdapter(); + } + + @Override + public Adapter caseFeatureGrant(FeatureGrant object) { + return createFeatureGrantAdapter(); + } + + @Override + public Adapter caseValidityPeriod(ValidityPeriod object) { + return createValidityPeriodAdapter(); + } + + @Override + public Adapter caseValidityPeriodClosed(ValidityPeriodClosed object) { + return createValidityPeriodClosedAdapter(); + } + + @Override + public Adapter caseEvaluationInstructions(EvaluationInstructions object) { + return createEvaluationInstructionsAdapter(); + } + + @Override + public Adapter caseVersionMatch(VersionMatch object) { + return createVersionMatchAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack License Pack}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack + * @generated + */ + public Adapter createFloatingLicensePackAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites License Requisites}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites + * @generated + */ + public Adapter createLicenseRequisitesAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.ProductRef Product Ref}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.ProductRef + * @generated + */ + public Adapter createProductRefAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer Server}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.FloatingServer + * @generated + */ + public Adapter createFloatingServerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.UserGrant User Grant}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.UserGrant + * @generated + */ + public Adapter createUserGrantAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant Feature Grant}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant + * @generated + */ + public Adapter createFeatureGrantAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod Validity Period}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriod + * @generated + */ + public Adapter createValidityPeriodAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed Validity Period Closed}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed + * @generated + */ + public Adapter createValidityPeriodClosedAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions Evaluation Instructions}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.EvaluationInstructions + * @generated + */ + public Adapter createEvaluationInstructionsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch Version Match}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.VersionMatch + * @generated + */ + public Adapter createVersionMatchAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //FloatingAdapterFactory diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java new file mode 100644 index 000000000..52f2f5eb7 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java @@ -0,0 +1,314 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.util; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +import org.eclipse.passage.lic.floating.model.api.*; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage + * @generated + */ +public class FloatingSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static FloatingPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public FloatingSwitch() { + if (modelPackage == null) { + modelPackage = FloatingPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case FloatingPackage.FLOATING_LICENSE_PACK: { + FloatingLicensePack floatingLicensePack = (FloatingLicensePack) theEObject; + T result = caseFloatingLicensePack(floatingLicensePack); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.LICENSE_REQUISITES: { + LicenseRequisites licenseRequisites = (LicenseRequisites) theEObject; + T result = caseLicenseRequisites(licenseRequisites); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.PRODUCT_REF: { + ProductRef productRef = (ProductRef) theEObject; + T result = caseProductRef(productRef); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.FLOATING_SERVER: { + FloatingServer floatingServer = (FloatingServer) theEObject; + T result = caseFloatingServer(floatingServer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.USER_GRANT: { + UserGrant userGrant = (UserGrant) theEObject; + T result = caseUserGrant(userGrant); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.FEATURE_GRANT: { + FeatureGrant featureGrant = (FeatureGrant) theEObject; + T result = caseFeatureGrant(featureGrant); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.VALIDITY_PERIOD: { + ValidityPeriod validityPeriod = (ValidityPeriod) theEObject; + T result = caseValidityPeriod(validityPeriod); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.VALIDITY_PERIOD_CLOSED: { + ValidityPeriodClosed validityPeriodClosed = (ValidityPeriodClosed) theEObject; + T result = caseValidityPeriodClosed(validityPeriodClosed); + if (result == null) + result = caseValidityPeriod(validityPeriodClosed); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.EVALUATION_INSTRUCTIONS: { + EvaluationInstructions evaluationInstructions = (EvaluationInstructions) theEObject; + T result = caseEvaluationInstructions(evaluationInstructions); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case FloatingPackage.VERSION_MATCH: { + VersionMatch versionMatch = (VersionMatch) theEObject; + T result = caseVersionMatch(versionMatch); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'License Pack'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'License Pack'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFloatingLicensePack(FloatingLicensePack object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'License Requisites'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'License Requisites'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLicenseRequisites(LicenseRequisites object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Product Ref'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Product Ref'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProductRef(ProductRef object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Server'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Server'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFloatingServer(FloatingServer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'User Grant'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'User Grant'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUserGrant(UserGrant object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Feature Grant'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Feature Grant'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFeatureGrant(FeatureGrant object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Validity Period'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Validity Period'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseValidityPeriod(ValidityPeriod object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Validity Period Closed'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Validity Period Closed'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseValidityPeriodClosed(ValidityPeriodClosed object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Evaluation Instructions'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Evaluation Instructions'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEvaluationInstructions(EvaluationInstructions object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Version Match'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Version Match'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVersionMatch(VersionMatch object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //FloatingSwitch diff --git a/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/AssignGrantIdentifiers.java b/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/AssignGrantIdentifiers.java new file mode 100644 index 000000000..37267413a --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/AssignGrantIdentifiers.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ +package org.eclipse.passage.lic.internal.licenses.model; + +import java.util.Optional; +import java.util.function.Consumer; +import java.util.function.Predicate; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.passage.lic.licenses.model.api.LicenseGrant; +import org.eclipse.passage.lic.licenses.model.api.LicensePack; + +public final class AssignGrantIdentifiers implements Consumer { + + private final Predicate predicate; + + public AssignGrantIdentifiers() { + predicate = ((Predicate) String::isEmpty).negate(); + } + + @Override + public void accept(LicensePack pack) { + String identifier = pack.getIdentifier(); + EList grants = pack.getLicenseGrants(); + for (int i = 0; i < grants.size(); i++) { + LicenseGrant grant = grants.get(i); + if (Optional.ofNullable(grant.getIdentifier()).filter(predicate).isPresent()) { + continue; + } + grant.setIdentifier(identifier + '#' + i); + } + + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/LicensesClassMetadata.java b/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/LicensesClassMetadata.java new file mode 100644 index 000000000..4e1a1409a --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/LicensesClassMetadata.java @@ -0,0 +1,47 @@ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ +package org.eclipse.passage.lic.internal.licenses.model; + +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + +import org.eclipse.passage.lic.emf.meta.ClassMetadata; +import org.eclipse.passage.lic.emf.meta.EntityMetadata; +import org.eclipse.passage.lic.emf.meta.PlainEntityMetadata; +import org.eclipse.passage.lic.licenses.LicensePlanDescriptor; +import org.eclipse.passage.lic.licenses.model.api.LicensePlan; +import org.eclipse.passage.lic.licenses.model.meta.LicensesPackage; + +public final class LicensesClassMetadata implements ClassMetadata { + + private final LicensesPackage meta; + private final Map, EntityMetadata> map; + + public LicensesClassMetadata() { + meta = LicensesPackage.eINSTANCE; + map = new HashMap, EntityMetadata>(); + map.put(LicensePlanDescriptor.class, // + new PlainEntityMetadata(// + meta.getLicensePlan(), // + meta.getLicensePlan_Identifier(), // + meta.getLicensePlan_Name())); + map.put(LicensePlan.class, map.get(LicensePlanDescriptor.class)); + } + + @Override + public Optional find(Class clazz) { + return Optional.ofNullable(map.get(clazz)); + } + +} From 93a7f198b666d3e727e464166d1f92b41da4a5a3 Mon Sep 17 00:00:00 2001 From: eparovyshnaya Date: Thu, 22 Oct 2020 15:57:17 +0300 Subject: [PATCH 2/3] Bug 568093 Create GenModel for Floating license pack ecore Append license headers to all .edit generated code Signed-off-by: eparovyshnaya --- .../edit/FLoatingLicensesEditPlugin.java | 16 ++++++++++++---- .../EvaluationInstructionsItemProvider.java | 17 ++++++++++++----- .../providers/FeatureGrantItemProvider.java | 17 ++++++++++++----- .../FloatingItemProviderAdapterFactory.java | 15 ++++++++++++--- .../FloatingLicensePackItemProvider.java | 17 ++++++++++++----- .../providers/FloatingServerItemProvider.java | 17 ++++++++++++----- .../LicenseRequisitesItemProvider.java | 17 ++++++++++++----- .../edit/providers/ProductRefItemProvider.java | 17 ++++++++++++----- .../edit/providers/UserGrantItemProvider.java | 17 ++++++++++++----- .../ValidityPeriodClosedItemProvider.java | 17 ++++++++++++----- .../providers/VersionMatchItemProvider.java | 17 ++++++++++++----- 11 files changed, 132 insertions(+), 52 deletions(-) diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/FLoatingLicensesEditPlugin.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/FLoatingLicensesEditPlugin.java index efddd27bb..9a0cf5beb 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/FLoatingLicensesEditPlugin.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/FLoatingLicensesEditPlugin.java @@ -1,11 +1,19 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit; import org.eclipse.emf.common.EMFPlugin; - import org.eclipse.emf.common.util.ResourceLocator; - import org.osgi.framework.BundleActivator; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/EvaluationInstructionsItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/EvaluationInstructionsItemProvider.java index a862611df..753b1b260 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/EvaluationInstructionsItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/EvaluationInstructionsItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,7 +28,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FeatureGrantItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FeatureGrantItemProvider.java index 328180608..2aa2293ca 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FeatureGrantItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FeatureGrantItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,7 +28,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java index 5b0e647a3..718f18f06 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.ArrayList; @@ -8,7 +18,6 @@ import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.Notifier; - import org.eclipse.emf.edit.provider.ChangeNotifier; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ComposedAdapterFactory; diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingLicensePackItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingLicensePackItemProvider.java index 2b1e51d8c..ea35554a7 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingLicensePackItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingLicensePackItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -18,7 +26,6 @@ import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; import org.eclipse.emf.edit.provider.ITreeItemContentProvider; import org.eclipse.emf.edit.provider.ItemProviderAdapter; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingServerItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingServerItemProvider.java index df030de84..787cd1f93 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingServerItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingServerItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,7 +28,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/LicenseRequisitesItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/LicenseRequisitesItemProvider.java index 77e9d4f85..775a795e9 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/LicenseRequisitesItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/LicenseRequisitesItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,7 +28,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ProductRefItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ProductRefItemProvider.java index 5b60dde15..0026191a1 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ProductRefItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ProductRefItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,7 +28,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/UserGrantItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/UserGrantItemProvider.java index bcd627e46..4e44747d9 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/UserGrantItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/UserGrantItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,7 +28,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ValidityPeriodClosedItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ValidityPeriodClosedItemProvider.java index 0e6605a01..ba9f7bcf2 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ValidityPeriodClosedItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/ValidityPeriodClosedItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -8,9 +18,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -21,7 +29,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/VersionMatchItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/VersionMatchItemProvider.java index 274bd2c71..57f4a1286 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/VersionMatchItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/VersionMatchItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,7 +28,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; /** From 1d5397c2b406e212e392133c2d94b659714dc1b2 Mon Sep 17 00:00:00 2001 From: eparovyshnaya Date: Thu, 22 Oct 2020 16:02:53 +0300 Subject: [PATCH 3/3] Bug 568093 Create GenModel for Floating license pack ecore Append license headers to all .model generated code. Make `identifier` fields be identifiers in EMF sense. Signed-off-by: eparovyshnaya --- .../model/floating.ecore | 6 +- .../model/api/EvaluationInstructions.java | 52 +- .../lic/floating/model/api/FeatureGrant.java | 119 +-- .../model/api/FloatingLicensePack.java | 79 +- .../floating/model/api/FloatingServer.java | 53 +- .../floating/model/api/LicenseRequisites.java | 117 +-- .../lic/floating/model/api/ProductRef.java | 51 +- .../lic/floating/model/api/UserGrant.java | 52 +- .../floating/model/api/ValidityPeriod.java | 19 +- .../model/api/ValidityPeriodClosed.java | 51 +- .../lic/floating/model/api/VersionMatch.java | 51 +- .../impl/EvaluationInstructionsImpl.java | 99 +-- .../floating/model/impl/FeatureGrantImpl.java | 189 ++--- .../model/impl/FloatingFactoryImpl.java | 96 +-- .../model/impl/FloatingLicensePackImpl.java | 123 ++-- .../model/impl/FloatingPackageImpl.java | 278 +++---- .../model/impl/FloatingServerImpl.java | 98 +-- .../model/impl/LicenseRequisitesImpl.java | 181 ++--- .../floating/model/impl/ProductRefImpl.java | 91 +-- .../floating/model/impl/UserGrantImpl.java | 98 +-- .../model/impl/ValidityPeriodClosedImpl.java | 99 +-- .../floating/model/impl/VersionMatchImpl.java | 95 +-- .../floating/model/meta/FloatingFactory.java | 86 ++- .../floating/model/meta/FloatingPackage.java | 683 ++++++++++-------- .../model/util/FloatingAdapterFactory.java | 190 ++--- .../floating/model/util/FloatingSwitch.java | 203 +++--- .../model/AssignGrantIdentifiers.java | 16 +- .../floating/model/LicensesClassMetadata.java | 47 -- 28 files changed, 1820 insertions(+), 1502 deletions(-) delete mode 100644 bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/LicensesClassMetadata.java diff --git a/bundles/org.eclipse.passage.lic.floating.ecore/model/floating.ecore b/bundles/org.eclipse.passage.lic.floating.ecore/model/floating.ecore index b4a557cd6..b1cf9916a 100644 --- a/bundles/org.eclipse.passage.lic.floating.ecore/model/floating.ecore +++ b/bundles/org.eclipse.passage.lic.floating.ecore/model/floating.ecore @@ -13,7 +13,7 @@ + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" iD="true"/> + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" iD="true"/> @@ -41,7 +41,7 @@ + eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" iD="true"/> diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/EvaluationInstructions.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/EvaluationInstructions.java index abb970f35..53d37d836 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/EvaluationInstructions.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/EvaluationInstructions.java @@ -1,20 +1,31 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'Evaluation Instructions'. - * + * A representation of the model object + * 'Evaluation Instructions'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType Type}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression Expression}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType + * Type}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression + * Expression}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getEvaluationInstructions() @@ -23,9 +34,9 @@ */ public interface EvaluationInstructions extends EObject { /** - * Returns the value of the 'Type' attribute. - * - * + * Returns the value of the 'Type' attribute. + * * @return the value of the 'Type' attribute. * @see #setType(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getEvaluationInstructions_Type() @@ -35,9 +46,10 @@ public interface EvaluationInstructions extends EObject { String getType(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType Type}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType + * Type}' attribute. + * * @param value the new value of the 'Type' attribute. * @see #getType() * @generated @@ -45,9 +57,9 @@ public interface EvaluationInstructions extends EObject { void setType(String value); /** - * Returns the value of the 'Expression' attribute. - * - * + * Returns the value of the 'Expression' attribute. + * * @return the value of the 'Expression' attribute. * @see #setExpression(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getEvaluationInstructions_Expression() @@ -57,9 +69,11 @@ public interface EvaluationInstructions extends EObject { String getExpression(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression Expression}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression + * Expression}' attribute. + * * @param value the new value of the 'Expression' attribute. * @see #getExpression() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FeatureGrant.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FeatureGrant.java index 0a1f9342f..f997204af 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FeatureGrant.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FeatureGrant.java @@ -1,24 +1,39 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'Feature Grant'. - * + * A representation of the model object 'Feature + * Grant'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature Feature}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion Version}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid Valid}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity Capacity}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack Pack}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier + * Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature + * Feature}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion + * Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid + * Valid}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity + * Capacity}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack + * Pack}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant() @@ -27,9 +42,9 @@ */ public interface FeatureGrant extends EObject { /** - * Returns the value of the 'Identifier' attribute. - * - * + * Returns the value of the 'Identifier' attribute. + * * @return the value of the 'Identifier' attribute. * @see #setIdentifier(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Identifier() @@ -39,9 +54,11 @@ public interface FeatureGrant extends EObject { String getIdentifier(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier Identifier}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier + * Identifier}' attribute. + * * @param value the new value of the 'Identifier' attribute. * @see #getIdentifier() * @generated @@ -49,9 +66,9 @@ public interface FeatureGrant extends EObject { void setIdentifier(String value); /** - * Returns the value of the 'Feature' attribute. - * - * + * Returns the value of the 'Feature' attribute. + * * @return the value of the 'Feature' attribute. * @see #setFeature(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Feature() @@ -61,9 +78,10 @@ public interface FeatureGrant extends EObject { String getFeature(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature Feature}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature + * Feature}' attribute. + * * @param value the new value of the 'Feature' attribute. * @see #getFeature() * @generated @@ -71,9 +89,9 @@ public interface FeatureGrant extends EObject { void setFeature(String value); /** - * Returns the value of the 'Version' reference. - * - * + * Returns the value of the 'Version' reference. + * * @return the value of the 'Version' reference. * @see #setVersion(VersionMatch) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Version() @@ -83,9 +101,10 @@ public interface FeatureGrant extends EObject { VersionMatch getVersion(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion Version}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion + * Version}' reference. + * * @param value the new value of the 'Version' reference. * @see #getVersion() * @generated @@ -93,9 +112,9 @@ public interface FeatureGrant extends EObject { void setVersion(VersionMatch value); /** - * Returns the value of the 'Valid' reference. - * - * + * Returns the value of the 'Valid' reference. + * * @return the value of the 'Valid' reference. * @see #setValid(ValidityPeriod) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Valid() @@ -105,9 +124,10 @@ public interface FeatureGrant extends EObject { ValidityPeriod getValid(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid Valid}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid + * Valid}' reference. + * * @param value the new value of the 'Valid' reference. * @see #getValid() * @generated @@ -115,9 +135,9 @@ public interface FeatureGrant extends EObject { void setValid(ValidityPeriod value); /** - * Returns the value of the 'Capacity' attribute. - * - * + * Returns the value of the 'Capacity' attribute. + * * @return the value of the 'Capacity' attribute. * @see #setCapacity(int) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Capacity() @@ -127,9 +147,10 @@ public interface FeatureGrant extends EObject { int getCapacity(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity Capacity}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity + * Capacity}' attribute. + * * @param value the new value of the 'Capacity' attribute. * @see #getCapacity() * @generated @@ -137,10 +158,11 @@ public interface FeatureGrant extends EObject { void setCapacity(int value); /** - * Returns the value of the 'Pack' reference. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures Features}'. - * - * + * Returns the value of the 'Pack' reference. It is + * bidirectional and its opposite is + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures + * Features}'. + * * @return the value of the 'Pack' reference. * @see #setPack(FloatingLicensePack) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFeatureGrant_Pack() @@ -151,9 +173,10 @@ public interface FeatureGrant extends EObject { FloatingLicensePack getPack(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack Pack}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack + * Pack}' reference. + * * @param value the new value of the 'Pack' reference. * @see #getPack() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingLicensePack.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingLicensePack.java index a836c69a3..ce573f82e 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingLicensePack.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingLicensePack.java @@ -1,24 +1,36 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'License Pack'. - * + * A representation of the model object 'License + * Pack'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense License}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost Host}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getUsers Users}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures Features}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense + * License}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost + * Host}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getUsers + * Users}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures + * Features}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack() @@ -27,9 +39,9 @@ */ public interface FloatingLicensePack extends EObject { /** - * Returns the value of the 'License' reference. - * - * + * Returns the value of the 'License' reference. + * * @return the value of the 'License' reference. * @see #setLicense(LicenseRequisites) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack_License() @@ -39,9 +51,10 @@ public interface FloatingLicensePack extends EObject { LicenseRequisites getLicense(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense License}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense + * License}' reference. + * * @param value the new value of the 'License' reference. * @see #getLicense() * @generated @@ -49,9 +62,9 @@ public interface FloatingLicensePack extends EObject { void setLicense(LicenseRequisites value); /** - * Returns the value of the 'Host' reference. - * - * + * Returns the value of the 'Host' reference. + * * @return the value of the 'Host' reference. * @see #setHost(FloatingServer) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack_Host() @@ -61,9 +74,10 @@ public interface FloatingLicensePack extends EObject { FloatingServer getHost(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost Host}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost + * Host}' reference. + * * @param value the new value of the 'Host' reference. * @see #getHost() * @generated @@ -71,10 +85,11 @@ public interface FloatingLicensePack extends EObject { void setHost(FloatingServer value); /** - * Returns the value of the 'Users' reference list. - * The list contents are of type {@link org.eclipse.passage.lic.floating.model.api.UserGrant}. - * - * + * Returns the value of the 'Users' reference list. The list + * contents are of type + * {@link org.eclipse.passage.lic.floating.model.api.UserGrant}. + * * @return the value of the 'Users' reference list. * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack_Users() * @model required="true" @@ -83,11 +98,13 @@ public interface FloatingLicensePack extends EObject { EList getUsers(); /** - * Returns the value of the 'Features' reference list. - * The list contents are of type {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant}. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack Pack}'. - * - * + * Returns the value of the 'Features' reference list. The list + * contents are of type + * {@link org.eclipse.passage.lic.floating.model.api.FeatureGrant}. It is + * bidirectional and its opposite is + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack + * Pack}'. + * * @return the value of the 'Features' reference list. * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingLicensePack_Features() * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingServer.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingServer.java index 782551d86..e8f8d4930 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingServer.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/FloatingServer.java @@ -1,20 +1,31 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'Server'. - * + * A representation of the model object + * 'Server'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication Authentication}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier + * Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication + * Authentication}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingServer() @@ -23,9 +34,9 @@ */ public interface FloatingServer extends EObject { /** - * Returns the value of the 'Identifier' attribute. - * - * + * Returns the value of the 'Identifier' attribute. + * * @return the value of the 'Identifier' attribute. * @see #setIdentifier(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingServer_Identifier() @@ -35,9 +46,11 @@ public interface FloatingServer extends EObject { String getIdentifier(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier Identifier}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier + * Identifier}' attribute. + * * @param value the new value of the 'Identifier' attribute. * @see #getIdentifier() * @generated @@ -45,9 +58,9 @@ public interface FloatingServer extends EObject { void setIdentifier(String value); /** - * Returns the value of the 'Authentication' reference. - * - * + * Returns the value of the 'Authentication' reference. + * * @return the value of the 'Authentication' reference. * @see #setAuthentication(EvaluationInstructions) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getFloatingServer_Authentication() @@ -57,9 +70,11 @@ public interface FloatingServer extends EObject { EvaluationInstructions getAuthentication(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication Authentication}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication + * Authentication}' reference. + * * @param value the new value of the 'Authentication' reference. * @see #getAuthentication() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/LicenseRequisites.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/LicenseRequisites.java index 36f05074e..0e80dd472 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/LicenseRequisites.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/LicenseRequisites.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import java.util.Date; @@ -7,20 +17,25 @@ import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'License Requisites'. - * + * A representation of the model object 'License + * Requisites'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate Issue Date}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany Company}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan Plan}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct Product}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid Valid}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier + * Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate + * Issue Date}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany + * Company}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan + * Plan}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct + * Product}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid + * Valid}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites() @@ -29,9 +44,9 @@ */ public interface LicenseRequisites extends EObject { /** - * Returns the value of the 'Identifier' attribute. - * - * + * Returns the value of the 'Identifier' attribute. + * * @return the value of the 'Identifier' attribute. * @see #setIdentifier(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Identifier() @@ -41,9 +56,11 @@ public interface LicenseRequisites extends EObject { String getIdentifier(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier Identifier}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier + * Identifier}' attribute. + * * @param value the new value of the 'Identifier' attribute. * @see #getIdentifier() * @generated @@ -51,9 +68,9 @@ public interface LicenseRequisites extends EObject { void setIdentifier(String value); /** - * Returns the value of the 'Issue Date' attribute. - * - * + * Returns the value of the 'Issue Date' attribute. + * * @return the value of the 'Issue Date' attribute. * @see #setIssueDate(Date) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_IssueDate() @@ -63,9 +80,11 @@ public interface LicenseRequisites extends EObject { Date getIssueDate(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate Issue Date}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate + * Issue Date}' attribute. + * * @param value the new value of the 'Issue Date' attribute. * @see #getIssueDate() * @generated @@ -73,9 +92,9 @@ public interface LicenseRequisites extends EObject { void setIssueDate(Date value); /** - * Returns the value of the 'Company' attribute. - * - * + * Returns the value of the 'Company' attribute. + * * @return the value of the 'Company' attribute. * @see #setCompany(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Company() @@ -85,9 +104,10 @@ public interface LicenseRequisites extends EObject { String getCompany(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany Company}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany + * Company}' attribute. + * * @param value the new value of the 'Company' attribute. * @see #getCompany() * @generated @@ -95,9 +115,9 @@ public interface LicenseRequisites extends EObject { void setCompany(String value); /** - * Returns the value of the 'Plan' attribute. - * - * + * Returns the value of the 'Plan' attribute. + * * @return the value of the 'Plan' attribute. * @see #setPlan(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Plan() @@ -107,9 +127,10 @@ public interface LicenseRequisites extends EObject { String getPlan(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan Plan}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan + * Plan}' attribute. + * * @param value the new value of the 'Plan' attribute. * @see #getPlan() * @generated @@ -117,9 +138,9 @@ public interface LicenseRequisites extends EObject { void setPlan(String value); /** - * Returns the value of the 'Product' reference. - * - * + * Returns the value of the 'Product' reference. + * * @return the value of the 'Product' reference. * @see #setProduct(ProductRef) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Product() @@ -129,9 +150,10 @@ public interface LicenseRequisites extends EObject { ProductRef getProduct(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct Product}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct + * Product}' reference. + * * @param value the new value of the 'Product' reference. * @see #getProduct() * @generated @@ -139,9 +161,9 @@ public interface LicenseRequisites extends EObject { void setProduct(ProductRef value); /** - * Returns the value of the 'Valid' reference. - * - * + * Returns the value of the 'Valid' reference. + * * @return the value of the 'Valid' reference. * @see #setValid(ValidityPeriod) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getLicenseRequisites_Valid() @@ -151,9 +173,10 @@ public interface LicenseRequisites extends EObject { ValidityPeriod getValid(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid Valid}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid + * Valid}' reference. + * * @param value the new value of the 'Valid' reference. * @see #getValid() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ProductRef.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ProductRef.java index 95ccec688..67a2b72a2 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ProductRef.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ProductRef.java @@ -1,20 +1,31 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'Product Ref'. - * + * A representation of the model object 'Product + * Ref'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct Product}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct + * Product}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion + * Version}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getProductRef() @@ -23,9 +34,9 @@ */ public interface ProductRef extends EObject { /** - * Returns the value of the 'Product' attribute. - * - * + * Returns the value of the 'Product' attribute. + * * @return the value of the 'Product' attribute. * @see #setProduct(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getProductRef_Product() @@ -35,9 +46,10 @@ public interface ProductRef extends EObject { String getProduct(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct Product}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct + * Product}' attribute. + * * @param value the new value of the 'Product' attribute. * @see #getProduct() * @generated @@ -45,9 +57,9 @@ public interface ProductRef extends EObject { void setProduct(String value); /** - * Returns the value of the 'Version' attribute. - * - * + * Returns the value of the 'Version' attribute. + * * @return the value of the 'Version' attribute. * @see #setVersion(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getProductRef_Version() @@ -57,9 +69,10 @@ public interface ProductRef extends EObject { String getVersion(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion Version}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion + * Version}' attribute. + * * @param value the new value of the 'Version' attribute. * @see #getVersion() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/UserGrant.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/UserGrant.java index 245851224..7a8e98424 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/UserGrant.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/UserGrant.java @@ -1,20 +1,31 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'User Grant'. - * + * A representation of the model object 'User + * Grant'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser User}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication Authentication}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser + * User}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication + * Authentication}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getUserGrant() @@ -23,9 +34,9 @@ */ public interface UserGrant extends EObject { /** - * Returns the value of the 'User' attribute. - * - * + * Returns the value of the 'User' attribute. + * * @return the value of the 'User' attribute. * @see #setUser(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getUserGrant_User() @@ -35,9 +46,10 @@ public interface UserGrant extends EObject { String getUser(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser User}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser + * User}' attribute. + * * @param value the new value of the 'User' attribute. * @see #getUser() * @generated @@ -45,9 +57,9 @@ public interface UserGrant extends EObject { void setUser(String value); /** - * Returns the value of the 'Authentication' reference. - * - * + * Returns the value of the 'Authentication' reference. + * * @return the value of the 'Authentication' reference. * @see #setAuthentication(EvaluationInstructions) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getUserGrant_Authentication() @@ -57,9 +69,11 @@ public interface UserGrant extends EObject { EvaluationInstructions getAuthentication(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication Authentication}' reference. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication + * Authentication}' reference. + * * @param value the new value of the 'Authentication' reference. * @see #getAuthentication() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriod.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriod.java index 84f63da4c..22ff65eb6 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriod.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriod.java @@ -1,13 +1,22 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'Validity Period'. - * + * A representation of the model object 'Validity + * Period'. * * * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getValidityPeriod() diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriodClosed.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriodClosed.java index 0a5fcfdac..e865b2b3c 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriodClosed.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/ValidityPeriodClosed.java @@ -1,20 +1,31 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import java.util.Date; /** - * - * A representation of the model object 'Validity Period Closed'. - * + * A representation of the model object 'Validity + * Period Closed'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom From}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil Until}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom + * From}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil + * Until}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getValidityPeriodClosed() @@ -23,9 +34,9 @@ */ public interface ValidityPeriodClosed extends ValidityPeriod { /** - * Returns the value of the 'From' attribute. - * - * + * Returns the value of the 'From' attribute. + * * @return the value of the 'From' attribute. * @see #setFrom(Date) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getValidityPeriodClosed_From() @@ -35,9 +46,10 @@ public interface ValidityPeriodClosed extends ValidityPeriod { Date getFrom(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom From}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom + * From}' attribute. + * * @param value the new value of the 'From' attribute. * @see #getFrom() * @generated @@ -45,9 +57,9 @@ public interface ValidityPeriodClosed extends ValidityPeriod { void setFrom(Date value); /** - * Returns the value of the 'Until' attribute. - * - * + * Returns the value of the 'Until' attribute. + * * @return the value of the 'Until' attribute. * @see #setUntil(Date) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getValidityPeriodClosed_Until() @@ -57,9 +69,10 @@ public interface ValidityPeriodClosed extends ValidityPeriod { Date getUntil(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil Until}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil + * Until}' attribute. + * * @param value the new value of the 'Until' attribute. * @see #getUntil() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/VersionMatch.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/VersionMatch.java index 81a53b7ca..d53abe6a7 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/VersionMatch.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/VersionMatch.java @@ -1,20 +1,31 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'Version Match'. - * + * A representation of the model object 'Version + * Match'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion Version}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule Rule}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion + * Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule + * Rule}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getVersionMatch() @@ -23,9 +34,9 @@ */ public interface VersionMatch extends EObject { /** - * Returns the value of the 'Version' attribute. - * - * + * Returns the value of the 'Version' attribute. + * * @return the value of the 'Version' attribute. * @see #setVersion(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getVersionMatch_Version() @@ -35,9 +46,10 @@ public interface VersionMatch extends EObject { String getVersion(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion Version}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion + * Version}' attribute. + * * @param value the new value of the 'Version' attribute. * @see #getVersion() * @generated @@ -45,9 +57,9 @@ public interface VersionMatch extends EObject { void setVersion(String value); /** - * Returns the value of the 'Rule' attribute. - * - * + * Returns the value of the 'Rule' attribute. + * * @return the value of the 'Rule' attribute. * @see #setRule(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getVersionMatch_Rule() @@ -57,9 +69,10 @@ public interface VersionMatch extends EObject { String getRule(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule Rule}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule + * Rule}' attribute. + * * @param value the new value of the 'Rule' attribute. * @see #getRule() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/EvaluationInstructionsImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/EvaluationInstructionsImpl.java index ab246d06e..61065002f 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/EvaluationInstructionsImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/EvaluationInstructionsImpl.java @@ -1,39 +1,46 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'Evaluation Instructions'. - * + * An implementation of the model object + * 'Evaluation Instructions'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl#getType Type}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl#getExpression Expression}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl#getType + * Type}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl#getExpression + * Expression}
  • *
* * @generated */ public class EvaluationInstructionsImpl extends MinimalEObjectImpl.Container implements EvaluationInstructions { /** - * The default value of the '{@link #getType() Type}' attribute. - * - * + * The default value of the '{@link #getType() Type}' attribute. + * * @see #getType() * @generated * @ordered @@ -41,9 +48,9 @@ public class EvaluationInstructionsImpl extends MinimalEObjectImpl.Container imp protected static final String TYPE_EDEFAULT = null; /** - * The cached value of the '{@link #getType() Type}' attribute. - * - * + * The cached value of the '{@link #getType() Type}' attribute. + * * @see #getType() * @generated * @ordered @@ -51,9 +58,9 @@ public class EvaluationInstructionsImpl extends MinimalEObjectImpl.Container imp private String type = TYPE_EDEFAULT; /** - * The default value of the '{@link #getExpression() Expression}' attribute. - * - * + * The default value of the '{@link #getExpression() Expression}' + * attribute. + * * @see #getExpression() * @generated * @ordered @@ -61,9 +68,9 @@ public class EvaluationInstructionsImpl extends MinimalEObjectImpl.Container imp protected static final String EXPRESSION_EDEFAULT = null; /** - * The cached value of the '{@link #getExpression() Expression}' attribute. - * - * + * The cached value of the '{@link #getExpression() Expression}' + * attribute. + * * @see #getExpression() * @generated * @ordered @@ -71,8 +78,8 @@ public class EvaluationInstructionsImpl extends MinimalEObjectImpl.Container imp private String expression = EXPRESSION_EDEFAULT; /** - * - * + * + * * @generated */ protected EvaluationInstructionsImpl() { @@ -80,8 +87,8 @@ protected EvaluationInstructionsImpl() { } /** - * - * + * + * * @generated */ @Override @@ -90,8 +97,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -100,8 +107,8 @@ public String getType() { } /** - * - * + * + * * @generated */ @Override @@ -115,8 +122,8 @@ public void setType(String newType) { } /** - * - * + * + * * @generated */ @Override @@ -125,8 +132,8 @@ public String getExpression() { } /** - * - * + * + * * @generated */ @Override @@ -140,8 +147,8 @@ public void setExpression(String newExpression) { } /** - * - * + * + * * @generated */ @Override @@ -157,8 +164,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -177,8 +184,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -197,8 +204,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -214,8 +221,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -232,4 +239,4 @@ public String toString() { return result.toString(); } -} //EvaluationInstructionsImpl +} // EvaluationInstructionsImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FeatureGrantImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FeatureGrantImpl.java index 383b47707..9eecfd1a7 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FeatureGrantImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FeatureGrantImpl.java @@ -1,48 +1,59 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.FeatureGrant; import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; import org.eclipse.passage.lic.floating.model.api.ValidityPeriod; import org.eclipse.passage.lic.floating.model.api.VersionMatch; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'Feature Grant'. - * + * An implementation of the model object 'Feature + * Grant'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getFeature Feature}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getVersion Version}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getValid Valid}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getCapacity Capacity}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getPack Pack}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getIdentifier + * Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getFeature + * Feature}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getVersion + * Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getValid + * Valid}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getCapacity + * Capacity}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl#getPack + * Pack}
  • *
* * @generated */ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements FeatureGrant { /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * + * The default value of the '{@link #getIdentifier() Identifier}' + * attribute. + * * @see #getIdentifier() * @generated * @ordered @@ -50,9 +61,9 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe protected static final String IDENTIFIER_EDEFAULT = null; /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * + * The cached value of the '{@link #getIdentifier() Identifier}' + * attribute. + * * @see #getIdentifier() * @generated * @ordered @@ -61,8 +72,8 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe /** * The default value of the '{@link #getFeature() Feature}' attribute. - * - * + * + * * @see #getFeature() * @generated * @ordered @@ -71,8 +82,8 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe /** * The cached value of the '{@link #getFeature() Feature}' attribute. - * - * + * + * * @see #getFeature() * @generated * @ordered @@ -81,8 +92,8 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe /** * The cached value of the '{@link #getVersion() Version}' reference. - * - * + * + * * @see #getVersion() * @generated * @ordered @@ -90,9 +101,9 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe protected VersionMatch version; /** - * The cached value of the '{@link #getValid() Valid}' reference. - * - * + * The cached value of the '{@link #getValid() Valid}' reference. + * * @see #getValid() * @generated * @ordered @@ -100,9 +111,9 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe protected ValidityPeriod valid; /** - * The default value of the '{@link #getCapacity() Capacity}' attribute. - * - * + * The default value of the '{@link #getCapacity() Capacity}' + * attribute. + * * @see #getCapacity() * @generated * @ordered @@ -111,8 +122,8 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe /** * The cached value of the '{@link #getCapacity() Capacity}' attribute. - * - * + * + * * @see #getCapacity() * @generated * @ordered @@ -120,9 +131,9 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe private int capacity = CAPACITY_EDEFAULT; /** - * The cached value of the '{@link #getPack() Pack}' reference. - * - * + * The cached value of the '{@link #getPack() Pack}' reference. + * * @see #getPack() * @generated * @ordered @@ -130,8 +141,8 @@ public class FeatureGrantImpl extends MinimalEObjectImpl.Container implements Fe protected FloatingLicensePack pack; /** - * - * + * + * * @generated */ protected FeatureGrantImpl() { @@ -139,8 +150,8 @@ protected FeatureGrantImpl() { } /** - * - * + * + * * @generated */ @Override @@ -149,8 +160,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -159,8 +170,8 @@ public String getIdentifier() { } /** - * - * + * + * * @generated */ @Override @@ -174,8 +185,8 @@ public void setIdentifier(String newIdentifier) { } /** - * - * + * + * * @generated */ @Override @@ -184,8 +195,8 @@ public String getFeature() { } /** - * - * + * + * * @generated */ @Override @@ -199,8 +210,8 @@ public void setFeature(String newFeature) { } /** - * - * + * + * * @generated */ @Override @@ -219,8 +230,8 @@ public VersionMatch getVersion() { } /** - * - * + * + * * @generated */ public VersionMatch basicGetVersion() { @@ -228,8 +239,8 @@ public VersionMatch basicGetVersion() { } /** - * - * + * + * * @generated */ @Override @@ -243,8 +254,8 @@ public void setVersion(VersionMatch newVersion) { } /** - * - * + * + * * @generated */ @Override @@ -263,8 +274,8 @@ public ValidityPeriod getValid() { } /** - * - * + * + * * @generated */ public ValidityPeriod basicGetValid() { @@ -272,8 +283,8 @@ public ValidityPeriod basicGetValid() { } /** - * - * + * + * * @generated */ @Override @@ -287,8 +298,8 @@ public void setValid(ValidityPeriod newValid) { } /** - * - * + * + * * @generated */ @Override @@ -297,8 +308,8 @@ public int getCapacity() { } /** - * - * + * + * * @generated */ @Override @@ -312,8 +323,8 @@ public void setCapacity(int newCapacity) { } /** - * - * + * + * * @generated */ @Override @@ -332,8 +343,8 @@ public FloatingLicensePack getPack() { } /** - * - * + * + * * @generated */ public FloatingLicensePack basicGetPack() { @@ -341,8 +352,8 @@ public FloatingLicensePack basicGetPack() { } /** - * - * + * + * * @generated */ public NotificationChain basicSetPack(FloatingLicensePack newPack, NotificationChain msgs) { @@ -360,8 +371,8 @@ public NotificationChain basicSetPack(FloatingLicensePack newPack, NotificationC } /** - * - * + * + * * @generated */ @Override @@ -384,8 +395,8 @@ public void setPack(FloatingLicensePack newPack) { } /** - * - * + * + * * @generated */ @Override @@ -402,8 +413,8 @@ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, No } /** - * - * + * + * * @generated */ @Override @@ -417,8 +428,8 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, } /** - * - * + * + * * @generated */ @Override @@ -448,8 +459,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -480,8 +491,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -512,8 +523,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -537,8 +548,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -557,4 +568,4 @@ public String toString() { return result.toString(); } -} //FeatureGrantImpl +} // FeatureGrantImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java index e7c7e684a..63a7eb624 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java @@ -1,31 +1,45 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; - import org.eclipse.emf.ecore.impl.EFactoryImpl; - import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import org.eclipse.passage.lic.floating.model.api.*; - +import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; +import org.eclipse.passage.lic.floating.model.api.FeatureGrant; +import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; +import org.eclipse.passage.lic.floating.model.api.FloatingServer; +import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; +import org.eclipse.passage.lic.floating.model.api.ProductRef; +import org.eclipse.passage.lic.floating.model.api.UserGrant; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed; +import org.eclipse.passage.lic.floating.model.api.VersionMatch; import org.eclipse.passage.lic.floating.model.meta.FloatingFactory; import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model Factory. - * + * An implementation of the model Factory. + * * @generated */ public class FloatingFactoryImpl extends EFactoryImpl implements FloatingFactory { /** - * Creates the default factory implementation. - * - * + * Creates the default factory implementation. + * * @generated */ public static FloatingFactory init() { @@ -42,9 +56,9 @@ public static FloatingFactory init() { } /** - * Creates an instance of the factory. - * - * + * Creates an instance of the factory. + * * @generated */ public FloatingFactoryImpl() { @@ -52,8 +66,8 @@ public FloatingFactoryImpl() { } /** - * - * + * + * * @generated */ @Override @@ -83,8 +97,8 @@ public EObject create(EClass eClass) { } /** - * - * + * + * * @generated */ @Override @@ -94,8 +108,8 @@ public FloatingLicensePack createFloatingLicensePack() { } /** - * - * + * + * * @generated */ @Override @@ -105,8 +119,8 @@ public LicenseRequisites createLicenseRequisites() { } /** - * - * + * + * * @generated */ @Override @@ -116,8 +130,8 @@ public ProductRef createProductRef() { } /** - * - * + * + * * @generated */ @Override @@ -127,8 +141,8 @@ public FloatingServer createFloatingServer() { } /** - * - * + * + * * @generated */ @Override @@ -138,8 +152,8 @@ public UserGrant createUserGrant() { } /** - * - * + * + * * @generated */ @Override @@ -149,8 +163,8 @@ public FeatureGrant createFeatureGrant() { } /** - * - * + * + * * @generated */ @Override @@ -160,8 +174,8 @@ public ValidityPeriodClosed createValidityPeriodClosed() { } /** - * - * + * + * * @generated */ @Override @@ -171,8 +185,8 @@ public EvaluationInstructions createEvaluationInstructions() { } /** - * - * + * + * * @generated */ @Override @@ -182,8 +196,8 @@ public VersionMatch createVersionMatch() { } /** - * - * + * + * * @generated */ @Override @@ -192,8 +206,8 @@ public FloatingPackage getFloatingPackage() { } /** - * - * + * + * * @deprecated * @generated */ @@ -202,4 +216,4 @@ public static FloatingPackage getPackage() { return FloatingPackage.eINSTANCE; } -} //FloatingFactoryImpl +} // FloatingFactoryImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingLicensePackImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingLicensePackImpl.java index 6d1355e47..00805d808 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingLicensePackImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingLicensePackImpl.java @@ -1,44 +1,51 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Collection; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; - import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.emf.ecore.util.EObjectResolvingEList; import org.eclipse.emf.ecore.util.EObjectWithInverseResolvingEList; import org.eclipse.emf.ecore.util.InternalEList; - import org.eclipse.passage.lic.floating.model.api.FeatureGrant; import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; import org.eclipse.passage.lic.floating.model.api.FloatingServer; import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; import org.eclipse.passage.lic.floating.model.api.UserGrant; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'License Pack'. - * + * An implementation of the model object 'License + * Pack'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getLicense License}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getHost Host}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getUsers Users}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getFeatures Features}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getLicense + * License}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getHost + * Host}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getUsers + * Users}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl#getFeatures + * Features}
  • *
* * @generated @@ -46,8 +53,8 @@ public class FloatingLicensePackImpl extends MinimalEObjectImpl.Container implements FloatingLicensePack { /** * The cached value of the '{@link #getLicense() License}' reference. - * - * + * + * * @see #getLicense() * @generated * @ordered @@ -55,9 +62,9 @@ public class FloatingLicensePackImpl extends MinimalEObjectImpl.Container implem protected LicenseRequisites license; /** - * The cached value of the '{@link #getHost() Host}' reference. - * - * + * The cached value of the '{@link #getHost() Host}' reference. + * * @see #getHost() * @generated * @ordered @@ -66,8 +73,8 @@ public class FloatingLicensePackImpl extends MinimalEObjectImpl.Container implem /** * The cached value of the '{@link #getUsers() Users}' reference list. - * - * + * + * * @see #getUsers() * @generated * @ordered @@ -75,9 +82,9 @@ public class FloatingLicensePackImpl extends MinimalEObjectImpl.Container implem protected EList users; /** - * The cached value of the '{@link #getFeatures() Features}' reference list. - * - * + * The cached value of the '{@link #getFeatures() Features}' reference + * list. + * * @see #getFeatures() * @generated * @ordered @@ -85,8 +92,8 @@ public class FloatingLicensePackImpl extends MinimalEObjectImpl.Container implem protected EList features; /** - * - * + * + * * @generated */ protected FloatingLicensePackImpl() { @@ -94,8 +101,8 @@ protected FloatingLicensePackImpl() { } /** - * - * + * + * * @generated */ @Override @@ -104,8 +111,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -124,8 +131,8 @@ public LicenseRequisites getLicense() { } /** - * - * + * + * * @generated */ public LicenseRequisites basicGetLicense() { @@ -133,8 +140,8 @@ public LicenseRequisites basicGetLicense() { } /** - * - * + * + * * @generated */ @Override @@ -148,8 +155,8 @@ public void setLicense(LicenseRequisites newLicense) { } /** - * - * + * + * * @generated */ @Override @@ -168,8 +175,8 @@ public FloatingServer getHost() { } /** - * - * + * + * * @generated */ public FloatingServer basicGetHost() { @@ -177,8 +184,8 @@ public FloatingServer basicGetHost() { } /** - * - * + * + * * @generated */ @Override @@ -192,8 +199,8 @@ public void setHost(FloatingServer newHost) { } /** - * - * + * + * * @generated */ @Override @@ -206,8 +213,8 @@ public EList getUsers() { } /** - * - * + * + * * @generated */ @Override @@ -220,8 +227,8 @@ public EList getFeatures() { } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -236,8 +243,8 @@ public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, No } /** - * - * + * + * * @generated */ @Override @@ -251,8 +258,8 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, } /** - * - * + * + * * @generated */ @Override @@ -276,8 +283,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @SuppressWarnings("unchecked") @@ -305,8 +312,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -331,8 +338,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -351,4 +358,4 @@ public boolean eIsSet(int featureID) { } } -} //FloatingLicensePackImpl +} // FloatingLicensePackImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java index e3a67db08..d0b40d17b 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java @@ -1,14 +1,22 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; - import org.eclipse.emf.ecore.impl.EPackageImpl; - import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; import org.eclipse.passage.lic.floating.model.api.FeatureGrant; import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; @@ -19,97 +27,96 @@ import org.eclipse.passage.lic.floating.model.api.ValidityPeriod; import org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed; import org.eclipse.passage.lic.floating.model.api.VersionMatch; - import org.eclipse.passage.lic.floating.model.meta.FloatingFactory; import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model Package. - * + * An implementation of the model Package. + * * @generated */ public class FloatingPackageImpl extends EPackageImpl implements FloatingPackage { /** - * - * + * + * * @generated */ private EClass floatingLicensePackEClass = null; /** - * - * + * + * * @generated */ private EClass licenseRequisitesEClass = null; /** - * - * + * + * * @generated */ private EClass productRefEClass = null; /** - * - * + * + * * @generated */ private EClass floatingServerEClass = null; /** - * - * + * + * * @generated */ private EClass userGrantEClass = null; /** - * - * + * + * * @generated */ private EClass featureGrantEClass = null; /** - * - * + * + * * @generated */ private EClass validityPeriodEClass = null; /** - * - * + * + * * @generated */ private EClass validityPeriodClosedEClass = null; /** - * - * + * + * * @generated */ private EClass evaluationInstructionsEClass = null; /** - * - * + * + * * @generated */ private EClass versionMatchEClass = null; /** * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the + * package package URI value. + *

+ * Note: the correct way to create the package is via the static factory method + * {@link #init init()}, which also performs initialization of the package, or + * returns the registered package, if one already exists. + * * @see org.eclipse.emf.ecore.EPackage.Registry * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#eNS_URI * @see #init() @@ -120,19 +127,22 @@ private FloatingPackageImpl() { } /** - * - * + * + * * @generated */ private static boolean isInited = false; /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * Creates, registers, and initializes the Package for this model, and + * for any others upon which it depends. * - *

This method is used to initialize {@link FloatingPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * + *

+ * This method is used to initialize {@link FloatingPackage#eINSTANCE} when that + * field is accessed. Clients should not invoke it directly. Instead, they + * should simply access that field to obtain the package. + * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() @@ -165,8 +175,8 @@ public static FloatingPackage init() { } /** - * - * + * + * * @generated */ @Override @@ -175,8 +185,8 @@ public EClass getFloatingLicensePack() { } /** - * - * + * + * * @generated */ @Override @@ -185,8 +195,8 @@ public EReference getFloatingLicensePack_License() { } /** - * - * + * + * * @generated */ @Override @@ -195,8 +205,8 @@ public EReference getFloatingLicensePack_Host() { } /** - * - * + * + * * @generated */ @Override @@ -205,8 +215,8 @@ public EReference getFloatingLicensePack_Users() { } /** - * - * + * + * * @generated */ @Override @@ -215,8 +225,8 @@ public EReference getFloatingLicensePack_Features() { } /** - * - * + * + * * @generated */ @Override @@ -225,8 +235,8 @@ public EClass getLicenseRequisites() { } /** - * - * + * + * * @generated */ @Override @@ -235,8 +245,8 @@ public EAttribute getLicenseRequisites_Identifier() { } /** - * - * + * + * * @generated */ @Override @@ -245,8 +255,8 @@ public EAttribute getLicenseRequisites_IssueDate() { } /** - * - * + * + * * @generated */ @Override @@ -255,8 +265,8 @@ public EAttribute getLicenseRequisites_Company() { } /** - * - * + * + * * @generated */ @Override @@ -265,8 +275,8 @@ public EAttribute getLicenseRequisites_Plan() { } /** - * - * + * + * * @generated */ @Override @@ -275,8 +285,8 @@ public EReference getLicenseRequisites_Product() { } /** - * - * + * + * * @generated */ @Override @@ -285,8 +295,8 @@ public EReference getLicenseRequisites_Valid() { } /** - * - * + * + * * @generated */ @Override @@ -295,8 +305,8 @@ public EClass getProductRef() { } /** - * - * + * + * * @generated */ @Override @@ -305,8 +315,8 @@ public EAttribute getProductRef_Product() { } /** - * - * + * + * * @generated */ @Override @@ -315,8 +325,8 @@ public EAttribute getProductRef_Version() { } /** - * - * + * + * * @generated */ @Override @@ -325,8 +335,8 @@ public EClass getFloatingServer() { } /** - * - * + * + * * @generated */ @Override @@ -335,8 +345,8 @@ public EAttribute getFloatingServer_Identifier() { } /** - * - * + * + * * @generated */ @Override @@ -345,8 +355,8 @@ public EReference getFloatingServer_Authentication() { } /** - * - * + * + * * @generated */ @Override @@ -355,8 +365,8 @@ public EClass getUserGrant() { } /** - * - * + * + * * @generated */ @Override @@ -365,8 +375,8 @@ public EAttribute getUserGrant_User() { } /** - * - * + * + * * @generated */ @Override @@ -375,8 +385,8 @@ public EReference getUserGrant_Authentication() { } /** - * - * + * + * * @generated */ @Override @@ -385,8 +395,8 @@ public EClass getFeatureGrant() { } /** - * - * + * + * * @generated */ @Override @@ -395,8 +405,8 @@ public EAttribute getFeatureGrant_Identifier() { } /** - * - * + * + * * @generated */ @Override @@ -405,8 +415,8 @@ public EAttribute getFeatureGrant_Feature() { } /** - * - * + * + * * @generated */ @Override @@ -415,8 +425,8 @@ public EReference getFeatureGrant_Version() { } /** - * - * + * + * * @generated */ @Override @@ -425,8 +435,8 @@ public EReference getFeatureGrant_Valid() { } /** - * - * + * + * * @generated */ @Override @@ -435,8 +445,8 @@ public EAttribute getFeatureGrant_Capacity() { } /** - * - * + * + * * @generated */ @Override @@ -445,8 +455,8 @@ public EReference getFeatureGrant_Pack() { } /** - * - * + * + * * @generated */ @Override @@ -455,8 +465,8 @@ public EClass getValidityPeriod() { } /** - * - * + * + * * @generated */ @Override @@ -465,8 +475,8 @@ public EClass getValidityPeriodClosed() { } /** - * - * + * + * * @generated */ @Override @@ -475,8 +485,8 @@ public EAttribute getValidityPeriodClosed_From() { } /** - * - * + * + * * @generated */ @Override @@ -485,8 +495,8 @@ public EAttribute getValidityPeriodClosed_Until() { } /** - * - * + * + * * @generated */ @Override @@ -495,8 +505,8 @@ public EClass getEvaluationInstructions() { } /** - * - * + * + * * @generated */ @Override @@ -505,8 +515,8 @@ public EAttribute getEvaluationInstructions_Type() { } /** - * - * + * + * * @generated */ @Override @@ -515,8 +525,8 @@ public EAttribute getEvaluationInstructions_Expression() { } /** - * - * + * + * * @generated */ @Override @@ -525,8 +535,8 @@ public EClass getVersionMatch() { } /** - * - * + * + * * @generated */ @Override @@ -535,8 +545,8 @@ public EAttribute getVersionMatch_Version() { } /** - * - * + * + * * @generated */ @Override @@ -545,8 +555,8 @@ public EAttribute getVersionMatch_Rule() { } /** - * - * + * + * * @generated */ @Override @@ -555,17 +565,17 @@ public FloatingFactory getFloatingFactory() { } /** - * - * + * + * * @generated */ private boolean isCreated = false; /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * + * Creates the meta-model objects for the package. This method is guarded to + * have no affect on any invocation but its first. + * * @generated */ public void createPackageContents() { @@ -624,17 +634,17 @@ public void createPackageContents() { } /** - * - * + * + * * @generated */ private boolean isInitialized = false; /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * + * Complete the initialization of the package and its meta-model. This method is + * guarded to have no affect on any invocation but its first. + * * @generated */ public void initializePackageContents() { @@ -766,4 +776,4 @@ public void initializePackageContents() { createResource(eNS_URI); } -} //FloatingPackageImpl +} // FloatingPackageImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingServerImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingServerImpl.java index 7b227cdb8..53d5d67a5 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingServerImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingServerImpl.java @@ -1,41 +1,48 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; import org.eclipse.passage.lic.floating.model.api.FloatingServer; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'Server'. - * + * An implementation of the model object + * 'Server'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl#getAuthentication Authentication}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl#getIdentifier + * Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl#getAuthentication + * Authentication}
  • *
* * @generated */ public class FloatingServerImpl extends MinimalEObjectImpl.Container implements FloatingServer { /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * + * The default value of the '{@link #getIdentifier() Identifier}' + * attribute. + * * @see #getIdentifier() * @generated * @ordered @@ -43,9 +50,9 @@ public class FloatingServerImpl extends MinimalEObjectImpl.Container implements protected static final String IDENTIFIER_EDEFAULT = null; /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * + * The cached value of the '{@link #getIdentifier() Identifier}' + * attribute. + * * @see #getIdentifier() * @generated * @ordered @@ -53,9 +60,10 @@ public class FloatingServerImpl extends MinimalEObjectImpl.Container implements private String identifier = IDENTIFIER_EDEFAULT; /** - * The cached value of the '{@link #getAuthentication() Authentication}' reference. - * - * + * The cached value of the '{@link #getAuthentication() + * Authentication}' reference. + * * @see #getAuthentication() * @generated * @ordered @@ -63,8 +71,8 @@ public class FloatingServerImpl extends MinimalEObjectImpl.Container implements protected EvaluationInstructions authentication; /** - * - * + * + * * @generated */ protected FloatingServerImpl() { @@ -72,8 +80,8 @@ protected FloatingServerImpl() { } /** - * - * + * + * * @generated */ @Override @@ -82,8 +90,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -92,8 +100,8 @@ public String getIdentifier() { } /** - * - * + * + * * @generated */ @Override @@ -107,8 +115,8 @@ public void setIdentifier(String newIdentifier) { } /** - * - * + * + * * @generated */ @Override @@ -127,8 +135,8 @@ public EvaluationInstructions getAuthentication() { } /** - * - * + * + * * @generated */ public EvaluationInstructions basicGetAuthentication() { @@ -136,8 +144,8 @@ public EvaluationInstructions basicGetAuthentication() { } /** - * - * + * + * * @generated */ @Override @@ -151,8 +159,8 @@ public void setAuthentication(EvaluationInstructions newAuthentication) { } /** - * - * + * + * * @generated */ @Override @@ -170,8 +178,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -190,8 +198,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -210,8 +218,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -227,8 +235,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -243,4 +251,4 @@ public String toString() { return result.toString(); } -} //FloatingServerImpl +} // FloatingServerImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/LicenseRequisitesImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/LicenseRequisitesImpl.java index c5192ec9d..f9d6db214 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/LicenseRequisitesImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/LicenseRequisitesImpl.java @@ -1,47 +1,58 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Date; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; import org.eclipse.passage.lic.floating.model.api.ProductRef; import org.eclipse.passage.lic.floating.model.api.ValidityPeriod; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'License Requisites'. - * + * An implementation of the model object 'License + * Requisites'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getIssueDate Issue Date}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getCompany Company}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getPlan Plan}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getProduct Product}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getValid Valid}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getIdentifier + * Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getIssueDate + * Issue Date}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getCompany + * Company}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getPlan + * Plan}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getProduct + * Product}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl#getValid + * Valid}
  • *
* * @generated */ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implements LicenseRequisites { /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * + * The default value of the '{@link #getIdentifier() Identifier}' + * attribute. + * * @see #getIdentifier() * @generated * @ordered @@ -49,9 +60,9 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen protected static final String IDENTIFIER_EDEFAULT = null; /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * + * The cached value of the '{@link #getIdentifier() Identifier}' + * attribute. + * * @see #getIdentifier() * @generated * @ordered @@ -59,9 +70,9 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen private String identifier = IDENTIFIER_EDEFAULT; /** - * The default value of the '{@link #getIssueDate() Issue Date}' attribute. - * - * + * The default value of the '{@link #getIssueDate() Issue Date}' + * attribute. + * * @see #getIssueDate() * @generated * @ordered @@ -69,9 +80,9 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen protected static final Date ISSUE_DATE_EDEFAULT = null; /** - * The cached value of the '{@link #getIssueDate() Issue Date}' attribute. - * - * + * The cached value of the '{@link #getIssueDate() Issue Date}' + * attribute. + * * @see #getIssueDate() * @generated * @ordered @@ -80,8 +91,8 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen /** * The default value of the '{@link #getCompany() Company}' attribute. - * - * + * + * * @see #getCompany() * @generated * @ordered @@ -90,8 +101,8 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen /** * The cached value of the '{@link #getCompany() Company}' attribute. - * - * + * + * * @see #getCompany() * @generated * @ordered @@ -99,9 +110,9 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen private String company = COMPANY_EDEFAULT; /** - * The default value of the '{@link #getPlan() Plan}' attribute. - * - * + * The default value of the '{@link #getPlan() Plan}' attribute. + * * @see #getPlan() * @generated * @ordered @@ -109,9 +120,9 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen protected static final String PLAN_EDEFAULT = null; /** - * The cached value of the '{@link #getPlan() Plan}' attribute. - * - * + * The cached value of the '{@link #getPlan() Plan}' attribute. + * * @see #getPlan() * @generated * @ordered @@ -120,8 +131,8 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen /** * The cached value of the '{@link #getProduct() Product}' reference. - * - * + * + * * @see #getProduct() * @generated * @ordered @@ -129,9 +140,9 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen protected ProductRef product; /** - * The cached value of the '{@link #getValid() Valid}' reference. - * - * + * The cached value of the '{@link #getValid() Valid}' reference. + * * @see #getValid() * @generated * @ordered @@ -139,8 +150,8 @@ public class LicenseRequisitesImpl extends MinimalEObjectImpl.Container implemen protected ValidityPeriod valid; /** - * - * + * + * * @generated */ protected LicenseRequisitesImpl() { @@ -148,8 +159,8 @@ protected LicenseRequisitesImpl() { } /** - * - * + * + * * @generated */ @Override @@ -158,8 +169,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -168,8 +179,8 @@ public String getIdentifier() { } /** - * - * + * + * * @generated */ @Override @@ -183,8 +194,8 @@ public void setIdentifier(String newIdentifier) { } /** - * - * + * + * * @generated */ @Override @@ -193,8 +204,8 @@ public Date getIssueDate() { } /** - * - * + * + * * @generated */ @Override @@ -208,8 +219,8 @@ public void setIssueDate(Date newIssueDate) { } /** - * - * + * + * * @generated */ @Override @@ -218,8 +229,8 @@ public String getCompany() { } /** - * - * + * + * * @generated */ @Override @@ -233,8 +244,8 @@ public void setCompany(String newCompany) { } /** - * - * + * + * * @generated */ @Override @@ -243,8 +254,8 @@ public String getPlan() { } /** - * - * + * + * * @generated */ @Override @@ -258,8 +269,8 @@ public void setPlan(String newPlan) { } /** - * - * + * + * * @generated */ @Override @@ -278,8 +289,8 @@ public ProductRef getProduct() { } /** - * - * + * + * * @generated */ public ProductRef basicGetProduct() { @@ -287,8 +298,8 @@ public ProductRef basicGetProduct() { } /** - * - * + * + * * @generated */ @Override @@ -302,8 +313,8 @@ public void setProduct(ProductRef newProduct) { } /** - * - * + * + * * @generated */ @Override @@ -322,8 +333,8 @@ public ValidityPeriod getValid() { } /** - * - * + * + * * @generated */ public ValidityPeriod basicGetValid() { @@ -331,8 +342,8 @@ public ValidityPeriod basicGetValid() { } /** - * - * + * + * * @generated */ @Override @@ -346,8 +357,8 @@ public void setValid(ValidityPeriod newValid) { } /** - * - * + * + * * @generated */ @Override @@ -375,8 +386,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -407,8 +418,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -439,8 +450,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -464,8 +475,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -486,4 +497,4 @@ public String toString() { return result.toString(); } -} //LicenseRequisitesImpl +} // LicenseRequisitesImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ProductRefImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ProductRefImpl.java index a658b8056..bca0f3ca4 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ProductRefImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ProductRefImpl.java @@ -1,30 +1,37 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.ProductRef; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'Product Ref'. - * + * An implementation of the model object 'Product + * Ref'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl#getProduct Product}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl#getVersion Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl#getProduct + * Product}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl#getVersion + * Version}
  • *
* * @generated @@ -32,8 +39,8 @@ public class ProductRefImpl extends MinimalEObjectImpl.Container implements ProductRef { /** * The default value of the '{@link #getProduct() Product}' attribute. - * - * + * + * * @see #getProduct() * @generated * @ordered @@ -42,8 +49,8 @@ public class ProductRefImpl extends MinimalEObjectImpl.Container implements Prod /** * The cached value of the '{@link #getProduct() Product}' attribute. - * - * + * + * * @see #getProduct() * @generated * @ordered @@ -52,8 +59,8 @@ public class ProductRefImpl extends MinimalEObjectImpl.Container implements Prod /** * The default value of the '{@link #getVersion() Version}' attribute. - * - * + * + * * @see #getVersion() * @generated * @ordered @@ -62,8 +69,8 @@ public class ProductRefImpl extends MinimalEObjectImpl.Container implements Prod /** * The cached value of the '{@link #getVersion() Version}' attribute. - * - * + * + * * @see #getVersion() * @generated * @ordered @@ -71,8 +78,8 @@ public class ProductRefImpl extends MinimalEObjectImpl.Container implements Prod private String version = VERSION_EDEFAULT; /** - * - * + * + * * @generated */ protected ProductRefImpl() { @@ -80,8 +87,8 @@ protected ProductRefImpl() { } /** - * - * + * + * * @generated */ @Override @@ -90,8 +97,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -100,8 +107,8 @@ public String getProduct() { } /** - * - * + * + * * @generated */ @Override @@ -115,8 +122,8 @@ public void setProduct(String newProduct) { } /** - * - * + * + * * @generated */ @Override @@ -125,8 +132,8 @@ public String getVersion() { } /** - * - * + * + * * @generated */ @Override @@ -140,8 +147,8 @@ public void setVersion(String newVersion) { } /** - * - * + * + * * @generated */ @Override @@ -157,8 +164,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -177,8 +184,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -197,8 +204,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -214,8 +221,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -232,4 +239,4 @@ public String toString() { return result.toString(); } -} //ProductRefImpl +} // ProductRefImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/UserGrantImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/UserGrantImpl.java index b9db46997..e524643ee 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/UserGrantImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/UserGrantImpl.java @@ -1,41 +1,48 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; import org.eclipse.passage.lic.floating.model.api.UserGrant; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'User Grant'. - * + * An implementation of the model object 'User + * Grant'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl#getUser User}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl#getAuthentication Authentication}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl#getUser + * User}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl#getAuthentication + * Authentication}
  • *
* * @generated */ public class UserGrantImpl extends MinimalEObjectImpl.Container implements UserGrant { /** - * The default value of the '{@link #getUser() User}' attribute. - * - * + * The default value of the '{@link #getUser() User}' attribute. + * * @see #getUser() * @generated * @ordered @@ -43,9 +50,9 @@ public class UserGrantImpl extends MinimalEObjectImpl.Container implements UserG protected static final String USER_EDEFAULT = null; /** - * The cached value of the '{@link #getUser() User}' attribute. - * - * + * The cached value of the '{@link #getUser() User}' attribute. + * * @see #getUser() * @generated * @ordered @@ -53,9 +60,10 @@ public class UserGrantImpl extends MinimalEObjectImpl.Container implements UserG private String user = USER_EDEFAULT; /** - * The cached value of the '{@link #getAuthentication() Authentication}' reference. - * - * + * The cached value of the '{@link #getAuthentication() + * Authentication}' reference. + * * @see #getAuthentication() * @generated * @ordered @@ -63,8 +71,8 @@ public class UserGrantImpl extends MinimalEObjectImpl.Container implements UserG protected EvaluationInstructions authentication; /** - * - * + * + * * @generated */ protected UserGrantImpl() { @@ -72,8 +80,8 @@ protected UserGrantImpl() { } /** - * - * + * + * * @generated */ @Override @@ -82,8 +90,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -92,8 +100,8 @@ public String getUser() { } /** - * - * + * + * * @generated */ @Override @@ -106,8 +114,8 @@ public void setUser(String newUser) { } /** - * - * + * + * * @generated */ @Override @@ -126,8 +134,8 @@ public EvaluationInstructions getAuthentication() { } /** - * - * + * + * * @generated */ public EvaluationInstructions basicGetAuthentication() { @@ -135,8 +143,8 @@ public EvaluationInstructions basicGetAuthentication() { } /** - * - * + * + * * @generated */ @Override @@ -150,8 +158,8 @@ public void setAuthentication(EvaluationInstructions newAuthentication) { } /** - * - * + * + * * @generated */ @Override @@ -169,8 +177,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -189,8 +197,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -209,8 +217,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -226,8 +234,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -242,4 +250,4 @@ public String toString() { return result.toString(); } -} //UserGrantImpl +} // UserGrantImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ValidityPeriodClosedImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ValidityPeriodClosedImpl.java index e747c925d..ea1590a18 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ValidityPeriodClosedImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/ValidityPeriodClosedImpl.java @@ -1,40 +1,47 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Date; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'Validity Period Closed'. - * + * An implementation of the model object + * 'Validity Period Closed'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl#getFrom From}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl#getUntil Until}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl#getFrom + * From}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl#getUntil + * Until}
  • *
* * @generated */ public class ValidityPeriodClosedImpl extends MinimalEObjectImpl.Container implements ValidityPeriodClosed { /** - * The default value of the '{@link #getFrom() From}' attribute. - * - * + * The default value of the '{@link #getFrom() From}' attribute. + * * @see #getFrom() * @generated * @ordered @@ -42,9 +49,9 @@ public class ValidityPeriodClosedImpl extends MinimalEObjectImpl.Container imple protected static final Date FROM_EDEFAULT = null; /** - * The cached value of the '{@link #getFrom() From}' attribute. - * - * + * The cached value of the '{@link #getFrom() From}' attribute. + * * @see #getFrom() * @generated * @ordered @@ -52,9 +59,9 @@ public class ValidityPeriodClosedImpl extends MinimalEObjectImpl.Container imple private Date from = FROM_EDEFAULT; /** - * The default value of the '{@link #getUntil() Until}' attribute. - * - * + * The default value of the '{@link #getUntil() Until}' attribute. + * * @see #getUntil() * @generated * @ordered @@ -62,9 +69,9 @@ public class ValidityPeriodClosedImpl extends MinimalEObjectImpl.Container imple protected static final Date UNTIL_EDEFAULT = null; /** - * The cached value of the '{@link #getUntil() Until}' attribute. - * - * + * The cached value of the '{@link #getUntil() Until}' attribute. + * * @see #getUntil() * @generated * @ordered @@ -72,8 +79,8 @@ public class ValidityPeriodClosedImpl extends MinimalEObjectImpl.Container imple private Date until = UNTIL_EDEFAULT; /** - * - * + * + * * @generated */ protected ValidityPeriodClosedImpl() { @@ -81,8 +88,8 @@ protected ValidityPeriodClosedImpl() { } /** - * - * + * + * * @generated */ @Override @@ -91,8 +98,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -101,8 +108,8 @@ public Date getFrom() { } /** - * - * + * + * * @generated */ @Override @@ -116,8 +123,8 @@ public void setFrom(Date newFrom) { } /** - * - * + * + * * @generated */ @Override @@ -126,8 +133,8 @@ public Date getUntil() { } /** - * - * + * + * * @generated */ @Override @@ -141,8 +148,8 @@ public void setUntil(Date newUntil) { } /** - * - * + * + * * @generated */ @Override @@ -158,8 +165,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -178,8 +185,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -198,8 +205,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -215,8 +222,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -233,4 +240,4 @@ public String toString() { return result.toString(); } -} //ValidityPeriodClosedImpl +} // ValidityPeriodClosedImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/VersionMatchImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/VersionMatchImpl.java index 3f4479a23..5cbe2fcd4 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/VersionMatchImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/VersionMatchImpl.java @@ -1,30 +1,37 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.VersionMatch; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'Version Match'. - * + * An implementation of the model object 'Version + * Match'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl#getVersion Version}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl#getRule Rule}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl#getVersion + * Version}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl#getRule + * Rule}
  • *
* * @generated @@ -32,8 +39,8 @@ public class VersionMatchImpl extends MinimalEObjectImpl.Container implements VersionMatch { /** * The default value of the '{@link #getVersion() Version}' attribute. - * - * + * + * * @see #getVersion() * @generated * @ordered @@ -42,8 +49,8 @@ public class VersionMatchImpl extends MinimalEObjectImpl.Container implements Ve /** * The cached value of the '{@link #getVersion() Version}' attribute. - * - * + * + * * @see #getVersion() * @generated * @ordered @@ -51,9 +58,9 @@ public class VersionMatchImpl extends MinimalEObjectImpl.Container implements Ve private String version = VERSION_EDEFAULT; /** - * The default value of the '{@link #getRule() Rule}' attribute. - * - * + * The default value of the '{@link #getRule() Rule}' attribute. + * * @see #getRule() * @generated * @ordered @@ -61,9 +68,9 @@ public class VersionMatchImpl extends MinimalEObjectImpl.Container implements Ve protected static final String RULE_EDEFAULT = null; /** - * The cached value of the '{@link #getRule() Rule}' attribute. - * - * + * The cached value of the '{@link #getRule() Rule}' attribute. + * * @see #getRule() * @generated * @ordered @@ -71,8 +78,8 @@ public class VersionMatchImpl extends MinimalEObjectImpl.Container implements Ve private String rule = RULE_EDEFAULT; /** - * - * + * + * * @generated */ protected VersionMatchImpl() { @@ -80,8 +87,8 @@ protected VersionMatchImpl() { } /** - * - * + * + * * @generated */ @Override @@ -90,8 +97,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -100,8 +107,8 @@ public String getVersion() { } /** - * - * + * + * * @generated */ @Override @@ -115,8 +122,8 @@ public void setVersion(String newVersion) { } /** - * - * + * + * * @generated */ @Override @@ -125,8 +132,8 @@ public String getRule() { } /** - * - * + * + * * @generated */ @Override @@ -139,8 +146,8 @@ public void setRule(String newRule) { } /** - * - * + * + * * @generated */ @Override @@ -156,8 +163,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -176,8 +183,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -196,8 +203,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -213,8 +220,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -231,4 +238,4 @@ public String toString() { return result.toString(); } -} //VersionMatchImpl +} // VersionMatchImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java index 9e8baf387..9de1f7777 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java @@ -1,9 +1,18 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.meta; import org.eclipse.emf.ecore.EFactory; - import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; import org.eclipse.passage.lic.floating.model.api.FeatureGrant; import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; @@ -15,110 +24,109 @@ import org.eclipse.passage.lic.floating.model.api.VersionMatch; /** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * + * The Factory for the model. It provides a + * create method for each non-abstract class of the model. + * * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage * @generated */ public interface FloatingFactory extends EFactory { /** - * The singleton instance of the factory. - * - * + * The singleton instance of the factory. + * * @generated */ FloatingFactory eINSTANCE = org.eclipse.passage.lic.floating.model.impl.FloatingFactoryImpl.init(); /** - * Returns a new object of class 'License Pack'. - * - * + * Returns a new object of class 'License Pack'. + * * @return a new object of class 'License Pack'. * @generated */ FloatingLicensePack createFloatingLicensePack(); /** - * Returns a new object of class 'License Requisites'. - * - * + * Returns a new object of class 'License Requisites'. + * * @return a new object of class 'License Requisites'. * @generated */ LicenseRequisites createLicenseRequisites(); /** - * Returns a new object of class 'Product Ref'. - * + * Returns a new object of class 'Product Ref'. * + * * @return a new object of class 'Product Ref'. * @generated */ ProductRef createProductRef(); /** - * Returns a new object of class 'Server'. - * - * + * Returns a new object of class 'Server'. + * * @return a new object of class 'Server'. * @generated */ FloatingServer createFloatingServer(); /** - * Returns a new object of class 'User Grant'. - * + * Returns a new object of class 'User Grant'. * + * * @return a new object of class 'User Grant'. * @generated */ UserGrant createUserGrant(); /** - * Returns a new object of class 'Feature Grant'. - * - * + * Returns a new object of class 'Feature Grant'. + * * @return a new object of class 'Feature Grant'. * @generated */ FeatureGrant createFeatureGrant(); /** - * Returns a new object of class 'Validity Period Closed'. - * - * + * Returns a new object of class 'Validity Period Closed'. + * * @return a new object of class 'Validity Period Closed'. * @generated */ ValidityPeriodClosed createValidityPeriodClosed(); /** - * Returns a new object of class 'Evaluation Instructions'. - * - * + * Returns a new object of class 'Evaluation Instructions'. + * * @return a new object of class 'Evaluation Instructions'. * @generated */ EvaluationInstructions createEvaluationInstructions(); /** - * Returns a new object of class 'Version Match'. - * - * + * Returns a new object of class 'Version Match'. + * * @return a new object of class 'Version Match'. * @generated */ VersionMatch createVersionMatch(); /** - * Returns the package supported by this factory. - * - * + * Returns the package supported by this factory. + * * @return the package supported by this factory. * @generated */ FloatingPackage getFloatingPackage(); -} //FloatingFactory +} // FloatingFactory diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingPackage.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingPackage.java index 43826e915..af32b80b6 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingPackage.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingPackage.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.meta; import org.eclipse.emf.ecore.EAttribute; @@ -8,58 +18,56 @@ import org.eclipse.emf.ecore.EReference; /** - * - * The Package for the model. - * It contains accessors for the meta objects to represent + * The Package for the model. It contains + * accessors for the meta objects to represent *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • *
* + * * @see org.eclipse.passage.lic.floating.model.meta.FloatingFactory * @model kind="package" * @generated */ public interface FloatingPackage extends EPackage { /** - * The package name. - * - * + * The package name. + * * @generated */ String eNAME = "floating"; //$NON-NLS-1$ /** - * The package namespace URI. - * - * + * The package namespace URI. + * * @generated */ String eNS_URI = "http://www.eclipse.org/passage/lic/floating/0.1.0"; //$NON-NLS-1$ /** - * The package namespace name. - * - * + * The package namespace name. + * * @generated */ String eNS_PREFIX = "org.eclipse.passage.lic"; //$NON-NLS-1$ /** - * The singleton instance of the package. - * - * + * The singleton instance of the package. + * * @generated */ FloatingPackage eINSTANCE = org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl.init(); /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl License Pack}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl + * License Pack}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.FloatingLicensePackImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getFloatingLicensePack() * @generated @@ -67,63 +75,65 @@ public interface FloatingPackage extends EPackage { int FLOATING_LICENSE_PACK = 0; /** - * The feature id for the 'License' reference. - * - * + * The feature id for the 'License' reference. + * * @generated * @ordered */ int FLOATING_LICENSE_PACK__LICENSE = 0; /** - * The feature id for the 'Host' reference. - * - * + * The feature id for the 'Host' reference. + * * @generated * @ordered */ int FLOATING_LICENSE_PACK__HOST = 1; /** - * The feature id for the 'Users' reference list. - * - * + * The feature id for the 'Users' reference list. + * * @generated * @ordered */ int FLOATING_LICENSE_PACK__USERS = 2; /** - * The feature id for the 'Features' reference list. - * - * + * The feature id for the 'Features' reference list. + * * @generated * @ordered */ int FLOATING_LICENSE_PACK__FEATURES = 3; /** - * The number of structural features of the 'License Pack' class. - * - * + * The number of structural features of the 'License Pack' class. + * * @generated * @ordered */ int FLOATING_LICENSE_PACK_FEATURE_COUNT = 4; /** - * The number of operations of the 'License Pack' class. - * - * + * The number of operations of the 'License Pack' class. + * * @generated * @ordered */ int FLOATING_LICENSE_PACK_OPERATION_COUNT = 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl License Requisites}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl + * License Requisites}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.LicenseRequisitesImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getLicenseRequisites() * @generated @@ -131,54 +141,54 @@ public interface FloatingPackage extends EPackage { int LICENSE_REQUISITES = 1; /** - * The feature id for the 'Identifier' attribute. - * - * + * The feature id for the 'Identifier' attribute. + * * @generated * @ordered */ int LICENSE_REQUISITES__IDENTIFIER = 0; /** - * The feature id for the 'Issue Date' attribute. - * - * + * The feature id for the 'Issue Date' attribute. + * * @generated * @ordered */ int LICENSE_REQUISITES__ISSUE_DATE = 1; /** - * The feature id for the 'Company' attribute. - * - * + * The feature id for the 'Company' attribute. + * * @generated * @ordered */ int LICENSE_REQUISITES__COMPANY = 2; /** - * The feature id for the 'Plan' attribute. - * - * + * The feature id for the 'Plan' attribute. + * * @generated * @ordered */ int LICENSE_REQUISITES__PLAN = 3; /** - * The feature id for the 'Product' reference. - * - * + * The feature id for the 'Product' reference. + * * @generated * @ordered */ int LICENSE_REQUISITES__PRODUCT = 4; /** - * The feature id for the 'Valid' reference. - * - * + * The feature id for the 'Valid' reference. + * * @generated * @ordered */ @@ -186,26 +196,27 @@ public interface FloatingPackage extends EPackage { /** * The number of structural features of the 'License Requisites' class. - * - * + * + * * @generated * @ordered */ int LICENSE_REQUISITES_FEATURE_COUNT = 6; /** - * The number of operations of the 'License Requisites' class. - * - * + * The number of operations of the 'License Requisites' class. + * * @generated * @ordered */ int LICENSE_REQUISITES_OPERATION_COUNT = 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl Product Ref}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.ProductRefImpl + * Product Ref}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.ProductRefImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getProductRef() * @generated @@ -213,45 +224,46 @@ public interface FloatingPackage extends EPackage { int PRODUCT_REF = 2; /** - * The feature id for the 'Product' attribute. - * - * + * The feature id for the 'Product' attribute. + * * @generated * @ordered */ int PRODUCT_REF__PRODUCT = 0; /** - * The feature id for the 'Version' attribute. - * - * + * The feature id for the 'Version' attribute. + * * @generated * @ordered */ int PRODUCT_REF__VERSION = 1; /** - * The number of structural features of the 'Product Ref' class. - * - * + * The number of structural features of the 'Product Ref' class. + * * @generated * @ordered */ int PRODUCT_REF_FEATURE_COUNT = 2; /** - * The number of operations of the 'Product Ref' class. - * - * + * The number of operations of the 'Product Ref' class. + * * @generated * @ordered */ int PRODUCT_REF_OPERATION_COUNT = 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl Server}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl + * Server}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.FloatingServerImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getFloatingServer() * @generated @@ -259,45 +271,46 @@ public interface FloatingPackage extends EPackage { int FLOATING_SERVER = 3; /** - * The feature id for the 'Identifier' attribute. - * - * + * The feature id for the 'Identifier' attribute. + * * @generated * @ordered */ int FLOATING_SERVER__IDENTIFIER = 0; /** - * The feature id for the 'Authentication' reference. - * - * + * The feature id for the 'Authentication' reference. + * * @generated * @ordered */ int FLOATING_SERVER__AUTHENTICATION = 1; /** - * The number of structural features of the 'Server' class. - * - * + * The number of structural features of the 'Server' class. + * * @generated * @ordered */ int FLOATING_SERVER_FEATURE_COUNT = 2; /** - * The number of operations of the 'Server' class. - * - * + * The number of operations of the 'Server' class. + * * @generated * @ordered */ int FLOATING_SERVER_OPERATION_COUNT = 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl User Grant}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.UserGrantImpl User + * Grant}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.UserGrantImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getUserGrant() * @generated @@ -305,45 +318,46 @@ public interface FloatingPackage extends EPackage { int USER_GRANT = 4; /** - * The feature id for the 'User' attribute. - * - * + * The feature id for the 'User' attribute. + * * @generated * @ordered */ int USER_GRANT__USER = 0; /** - * The feature id for the 'Authentication' reference. - * - * + * The feature id for the 'Authentication' reference. + * * @generated * @ordered */ int USER_GRANT__AUTHENTICATION = 1; /** - * The number of structural features of the 'User Grant' class. - * - * + * The number of structural features of the 'User Grant' class. + * * @generated * @ordered */ int USER_GRANT_FEATURE_COUNT = 2; /** - * The number of operations of the 'User Grant' class. - * - * + * The number of operations of the 'User Grant' class. + * * @generated * @ordered */ int USER_GRANT_OPERATION_COUNT = 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl Feature Grant}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl + * Feature Grant}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.FeatureGrantImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getFeatureGrant() * @generated @@ -351,81 +365,83 @@ public interface FloatingPackage extends EPackage { int FEATURE_GRANT = 5; /** - * The feature id for the 'Identifier' attribute. - * - * + * The feature id for the 'Identifier' attribute. + * * @generated * @ordered */ int FEATURE_GRANT__IDENTIFIER = 0; /** - * The feature id for the 'Feature' attribute. - * - * + * The feature id for the 'Feature' attribute. + * * @generated * @ordered */ int FEATURE_GRANT__FEATURE = 1; /** - * The feature id for the 'Version' reference. - * - * + * The feature id for the 'Version' reference. + * * @generated * @ordered */ int FEATURE_GRANT__VERSION = 2; /** - * The feature id for the 'Valid' reference. - * - * + * The feature id for the 'Valid' reference. + * * @generated * @ordered */ int FEATURE_GRANT__VALID = 3; /** - * The feature id for the 'Capacity' attribute. - * - * + * The feature id for the 'Capacity' attribute. + * * @generated * @ordered */ int FEATURE_GRANT__CAPACITY = 4; /** - * The feature id for the 'Pack' reference. - * - * + * The feature id for the 'Pack' reference. + * * @generated * @ordered */ int FEATURE_GRANT__PACK = 5; /** - * The number of structural features of the 'Feature Grant' class. - * - * + * The number of structural features of the 'Feature Grant' class. + * * @generated * @ordered */ int FEATURE_GRANT_FEATURE_COUNT = 6; /** - * The number of operations of the 'Feature Grant' class. - * - * + * The number of operations of the 'Feature Grant' class. + * * @generated * @ordered */ int FEATURE_GRANT_OPERATION_COUNT = 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod Validity Period}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod + * Validity Period}' class. + * * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriod * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getValidityPeriod() * @generated @@ -434,26 +450,28 @@ public interface FloatingPackage extends EPackage { /** * The number of structural features of the 'Validity Period' class. - * - * + * + * * @generated * @ordered */ int VALIDITY_PERIOD_FEATURE_COUNT = 0; /** - * The number of operations of the 'Validity Period' class. - * - * + * The number of operations of the 'Validity Period' class. + * * @generated * @ordered */ int VALIDITY_PERIOD_OPERATION_COUNT = 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl Validity Period Closed}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl + * Validity Period Closed}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.ValidityPeriodClosedImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getValidityPeriodClosed() * @generated @@ -461,45 +479,47 @@ public interface FloatingPackage extends EPackage { int VALIDITY_PERIOD_CLOSED = 7; /** - * The feature id for the 'From' attribute. - * - * + * The feature id for the 'From' attribute. + * * @generated * @ordered */ int VALIDITY_PERIOD_CLOSED__FROM = VALIDITY_PERIOD_FEATURE_COUNT + 0; /** - * The feature id for the 'Until' attribute. - * - * + * The feature id for the 'Until' attribute. + * * @generated * @ordered */ int VALIDITY_PERIOD_CLOSED__UNTIL = VALIDITY_PERIOD_FEATURE_COUNT + 1; /** - * The number of structural features of the 'Validity Period Closed' class. - * - * + * The number of structural features of the 'Validity Period Closed' + * class. + * * @generated * @ordered */ int VALIDITY_PERIOD_CLOSED_FEATURE_COUNT = VALIDITY_PERIOD_FEATURE_COUNT + 2; /** - * The number of operations of the 'Validity Period Closed' class. - * - * + * The number of operations of the 'Validity Period Closed' class. + * * @generated * @ordered */ int VALIDITY_PERIOD_CLOSED_OPERATION_COUNT = VALIDITY_PERIOD_OPERATION_COUNT + 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl Evaluation Instructions}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl + * Evaluation Instructions}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.EvaluationInstructionsImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getEvaluationInstructions() * @generated @@ -507,27 +527,27 @@ public interface FloatingPackage extends EPackage { int EVALUATION_INSTRUCTIONS = 8; /** - * The feature id for the 'Type' attribute. - * - * + * The feature id for the 'Type' attribute. + * * @generated * @ordered */ int EVALUATION_INSTRUCTIONS__TYPE = 0; /** - * The feature id for the 'Expression' attribute. - * - * + * The feature id for the 'Expression' attribute. + * * @generated * @ordered */ int EVALUATION_INSTRUCTIONS__EXPRESSION = 1; /** - * The number of structural features of the 'Evaluation Instructions' class. - * - * + * The number of structural features of the 'Evaluation Instructions' + * class. + * * @generated * @ordered */ @@ -535,17 +555,18 @@ public interface FloatingPackage extends EPackage { /** * The number of operations of the 'Evaluation Instructions' class. - * - * + * + * * @generated * @ordered */ int EVALUATION_INSTRUCTIONS_OPERATION_COUNT = 0; /** - * The meta object id for the '{@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl Version Match}' class. - * - * + * The meta object id for the + * '{@link org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl + * Version Match}' class. + * * @see org.eclipse.passage.lic.floating.model.impl.VersionMatchImpl * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getVersionMatch() * @generated @@ -553,45 +574,46 @@ public interface FloatingPackage extends EPackage { int VERSION_MATCH = 9; /** - * The feature id for the 'Version' attribute. - * - * + * The feature id for the 'Version' attribute. + * * @generated * @ordered */ int VERSION_MATCH__VERSION = 0; /** - * The feature id for the 'Rule' attribute. - * - * + * The feature id for the 'Rule' attribute. + * * @generated * @ordered */ int VERSION_MATCH__RULE = 1; /** - * The number of structural features of the 'Version Match' class. - * - * + * The number of structural features of the 'Version Match' class. + * * @generated * @ordered */ int VERSION_MATCH_FEATURE_COUNT = 2; /** - * The number of operations of the 'Version Match' class. - * - * + * The number of operations of the 'Version Match' class. + * * @generated * @ordered */ int VERSION_MATCH_OPERATION_COUNT = 0; /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack License Pack}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack + * License Pack}'. + * * @return the meta object for class 'License Pack'. * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack * @generated @@ -599,9 +621,10 @@ public interface FloatingPackage extends EPackage { EClass getFloatingLicensePack(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense License}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense + * License}'. + * * @return the meta object for the reference 'License'. * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getLicense() * @see #getFloatingLicensePack() @@ -610,9 +633,10 @@ public interface FloatingPackage extends EPackage { EReference getFloatingLicensePack_License(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost Host}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost + * Host}'. + * * @return the meta object for the reference 'Host'. * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getHost() * @see #getFloatingLicensePack() @@ -621,9 +645,10 @@ public interface FloatingPackage extends EPackage { EReference getFloatingLicensePack_Host(); /** - * Returns the meta object for the reference list '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getUsers Users}'. - * - * + * Returns the meta object for the reference list + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getUsers + * Users}'. + * * @return the meta object for the reference list 'Users'. * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getUsers() * @see #getFloatingLicensePack() @@ -632,9 +657,10 @@ public interface FloatingPackage extends EPackage { EReference getFloatingLicensePack_Users(); /** - * Returns the meta object for the reference list '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures Features}'. - * - * + * Returns the meta object for the reference list + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures + * Features}'. + * * @return the meta object for the reference list 'Features'. * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack#getFeatures() * @see #getFloatingLicensePack() @@ -643,9 +669,10 @@ public interface FloatingPackage extends EPackage { EReference getFloatingLicensePack_Features(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites License Requisites}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites + * License Requisites}'. + * * @return the meta object for class 'License Requisites'. * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites * @generated @@ -653,9 +680,10 @@ public interface FloatingPackage extends EPackage { EClass getLicenseRequisites(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier Identifier}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier + * Identifier}'. + * * @return the meta object for the attribute 'Identifier'. * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIdentifier() * @see #getLicenseRequisites() @@ -664,9 +692,10 @@ public interface FloatingPackage extends EPackage { EAttribute getLicenseRequisites_Identifier(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate Issue Date}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate + * Issue Date}'. + * * @return the meta object for the attribute 'Issue Date'. * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getIssueDate() * @see #getLicenseRequisites() @@ -675,9 +704,10 @@ public interface FloatingPackage extends EPackage { EAttribute getLicenseRequisites_IssueDate(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany Company}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany + * Company}'. + * * @return the meta object for the attribute 'Company'. * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getCompany() * @see #getLicenseRequisites() @@ -686,9 +716,10 @@ public interface FloatingPackage extends EPackage { EAttribute getLicenseRequisites_Company(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan Plan}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan + * Plan}'. + * * @return the meta object for the attribute 'Plan'. * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getPlan() * @see #getLicenseRequisites() @@ -697,9 +728,10 @@ public interface FloatingPackage extends EPackage { EAttribute getLicenseRequisites_Plan(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct Product}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct + * Product}'. + * * @return the meta object for the reference 'Product'. * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getProduct() * @see #getLicenseRequisites() @@ -708,9 +740,10 @@ public interface FloatingPackage extends EPackage { EReference getLicenseRequisites_Product(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid Valid}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid + * Valid}'. + * * @return the meta object for the reference 'Valid'. * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites#getValid() * @see #getLicenseRequisites() @@ -719,9 +752,10 @@ public interface FloatingPackage extends EPackage { EReference getLicenseRequisites_Valid(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.ProductRef Product Ref}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.ProductRef Product + * Ref}'. + * * @return the meta object for class 'Product Ref'. * @see org.eclipse.passage.lic.floating.model.api.ProductRef * @generated @@ -729,9 +763,10 @@ public interface FloatingPackage extends EPackage { EClass getProductRef(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct Product}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct + * Product}'. + * * @return the meta object for the attribute 'Product'. * @see org.eclipse.passage.lic.floating.model.api.ProductRef#getProduct() * @see #getProductRef() @@ -740,9 +775,10 @@ public interface FloatingPackage extends EPackage { EAttribute getProductRef_Product(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion Version}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion + * Version}'. + * * @return the meta object for the attribute 'Version'. * @see org.eclipse.passage.lic.floating.model.api.ProductRef#getVersion() * @see #getProductRef() @@ -751,9 +787,10 @@ public interface FloatingPackage extends EPackage { EAttribute getProductRef_Version(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer Server}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer + * Server}'. + * * @return the meta object for class 'Server'. * @see org.eclipse.passage.lic.floating.model.api.FloatingServer * @generated @@ -761,9 +798,10 @@ public interface FloatingPackage extends EPackage { EClass getFloatingServer(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier Identifier}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier + * Identifier}'. + * * @return the meta object for the attribute 'Identifier'. * @see org.eclipse.passage.lic.floating.model.api.FloatingServer#getIdentifier() * @see #getFloatingServer() @@ -772,9 +810,10 @@ public interface FloatingPackage extends EPackage { EAttribute getFloatingServer_Identifier(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication Authentication}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication + * Authentication}'. + * * @return the meta object for the reference 'Authentication'. * @see org.eclipse.passage.lic.floating.model.api.FloatingServer#getAuthentication() * @see #getFloatingServer() @@ -783,9 +822,10 @@ public interface FloatingPackage extends EPackage { EReference getFloatingServer_Authentication(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.UserGrant User Grant}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.UserGrant User + * Grant}'. + * * @return the meta object for class 'User Grant'. * @see org.eclipse.passage.lic.floating.model.api.UserGrant * @generated @@ -793,9 +833,10 @@ public interface FloatingPackage extends EPackage { EClass getUserGrant(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser User}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getUser + * User}'. + * * @return the meta object for the attribute 'User'. * @see org.eclipse.passage.lic.floating.model.api.UserGrant#getUser() * @see #getUserGrant() @@ -804,9 +845,10 @@ public interface FloatingPackage extends EPackage { EAttribute getUserGrant_User(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication Authentication}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication + * Authentication}'. + * * @return the meta object for the reference 'Authentication'. * @see org.eclipse.passage.lic.floating.model.api.UserGrant#getAuthentication() * @see #getUserGrant() @@ -815,9 +857,10 @@ public interface FloatingPackage extends EPackage { EReference getUserGrant_Authentication(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant Feature Grant}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant Feature + * Grant}'. + * * @return the meta object for class 'Feature Grant'. * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant * @generated @@ -825,9 +868,10 @@ public interface FloatingPackage extends EPackage { EClass getFeatureGrant(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier Identifier}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier + * Identifier}'. + * * @return the meta object for the attribute 'Identifier'. * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getIdentifier() * @see #getFeatureGrant() @@ -836,9 +880,10 @@ public interface FloatingPackage extends EPackage { EAttribute getFeatureGrant_Identifier(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature Feature}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature + * Feature}'. + * * @return the meta object for the attribute 'Feature'. * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getFeature() * @see #getFeatureGrant() @@ -847,9 +892,10 @@ public interface FloatingPackage extends EPackage { EAttribute getFeatureGrant_Feature(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion Version}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion + * Version}'. + * * @return the meta object for the reference 'Version'. * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getVersion() * @see #getFeatureGrant() @@ -858,9 +904,10 @@ public interface FloatingPackage extends EPackage { EReference getFeatureGrant_Version(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid Valid}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid + * Valid}'. + * * @return the meta object for the reference 'Valid'. * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getValid() * @see #getFeatureGrant() @@ -869,9 +916,10 @@ public interface FloatingPackage extends EPackage { EReference getFeatureGrant_Valid(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity Capacity}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity + * Capacity}'. + * * @return the meta object for the attribute 'Capacity'. * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getCapacity() * @see #getFeatureGrant() @@ -880,9 +928,10 @@ public interface FloatingPackage extends EPackage { EAttribute getFeatureGrant_Capacity(); /** - * Returns the meta object for the reference '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack Pack}'. - * - * + * Returns the meta object for the reference + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack + * Pack}'. + * * @return the meta object for the reference 'Pack'. * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant#getPack() * @see #getFeatureGrant() @@ -891,9 +940,10 @@ public interface FloatingPackage extends EPackage { EReference getFeatureGrant_Pack(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod Validity Period}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod + * Validity Period}'. + * * @return the meta object for class 'Validity Period'. * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriod * @generated @@ -901,9 +951,11 @@ public interface FloatingPackage extends EPackage { EClass getValidityPeriod(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed Validity Period Closed}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed + * Validity Period Closed}'. + * * @return the meta object for class 'Validity Period Closed'. * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed * @generated @@ -911,9 +963,10 @@ public interface FloatingPackage extends EPackage { EClass getValidityPeriodClosed(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom From}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom + * From}'. + * * @return the meta object for the attribute 'From'. * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getFrom() * @see #getValidityPeriodClosed() @@ -922,9 +975,10 @@ public interface FloatingPackage extends EPackage { EAttribute getValidityPeriodClosed_From(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil Until}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil + * Until}'. + * * @return the meta object for the attribute 'Until'. * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed#getUntil() * @see #getValidityPeriodClosed() @@ -933,9 +987,11 @@ public interface FloatingPackage extends EPackage { EAttribute getValidityPeriodClosed_Until(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions Evaluation Instructions}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions + * Evaluation Instructions}'. + * * @return the meta object for class 'Evaluation Instructions'. * @see org.eclipse.passage.lic.floating.model.api.EvaluationInstructions * @generated @@ -943,9 +999,10 @@ public interface FloatingPackage extends EPackage { EClass getEvaluationInstructions(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType Type}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType + * Type}'. + * * @return the meta object for the attribute 'Type'. * @see org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getType() * @see #getEvaluationInstructions() @@ -954,9 +1011,10 @@ public interface FloatingPackage extends EPackage { EAttribute getEvaluationInstructions_Type(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression Expression}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression + * Expression}'. + * * @return the meta object for the attribute 'Expression'. * @see org.eclipse.passage.lic.floating.model.api.EvaluationInstructions#getExpression() * @see #getEvaluationInstructions() @@ -965,9 +1023,10 @@ public interface FloatingPackage extends EPackage { EAttribute getEvaluationInstructions_Expression(); /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch Version Match}'. - * - * + * Returns the meta object for class + * '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch Version + * Match}'. + * * @return the meta object for class 'Version Match'. * @see org.eclipse.passage.lic.floating.model.api.VersionMatch * @generated @@ -975,9 +1034,10 @@ public interface FloatingPackage extends EPackage { EClass getVersionMatch(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion Version}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion + * Version}'. + * * @return the meta object for the attribute 'Version'. * @see org.eclipse.passage.lic.floating.model.api.VersionMatch#getVersion() * @see #getVersionMatch() @@ -986,9 +1046,10 @@ public interface FloatingPackage extends EPackage { EAttribute getVersionMatch_Version(); /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule Rule}'. - * - * + * Returns the meta object for the attribute + * '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule + * Rule}'. + * * @return the meta object for the attribute 'Rule'. * @see org.eclipse.passage.lic.floating.model.api.VersionMatch#getRule() * @see #getVersionMatch() @@ -997,12 +1058,12 @@ public interface FloatingPackage extends EPackage { EAttribute getVersionMatch_Rule(); /** - * Returns the factory that creates the instances of the model. - * - * + * Returns the factory that creates the instances of the model. + * * @return the factory that creates the instances of the model. * @generated */ FloatingFactory getFloatingFactory(); -} //FloatingPackage +} // FloatingPackage diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java index dbf0f3237..25810530e 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java @@ -1,39 +1,53 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.util; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; - import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; - import org.eclipse.emf.ecore.EObject; - -import org.eclipse.passage.lic.floating.model.api.*; - +import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; +import org.eclipse.passage.lic.floating.model.api.FeatureGrant; +import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; +import org.eclipse.passage.lic.floating.model.api.FloatingServer; +import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; +import org.eclipse.passage.lic.floating.model.api.ProductRef; +import org.eclipse.passage.lic.floating.model.api.UserGrant; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriod; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed; +import org.eclipse.passage.lic.floating.model.api.VersionMatch; import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * + * The Adapter Factory for the model. It provides + * an adapter createXXX method for each class of the model. + * * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage * @generated */ public class FloatingAdapterFactory extends AdapterFactoryImpl { /** - * The cached model package. - * - * + * The cached model package. + * * @generated */ protected static FloatingPackage modelPackage; /** - * Creates an instance of the adapter factory. - * - * + * Creates an instance of the adapter factory. + * * @generated */ public FloatingAdapterFactory() { @@ -43,10 +57,11 @@ public FloatingAdapterFactory() { } /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. + * Returns whether this factory is applicable for the type of the object. This implementation returns true if the + * object is either the model's package or is an instance object of the model. * + * * @return whether this factory is applicable for the type of the object. * @generated */ @@ -62,9 +77,9 @@ public boolean isFactoryForType(Object object) { } /** - * The switch that delegates to the createXXX methods. - * - * + * The switch that delegates to the createXXX methods. + * * @generated */ protected FloatingSwitch modelSwitch = new FloatingSwitch() { @@ -125,9 +140,9 @@ public Adapter defaultCase(EObject object) { }; /** - * Creates an adapter for the target. - * - * + * Creates an adapter for the target. + * * @param target the object to adapt. * @return the adapter for the target. * @generated @@ -138,11 +153,12 @@ public Adapter createAdapter(Notifier target) { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack License Pack}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack + * License Pack}'. This default implementation + * returns null so that we can easily ignore cases; it's useful to ignore a case + * when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.FloatingLicensePack * @generated @@ -152,11 +168,13 @@ public Adapter createFloatingLicensePackAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites License Requisites}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.LicenseRequisites + * License Requisites}'. This default + * implementation returns null so that we can easily ignore cases; it's useful + * to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.LicenseRequisites * @generated @@ -166,11 +184,12 @@ public Adapter createLicenseRequisitesAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.ProductRef Product Ref}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.ProductRef Product + * Ref}'. This default implementation returns null + * so that we can easily ignore cases; it's useful to ignore a case when + * inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.ProductRef * @generated @@ -180,11 +199,12 @@ public Adapter createProductRefAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer Server}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.FloatingServer + * Server}'. This default implementation + * returns null so that we can easily ignore cases; it's useful to ignore a case + * when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.FloatingServer * @generated @@ -194,11 +214,12 @@ public Adapter createFloatingServerAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.UserGrant User Grant}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.UserGrant User + * Grant}'. This default implementation returns + * null so that we can easily ignore cases; it's useful to ignore a case when + * inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.UserGrant * @generated @@ -208,11 +229,12 @@ public Adapter createUserGrantAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant Feature Grant}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.FeatureGrant Feature + * Grant}'. This default implementation returns + * null so that we can easily ignore cases; it's useful to ignore a case when + * inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.FeatureGrant * @generated @@ -222,11 +244,13 @@ public Adapter createFeatureGrantAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod Validity Period}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriod + * Validity Period}'. This default + * implementation returns null so that we can easily ignore cases; it's useful + * to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriod * @generated @@ -236,11 +260,13 @@ public Adapter createValidityPeriodAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed Validity Period Closed}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed + * Validity Period Closed}'. This default + * implementation returns null so that we can easily ignore cases; it's useful + * to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed * @generated @@ -250,11 +276,13 @@ public Adapter createValidityPeriodClosedAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions Evaluation Instructions}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.EvaluationInstructions + * Evaluation Instructions}'. This default + * implementation returns null so that we can easily ignore cases; it's useful + * to ignore a case when inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.EvaluationInstructions * @generated @@ -264,11 +292,12 @@ public Adapter createEvaluationInstructionsAdapter() { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch Version Match}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * + * Creates a new adapter for an object of class + * '{@link org.eclipse.passage.lic.floating.model.api.VersionMatch Version + * Match}'. This default implementation returns + * null so that we can easily ignore cases; it's useful to ignore a case when + * inheritance will catch all the cases anyway. + * * @return the new adapter. * @see org.eclipse.passage.lic.floating.model.api.VersionMatch * @generated @@ -278,10 +307,9 @@ public Adapter createVersionMatchAdapter() { } /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * + * Creates a new adapter for the default case. This + * default implementation returns null. + * * @return the new adapter. * @generated */ @@ -289,4 +317,4 @@ public Adapter createEObjectAdapter() { return null; } -} //FloatingAdapterFactory +} // FloatingAdapterFactory diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java index 52f2f5eb7..f96a699fe 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java @@ -1,42 +1,55 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.util; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; - import org.eclipse.emf.ecore.util.Switch; - -import org.eclipse.passage.lic.floating.model.api.*; - +import org.eclipse.passage.lic.floating.model.api.EvaluationInstructions; +import org.eclipse.passage.lic.floating.model.api.FeatureGrant; +import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; +import org.eclipse.passage.lic.floating.model.api.FloatingServer; +import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; +import org.eclipse.passage.lic.floating.model.api.ProductRef; +import org.eclipse.passage.lic.floating.model.api.UserGrant; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriod; +import org.eclipse.passage.lic.floating.model.api.ValidityPeriodClosed; +import org.eclipse.passage.lic.floating.model.api.VersionMatch; import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * The Switch for the model's inheritance + * hierarchy. It supports the call {@link #doSwitch(EObject) doSwitch(object)} * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * + * starting with the actual class of the object and proceeding up the + * inheritance hierarchy until a non-null result is returned, which is the + * result of the switch. + * * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage * @generated */ public class FloatingSwitch extends Switch { /** - * The cached model package - * - * + * The cached model package + * * @generated */ protected static FloatingPackage modelPackage; /** - * Creates an instance of the switch. - * - * + * Creates an instance of the switch. + * * @generated */ public FloatingSwitch() { @@ -46,9 +59,9 @@ public FloatingSwitch() { } /** - * Checks whether this is a switch for the given package. - * - * + * Checks whether this is a switch for the given package. + * * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated @@ -59,9 +72,10 @@ protected boolean isSwitchFor(EPackage ePackage) { } /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * + * Calls caseXXX for each class of the model until one returns a + * non null result; it yields that result. + * * @return the first non-null result returned by a caseXXX call. * @generated */ @@ -146,13 +160,13 @@ protected T doSwitch(int classifierID, EObject theEObject) { } /** - * Returns the result of interpreting the object as an instance of 'License Pack'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of 'License + * Pack'. This implementation returns null; + * returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'License Pack'. + * @return the result of interpreting the object as an instance of 'License + * Pack'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -161,13 +175,13 @@ public T caseFloatingLicensePack(FloatingLicensePack object) { } /** - * Returns the result of interpreting the object as an instance of 'License Requisites'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of 'License + * Requisites'. This implementation returns null; + * returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'License Requisites'. + * @return the result of interpreting the object as an instance of 'License + * Requisites'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -176,13 +190,13 @@ public T caseLicenseRequisites(LicenseRequisites object) { } /** - * Returns the result of interpreting the object as an instance of 'Product Ref'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of 'Product + * Ref'. This implementation returns null; + * returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Product Ref'. + * @return the result of interpreting the object as an instance of 'Product + * Ref'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -191,13 +205,13 @@ public T caseProductRef(ProductRef object) { } /** - * Returns the result of interpreting the object as an instance of 'Server'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of + * 'Server'. This implementation returns null; + * returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Server'. + * @return the result of interpreting the object as an instance of + * 'Server'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -206,13 +220,13 @@ public T caseFloatingServer(FloatingServer object) { } /** - * Returns the result of interpreting the object as an instance of 'User Grant'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of 'User + * Grant'. This implementation returns null; + * returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'User Grant'. + * @return the result of interpreting the object as an instance of 'User + * Grant'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -221,13 +235,13 @@ public T caseUserGrant(UserGrant object) { } /** - * Returns the result of interpreting the object as an instance of 'Feature Grant'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of 'Feature + * Grant'. This implementation returns null; + * returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature Grant'. + * @return the result of interpreting the object as an instance of 'Feature + * Grant'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -236,13 +250,13 @@ public T caseFeatureGrant(FeatureGrant object) { } /** - * Returns the result of interpreting the object as an instance of 'Validity Period'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of 'Validity + * Period'. This implementation returns null; + * returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Validity Period'. + * @return the result of interpreting the object as an instance of 'Validity + * Period'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -251,13 +265,14 @@ public T caseValidityPeriod(ValidityPeriod object) { } /** - * Returns the result of interpreting the object as an instance of 'Validity Period Closed'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of 'Validity + * Period Closed'. This implementation returns + * null; returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Validity Period Closed'. + * @return the result of interpreting the object as an instance of 'Validity + * Period Closed'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -266,13 +281,14 @@ public T caseValidityPeriodClosed(ValidityPeriodClosed object) { } /** - * Returns the result of interpreting the object as an instance of 'Evaluation Instructions'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of + * 'Evaluation Instructions'. This + * implementation returns null; returning a non-null result will terminate the + * switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Evaluation Instructions'. + * @return the result of interpreting the object as an instance of + * 'Evaluation Instructions'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -281,13 +297,13 @@ public T caseEvaluationInstructions(EvaluationInstructions object) { } /** - * Returns the result of interpreting the object as an instance of 'Version Match'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * + * Returns the result of interpreting the object as an instance of 'Version + * Match'. This implementation returns null; + * returning a non-null result will terminate the switch. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Version Match'. + * @return the result of interpreting the object as an instance of 'Version + * Match'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ @@ -296,13 +312,14 @@ public T caseVersionMatch(VersionMatch object) { } /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * + * Returns the result of interpreting the object as an instance of + * 'EObject'. This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last + * case anyway. + * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. + * @return the result of interpreting the object as an instance of + * 'EObject'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated */ @@ -311,4 +328,4 @@ public T defaultCase(EObject object) { return null; } -} //FloatingSwitch +} // FloatingSwitch diff --git a/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/AssignGrantIdentifiers.java b/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/AssignGrantIdentifiers.java index 37267413a..35396fd65 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/AssignGrantIdentifiers.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/AssignGrantIdentifiers.java @@ -10,17 +10,17 @@ * Contributors: * ArSysOp - initial API and implementation *******************************************************************************/ -package org.eclipse.passage.lic.internal.licenses.model; +package org.eclipse.passage.lic.internal.floating.model; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import org.eclipse.emf.common.util.EList; -import org.eclipse.passage.lic.licenses.model.api.LicenseGrant; -import org.eclipse.passage.lic.licenses.model.api.LicensePack; +import org.eclipse.passage.lic.floating.model.api.FeatureGrant; +import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; -public final class AssignGrantIdentifiers implements Consumer { +public final class AssignGrantIdentifiers implements Consumer { private final Predicate predicate; @@ -29,11 +29,11 @@ public AssignGrantIdentifiers() { } @Override - public void accept(LicensePack pack) { - String identifier = pack.getIdentifier(); - EList grants = pack.getLicenseGrants(); + public void accept(FloatingLicensePack pack) { + String identifier = pack.getLicense().getIdentifier(); + EList grants = pack.getFeatures(); for (int i = 0; i < grants.size(); i++) { - LicenseGrant grant = grants.get(i); + FeatureGrant grant = grants.get(i); if (Optional.ofNullable(grant.getIdentifier()).filter(predicate).isPresent()) { continue; } diff --git a/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/LicensesClassMetadata.java b/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/LicensesClassMetadata.java deleted file mode 100644 index 4e1a1409a..000000000 --- a/bundles/org.eclipse.passage.lic.floating.model/src/org/eclipse/passage/lic/internal/floating/model/LicensesClassMetadata.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.licenses.model; - -import java.util.HashMap; -import java.util.Map; -import java.util.Optional; - -import org.eclipse.passage.lic.emf.meta.ClassMetadata; -import org.eclipse.passage.lic.emf.meta.EntityMetadata; -import org.eclipse.passage.lic.emf.meta.PlainEntityMetadata; -import org.eclipse.passage.lic.licenses.LicensePlanDescriptor; -import org.eclipse.passage.lic.licenses.model.api.LicensePlan; -import org.eclipse.passage.lic.licenses.model.meta.LicensesPackage; - -public final class LicensesClassMetadata implements ClassMetadata { - - private final LicensesPackage meta; - private final Map, EntityMetadata> map; - - public LicensesClassMetadata() { - meta = LicensesPackage.eINSTANCE; - map = new HashMap, EntityMetadata>(); - map.put(LicensePlanDescriptor.class, // - new PlainEntityMetadata(// - meta.getLicensePlan(), // - meta.getLicensePlan_Identifier(), // - meta.getLicensePlan_Name())); - map.put(LicensePlan.class, map.get(LicensePlanDescriptor.class)); - } - - @Override - public Optional find(Class clazz) { - return Optional.ofNullable(map.get(clazz)); - } - -}