From bf026a5a6e0ee4f24aca3ce68657458dfdceb6ab Mon Sep 17 00:00:00 2001 From: Elena Parovyshnaia Date: Sun, 4 Apr 2021 12:55:17 +0300 Subject: [PATCH 1/3] Bug 568195 - [Passage][Operator] unify issued licenses storage Generate model code for Shipments domain Signed-off-by: eparovyshnaya --- .../.classpath | 8 + .../.project | 34 ++ .../.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 | 20 ++ .../about.html | 36 ++ .../build.properties | 22 ++ .../model/shipments.genmodel | 34 ++ .../plugin.properties | 24 ++ .../plugin.xml | 26 ++ .../lic/shipments/model/api/Floating.java | 38 ++ .../shipments/model/api/FloatingLicense.java | 69 ++++ .../lic/shipments/model/api/Personal.java | 38 ++ .../shipments/model/api/PersonalLicense.java | 69 ++++ .../shipments/model/impl/FloatingImpl.java | 162 +++++++++ .../model/impl/FloatingLicenseImpl.java | 235 ++++++++++++ .../shipments/model/impl/PersonalImpl.java | 162 +++++++++ .../model/impl/PersonalLicenseImpl.java | 235 ++++++++++++ .../model/impl/ShipmentsFactoryImpl.java | 140 ++++++++ .../model/impl/ShipmentsPackageImpl.java | 328 +++++++++++++++++ .../model/meta/ShipmentsFactory.java | 74 ++++ .../model/meta/ShipmentsPackage.java | 340 ++++++++++++++++++ .../model/util/ShipmentsAdapterFactory.java | 178 +++++++++ .../shipments/model/util/ShipmentsSwitch.java | 180 ++++++++++ .../src}/.gitkeep | 0 27 files changed, 2732 insertions(+) create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/.classpath create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/.project create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/.settings/org.eclipse.jdt.core.prefs create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/.settings/org.eclipse.jdt.ui.prefs create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/.settings/org.eclipse.pde.ds.annotations.prefs create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/.settings/org.eclipse.pde.prefs create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/META-INF/MANIFEST.MF create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/about.html create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/build.properties create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/model/shipments.genmodel create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/plugin.properties create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/plugin.xml create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Floating.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/FloatingLicense.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Personal.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/PersonalLicense.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingImpl.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingLicenseImpl.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalImpl.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalLicenseImpl.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsFactoryImpl.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsPackageImpl.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsFactory.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsPackage.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsAdapterFactory.java create mode 100644 bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsSwitch.java rename bundles/{org.eclipse.passage.lic.shipments.ecore/model => org.eclipse.passage.lic.shipments.model/src}/.gitkeep (100%) diff --git a/bundles/org.eclipse.passage.lic.shipments.model/.classpath b/bundles/org.eclipse.passage.lic.shipments.model/.classpath new file mode 100644 index 000000000..7745a6c94 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/bundles/org.eclipse.passage.lic.shipments.model/.project b/bundles/org.eclipse.passage.lic.shipments.model/.project new file mode 100644 index 000000000..6db0cbe07 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/.project @@ -0,0 +1,34 @@ + + + org.eclipse.passage.lic.shipments.model + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + 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.shipments.model/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.passage.lic.shipments.model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..ffa3c4b78 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/.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=ignore +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=warning +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.shipments.model/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.passage.lic.shipments.model/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 000000000..15649cf27 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/.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.shipments.model/.settings/org.eclipse.pde.ds.annotations.prefs b/bundles/org.eclipse.passage.lic.shipments.model/.settings/org.eclipse.pde.ds.annotations.prefs new file mode 100644 index 000000000..73a356b6d --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/.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.shipments.model/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.passage.lic.shipments.model/.settings/org.eclipse.pde.prefs new file mode 100644 index 000000000..47bd5bdfc --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/.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.shipments.model/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.shipments.model/META-INF/MANIFEST.MF new file mode 100644 index 000000000..fa49668c4 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/META-INF/MANIFEST.MF @@ -0,0 +1,20 @@ +Manifest-Version: 1.0 +Automatic-Module-Name: org.eclipse.passage.lic.shipments.model +Bundle-ManifestVersion: 2 +Bundle-SymbolicName: org.eclipse.passage.lic.shipments.model;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.emf.ecore;bundle-version="0.0.0";visibility:=reexport, + org.eclipse.passage.lic.emf.meta;bundle-version="0.6.0", + org.eclipse.passage.lic.shipments;bundle-version="0.1.0";visibility:=reexport +Export-Package: org.eclipse.passage.lic.shipments.model.api, + org.eclipse.passage.lic.shipments.model.impl, + org.eclipse.passage.lic.shipments.model.meta, + org.eclipse.passage.lic.shipments.model.util +Bundle-ClassPath: . +Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.shipments.model/about.html b/bundles/org.eclipse.passage.lic.shipments.model/about.html new file mode 100644 index 000000000..164f781a8 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/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.shipments.model/build.properties b/bundles/org.eclipse.passage.lic.shipments.model/build.properties new file mode 100644 index 000000000..105dabaa1 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/build.properties @@ -0,0 +1,22 @@ +############################################################################### +# Copyright (c) 2021 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 +############################################################################### + +source.. = src-gen/,\ + src/ +output.. = target/classes +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties,\ + about.html diff --git a/bundles/org.eclipse.passage.lic.shipments.model/model/shipments.genmodel b/bundles/org.eclipse.passage.lic.shipments.model/model/shipments.genmodel new file mode 100644 index 000000000..98c3e7036 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/model/shipments.genmodel @@ -0,0 +1,34 @@ + + + ../../org.eclipse.passage.lic.shipments.ecore/model/shipments.ecore + + + + + + + + + + + + + + + + + diff --git a/bundles/org.eclipse.passage.lic.shipments.model/plugin.properties b/bundles/org.eclipse.passage.lic.shipments.model/plugin.properties new file mode 100644 index 000000000..bc291166c --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/plugin.properties @@ -0,0 +1,24 @@ +#Properties file for org.eclipse.passage.lic.shipments.model +############################################################################### +# Copyright (c) 2021 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 +############################################################################### + +pluginName = Passage LIC Shipments Model +providerName=Eclipse Passage +Bundle-Copyright = Copyright (c) 2021 ArSysOp.\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\ + diff --git a/bundles/org.eclipse.passage.lic.shipments.model/plugin.xml b/bundles/org.eclipse.passage.lic.shipments.model/plugin.xml new file mode 100644 index 000000000..f3978dc76 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/plugin.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Floating.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Floating.java new file mode 100644 index 000000000..acc17b45c --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Floating.java @@ -0,0 +1,38 @@ +/** + */ +package org.eclipse.passage.lic.shipments.model.api; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Floating'. + * + * + *

+ * The following features are supported: + *

+ * + * + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getFloating() + * @model + * @generated + */ +public interface Floating extends EObject { + /** + * Returns the value of the 'Licenses' containment reference list. + * The list contents are of type {@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense}. + * + * + * @return the value of the 'Licenses' containment reference list. + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getFloating_Licenses() + * @model containment="true" + * @generated + */ + EList getLicenses(); + +} // Floating diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/FloatingLicense.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/FloatingLicense.java new file mode 100644 index 000000000..71a6c7708 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/FloatingLicense.java @@ -0,0 +1,69 @@ +/** + */ +package org.eclipse.passage.lic.shipments.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Floating License'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense#getCompany Company}
  • + *
  • {@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense#getLicense License}
  • + *
+ * + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getFloatingLicense() + * @model + * @generated + */ +public interface FloatingLicense extends EObject { + /** + * Returns the value of the 'Company' attribute. + * + * + * @return the value of the 'Company' attribute. + * @see #setCompany(String) + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getFloatingLicense_Company() + * @model required="true" + * @generated + */ + String getCompany(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense#getCompany Company}' attribute. + * + * + * @param value the new value of the 'Company' attribute. + * @see #getCompany() + * @generated + */ + void setCompany(String value); + + /** + * Returns the value of the 'License' attribute. + * + * + * @return the value of the 'License' attribute. + * @see #setLicense(String) + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getFloatingLicense_License() + * @model required="true" + * @generated + */ + String getLicense(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense#getLicense License}' attribute. + * + * + * @param value the new value of the 'License' attribute. + * @see #getLicense() + * @generated + */ + void setLicense(String value); + +} // FloatingLicense diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Personal.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Personal.java new file mode 100644 index 000000000..502ec3052 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Personal.java @@ -0,0 +1,38 @@ +/** + */ +package org.eclipse.passage.lic.shipments.model.api; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Personal'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.shipments.model.api.Personal#getLicenses Licenses}
  • + *
+ * + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getPersonal() + * @model + * @generated + */ +public interface Personal extends EObject { + /** + * Returns the value of the 'Licenses' containment reference list. + * The list contents are of type {@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense}. + * + * + * @return the value of the 'Licenses' containment reference list. + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getPersonal_Licenses() + * @model containment="true" + * @generated + */ + EList getLicenses(); + +} // Personal diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/PersonalLicense.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/PersonalLicense.java new file mode 100644 index 000000000..759933467 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/PersonalLicense.java @@ -0,0 +1,69 @@ +/** + */ +package org.eclipse.passage.lic.shipments.model.api; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Personal License'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense#getUser User}
  • + *
  • {@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense#getLicense License}
  • + *
+ * + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getPersonalLicense() + * @model + * @generated + */ +public interface PersonalLicense extends EObject { + /** + * Returns the value of the 'User' attribute. + * + * + * @return the value of the 'User' attribute. + * @see #setUser(String) + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getPersonalLicense_User() + * @model required="true" + * @generated + */ + String getUser(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense#getUser User}' attribute. + * + * + * @param value the new value of the 'User' attribute. + * @see #getUser() + * @generated + */ + void setUser(String value); + + /** + * Returns the value of the 'License' attribute. + * + * + * @return the value of the 'License' attribute. + * @see #setLicense(String) + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage#getPersonalLicense_License() + * @model required="true" + * @generated + */ + String getLicense(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense#getLicense License}' attribute. + * + * + * @param value the new value of the 'License' attribute. + * @see #getLicense() + * @generated + */ + void setLicense(String value); + +} // PersonalLicense diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingImpl.java new file mode 100644 index 000000000..f4d333067 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingImpl.java @@ -0,0 +1,162 @@ +/** + */ +package org.eclipse.passage.lic.shipments.model.impl; + +import java.util.Collection; + +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.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.passage.lic.shipments.model.api.Floating; +import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; + +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; + +/** + * + * An implementation of the model object 'Floating'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.shipments.model.impl.FloatingImpl#getLicenses Licenses}
  • + *
+ * + * @generated + */ +public class FloatingImpl extends MinimalEObjectImpl.Container implements Floating { + /** + * The cached value of the '{@link #getLicenses() Licenses}' containment reference list. + * + * + * @see #getLicenses() + * @generated + * @ordered + */ + protected EList licenses; + + /** + * + * + * @generated + */ + protected FloatingImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ShipmentsPackage.eINSTANCE.getFloating(); + } + + /** + * + * + * @generated + */ + @Override + public EList getLicenses() { + if (licenses == null) { + licenses = new EObjectContainmentEList(FloatingLicense.class, this, + ShipmentsPackage.FLOATING__LICENSES); + } + return licenses; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ShipmentsPackage.FLOATING__LICENSES: + return ((InternalEList) getLicenses()).basicRemove(otherEnd, msgs); + default: + return super.eInverseRemove(otherEnd, featureID, msgs); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ShipmentsPackage.FLOATING__LICENSES: + return getLicenses(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ShipmentsPackage.FLOATING__LICENSES: + getLicenses().clear(); + getLicenses().addAll((Collection) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ShipmentsPackage.FLOATING__LICENSES: + getLicenses().clear(); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ShipmentsPackage.FLOATING__LICENSES: + return licenses != null && !licenses.isEmpty(); + default: + return super.eIsSet(featureID); + } + } + +} //FloatingImpl diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingLicenseImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingLicenseImpl.java new file mode 100644 index 000000000..e83fcac6a --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingLicenseImpl.java @@ -0,0 +1,235 @@ +/** + */ +package org.eclipse.passage.lic.shipments.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.shipments.model.api.FloatingLicense; + +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; + +/** + * + * An implementation of the model object 'Floating License'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.shipments.model.impl.FloatingLicenseImpl#getCompany Company}
  • + *
  • {@link org.eclipse.passage.lic.shipments.model.impl.FloatingLicenseImpl#getLicense License}
  • + *
+ * + * @generated + */ +public class FloatingLicenseImpl extends MinimalEObjectImpl.Container implements FloatingLicense { + /** + * 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 #getLicense() License}' attribute. + * + * + * @see #getLicense() + * @generated + * @ordered + */ + protected static final String LICENSE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLicense() License}' attribute. + * + * + * @see #getLicense() + * @generated + * @ordered + */ + private String license = LICENSE_EDEFAULT; + + /** + * + * + * @generated + */ + protected FloatingLicenseImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ShipmentsPackage.eINSTANCE.getFloatingLicense(); + } + + /** + * + * + * @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, ShipmentsPackage.FLOATING_LICENSE__COMPANY, + oldCompany, company)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getLicense() { + return license; + } + + /** + * + * + * @generated + */ + @Override + public void setLicense(String newLicense) { + String oldLicense = license; + license = newLicense; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ShipmentsPackage.FLOATING_LICENSE__LICENSE, + oldLicense, license)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ShipmentsPackage.FLOATING_LICENSE__COMPANY: + return getCompany(); + case ShipmentsPackage.FLOATING_LICENSE__LICENSE: + return getLicense(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ShipmentsPackage.FLOATING_LICENSE__COMPANY: + setCompany((String) newValue); + return; + case ShipmentsPackage.FLOATING_LICENSE__LICENSE: + setLicense((String) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ShipmentsPackage.FLOATING_LICENSE__COMPANY: + setCompany(COMPANY_EDEFAULT); + return; + case ShipmentsPackage.FLOATING_LICENSE__LICENSE: + setLicense(LICENSE_EDEFAULT); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ShipmentsPackage.FLOATING_LICENSE__COMPANY: + return !Objects.equals(COMPANY_EDEFAULT, company); + case ShipmentsPackage.FLOATING_LICENSE__LICENSE: + return !Objects.equals(LICENSE_EDEFAULT, license); + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (company: "); //$NON-NLS-1$ + result.append(company); + result.append(", license: "); //$NON-NLS-1$ + result.append(license); + result.append(')'); + return result.toString(); + } + +} //FloatingLicenseImpl diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalImpl.java new file mode 100644 index 000000000..8d73531b9 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalImpl.java @@ -0,0 +1,162 @@ +/** + */ +package org.eclipse.passage.lic.shipments.model.impl; + +import java.util.Collection; + +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.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.passage.lic.shipments.model.api.Personal; +import org.eclipse.passage.lic.shipments.model.api.PersonalLicense; + +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; + +/** + * + * An implementation of the model object 'Personal'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.shipments.model.impl.PersonalImpl#getLicenses Licenses}
  • + *
+ * + * @generated + */ +public class PersonalImpl extends MinimalEObjectImpl.Container implements Personal { + /** + * The cached value of the '{@link #getLicenses() Licenses}' containment reference list. + * + * + * @see #getLicenses() + * @generated + * @ordered + */ + protected EList licenses; + + /** + * + * + * @generated + */ + protected PersonalImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ShipmentsPackage.eINSTANCE.getPersonal(); + } + + /** + * + * + * @generated + */ + @Override + public EList getLicenses() { + if (licenses == null) { + licenses = new EObjectContainmentEList(PersonalLicense.class, this, + ShipmentsPackage.PERSONAL__LICENSES); + } + return licenses; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ShipmentsPackage.PERSONAL__LICENSES: + return ((InternalEList) getLicenses()).basicRemove(otherEnd, msgs); + default: + return super.eInverseRemove(otherEnd, featureID, msgs); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ShipmentsPackage.PERSONAL__LICENSES: + return getLicenses(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ShipmentsPackage.PERSONAL__LICENSES: + getLicenses().clear(); + getLicenses().addAll((Collection) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ShipmentsPackage.PERSONAL__LICENSES: + getLicenses().clear(); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ShipmentsPackage.PERSONAL__LICENSES: + return licenses != null && !licenses.isEmpty(); + default: + return super.eIsSet(featureID); + } + } + +} //PersonalImpl diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalLicenseImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalLicenseImpl.java new file mode 100644 index 000000000..ae4c943d0 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalLicenseImpl.java @@ -0,0 +1,235 @@ +/** + */ +package org.eclipse.passage.lic.shipments.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.shipments.model.api.PersonalLicense; + +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; + +/** + * + * An implementation of the model object 'Personal License'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.shipments.model.impl.PersonalLicenseImpl#getUser User}
  • + *
  • {@link org.eclipse.passage.lic.shipments.model.impl.PersonalLicenseImpl#getLicense License}
  • + *
+ * + * @generated + */ +public class PersonalLicenseImpl extends MinimalEObjectImpl.Container implements PersonalLicense { + /** + * 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 default value of the '{@link #getLicense() License}' attribute. + * + * + * @see #getLicense() + * @generated + * @ordered + */ + protected static final String LICENSE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLicense() License}' attribute. + * + * + * @see #getLicense() + * @generated + * @ordered + */ + private String license = LICENSE_EDEFAULT; + + /** + * + * + * @generated + */ + protected PersonalLicenseImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ShipmentsPackage.eINSTANCE.getPersonalLicense(); + } + + /** + * + * + * @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, ShipmentsPackage.PERSONAL_LICENSE__USER, oldUser, + user)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getLicense() { + return license; + } + + /** + * + * + * @generated + */ + @Override + public void setLicense(String newLicense) { + String oldLicense = license; + license = newLicense; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, ShipmentsPackage.PERSONAL_LICENSE__LICENSE, + oldLicense, license)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ShipmentsPackage.PERSONAL_LICENSE__USER: + return getUser(); + case ShipmentsPackage.PERSONAL_LICENSE__LICENSE: + return getLicense(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ShipmentsPackage.PERSONAL_LICENSE__USER: + setUser((String) newValue); + return; + case ShipmentsPackage.PERSONAL_LICENSE__LICENSE: + setLicense((String) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ShipmentsPackage.PERSONAL_LICENSE__USER: + setUser(USER_EDEFAULT); + return; + case ShipmentsPackage.PERSONAL_LICENSE__LICENSE: + setLicense(LICENSE_EDEFAULT); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ShipmentsPackage.PERSONAL_LICENSE__USER: + return !Objects.equals(USER_EDEFAULT, user); + case ShipmentsPackage.PERSONAL_LICENSE__LICENSE: + return !Objects.equals(LICENSE_EDEFAULT, license); + 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(", license: "); //$NON-NLS-1$ + result.append(license); + result.append(')'); + return result.toString(); + } + +} //PersonalLicenseImpl diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsFactoryImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsFactoryImpl.java new file mode 100644 index 000000000..1ee9dd041 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsFactoryImpl.java @@ -0,0 +1,140 @@ +/** + */ +package org.eclipse.passage.lic.shipments.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.shipments.model.api.*; + +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsFactory; +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class ShipmentsFactoryImpl extends EFactoryImpl implements ShipmentsFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static ShipmentsFactory init() { + try { + ShipmentsFactory theShipmentsFactory = (ShipmentsFactory) EPackage.Registry.INSTANCE + .getEFactory(ShipmentsPackage.eNS_URI); + if (theShipmentsFactory != null) { + return theShipmentsFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ShipmentsFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public ShipmentsFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ShipmentsPackage.PERSONAL: + return createPersonal(); + case ShipmentsPackage.FLOATING: + return createFloating(); + case ShipmentsPackage.PERSONAL_LICENSE: + return createPersonalLicense(); + case ShipmentsPackage.FLOATING_LICENSE: + return createFloatingLicense(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ + } + } + + /** + * + * + * @generated + */ + @Override + public Personal createPersonal() { + PersonalImpl personal = new PersonalImpl(); + return personal; + } + + /** + * + * + * @generated + */ + @Override + public Floating createFloating() { + FloatingImpl floating = new FloatingImpl(); + return floating; + } + + /** + * + * + * @generated + */ + @Override + public PersonalLicense createPersonalLicense() { + PersonalLicenseImpl personalLicense = new PersonalLicenseImpl(); + return personalLicense; + } + + /** + * + * + * @generated + */ + @Override + public FloatingLicense createFloatingLicense() { + FloatingLicenseImpl floatingLicense = new FloatingLicenseImpl(); + return floatingLicense; + } + + /** + * + * + * @generated + */ + @Override + public ShipmentsPackage getShipmentsPackage() { + return (ShipmentsPackage) getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static ShipmentsPackage getPackage() { + return ShipmentsPackage.eINSTANCE; + } + +} //ShipmentsFactoryImpl diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsPackageImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsPackageImpl.java new file mode 100644 index 000000000..a22c28ad8 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsPackageImpl.java @@ -0,0 +1,328 @@ +/** + */ +package org.eclipse.passage.lic.shipments.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.shipments.model.api.Floating; +import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; +import org.eclipse.passage.lic.shipments.model.api.Personal; +import org.eclipse.passage.lic.shipments.model.api.PersonalLicense; + +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsFactory; +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class ShipmentsPackageImpl extends EPackageImpl implements ShipmentsPackage { + /** + * + * + * @generated + */ + private EClass personalEClass = null; + + /** + * + * + * @generated + */ + private EClass floatingEClass = null; + + /** + * + * + * @generated + */ + private EClass personalLicenseEClass = null; + + /** + * + * + * @generated + */ + private EClass floatingLicenseEClass = 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.shipments.model.meta.ShipmentsPackage#eNS_URI + * @see #init() + * @generated + */ + private ShipmentsPackageImpl() { + super(eNS_URI, ShipmentsFactory.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 ShipmentsPackage#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 ShipmentsPackage init() { + if (isInited) + return (ShipmentsPackage) EPackage.Registry.INSTANCE.getEPackage(ShipmentsPackage.eNS_URI); + + // Obtain or create and register package + Object registeredShipmentsPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + ShipmentsPackageImpl theShipmentsPackage = registeredShipmentsPackage instanceof ShipmentsPackageImpl + ? (ShipmentsPackageImpl) registeredShipmentsPackage + : new ShipmentsPackageImpl(); + + isInited = true; + + // Create package meta-data objects + theShipmentsPackage.createPackageContents(); + + // Initialize created meta-data + theShipmentsPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theShipmentsPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ShipmentsPackage.eNS_URI, theShipmentsPackage); + return theShipmentsPackage; + } + + /** + * + * + * @generated + */ + @Override + public EClass getPersonal() { + return personalEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getPersonal_Licenses() { + return (EReference) personalEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getFloating() { + return floatingEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getFloating_Licenses() { + return (EReference) floatingEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getPersonalLicense() { + return personalLicenseEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getPersonalLicense_User() { + return (EAttribute) personalLicenseEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getPersonalLicense_License() { + return (EAttribute) personalLicenseEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EClass getFloatingLicense() { + return floatingLicenseEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getFloatingLicense_Company() { + return (EAttribute) floatingLicenseEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getFloatingLicense_License() { + return (EAttribute) floatingLicenseEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public ShipmentsFactory getShipmentsFactory() { + return (ShipmentsFactory) 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 + personalEClass = createEClass(PERSONAL); + createEReference(personalEClass, PERSONAL__LICENSES); + + floatingEClass = createEClass(FLOATING); + createEReference(floatingEClass, FLOATING__LICENSES); + + personalLicenseEClass = createEClass(PERSONAL_LICENSE); + createEAttribute(personalLicenseEClass, PERSONAL_LICENSE__USER); + createEAttribute(personalLicenseEClass, PERSONAL_LICENSE__LICENSE); + + floatingLicenseEClass = createEClass(FLOATING_LICENSE); + createEAttribute(floatingLicenseEClass, FLOATING_LICENSE__COMPANY); + createEAttribute(floatingLicenseEClass, FLOATING_LICENSE__LICENSE); + } + + /** + * + * + * @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 + + // Initialize classes, features, and operations; add parameters + initEClass(personalEClass, Personal.class, "Personal", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEReference(getPersonal_Licenses(), this.getPersonalLicense(), null, "licenses", null, 0, -1, Personal.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(floatingEClass, Floating.class, "Floating", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEReference(getFloating_Licenses(), this.getFloatingLicense(), null, "licenses", null, 0, -1, Floating.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(personalLicenseEClass, PersonalLicense.class, "PersonalLicense", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPersonalLicense_User(), ecorePackage.getEString(), "user", null, 1, 1, PersonalLicense.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPersonalLicense_License(), ecorePackage.getEString(), "license", null, 1, 1, //$NON-NLS-1$ + PersonalLicense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(floatingLicenseEClass, FloatingLicense.class, "FloatingLicense", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFloatingLicense_Company(), ecorePackage.getEString(), "company", null, 1, 1, //$NON-NLS-1$ + FloatingLicense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingLicense_License(), ecorePackage.getEString(), "license", null, 1, 1, //$NON-NLS-1$ + FloatingLicense.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //ShipmentsPackageImpl diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsFactory.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsFactory.java new file mode 100644 index 000000000..4fee5e8ed --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsFactory.java @@ -0,0 +1,74 @@ +/** + */ +package org.eclipse.passage.lic.shipments.model.meta; + +import org.eclipse.emf.ecore.EFactory; + +import org.eclipse.passage.lic.shipments.model.api.Floating; +import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; +import org.eclipse.passage.lic.shipments.model.api.Personal; +import org.eclipse.passage.lic.shipments.model.api.PersonalLicense; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage + * @generated + */ +public interface ShipmentsFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + ShipmentsFactory eINSTANCE = org.eclipse.passage.lic.shipments.model.impl.ShipmentsFactoryImpl.init(); + + /** + * Returns a new object of class 'Personal'. + * + * + * @return a new object of class 'Personal'. + * @generated + */ + Personal createPersonal(); + + /** + * Returns a new object of class 'Floating'. + * + * + * @return a new object of class 'Floating'. + * @generated + */ + Floating createFloating(); + + /** + * Returns a new object of class 'Personal License'. + * + * + * @return a new object of class 'Personal License'. + * @generated + */ + PersonalLicense createPersonalLicense(); + + /** + * Returns a new object of class 'Floating License'. + * + * + * @return a new object of class 'Floating License'. + * @generated + */ + FloatingLicense createFloatingLicense(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + ShipmentsPackage getShipmentsPackage(); + +} //ShipmentsFactory diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsPackage.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsPackage.java new file mode 100644 index 000000000..d22727f1d --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsPackage.java @@ -0,0 +1,340 @@ +/** + */ +package org.eclipse.passage.lic.shipments.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.shipments.model.meta.ShipmentsFactory + * @model kind="package" + * @generated + */ +public interface ShipmentsPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "shipments"; //$NON-NLS-1$ + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.eclipse.org/passage/lic/shipments/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 + */ + ShipmentsPackage eINSTANCE = org.eclipse.passage.lic.shipments.model.impl.ShipmentsPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.shipments.model.impl.PersonalImpl Personal}' class. + * + * + * @see org.eclipse.passage.lic.shipments.model.impl.PersonalImpl + * @see org.eclipse.passage.lic.shipments.model.impl.ShipmentsPackageImpl#getPersonal() + * @generated + */ + int PERSONAL = 0; + + /** + * The feature id for the 'Licenses' containment reference list. + * + * + * @generated + * @ordered + */ + int PERSONAL__LICENSES = 0; + + /** + * The number of structural features of the 'Personal' class. + * + * + * @generated + * @ordered + */ + int PERSONAL_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Personal' class. + * + * + * @generated + * @ordered + */ + int PERSONAL_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.shipments.model.impl.FloatingImpl Floating}' class. + * + * + * @see org.eclipse.passage.lic.shipments.model.impl.FloatingImpl + * @see org.eclipse.passage.lic.shipments.model.impl.ShipmentsPackageImpl#getFloating() + * @generated + */ + int FLOATING = 1; + + /** + * The feature id for the 'Licenses' containment reference list. + * + * + * @generated + * @ordered + */ + int FLOATING__LICENSES = 0; + + /** + * The number of structural features of the 'Floating' class. + * + * + * @generated + * @ordered + */ + int FLOATING_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Floating' class. + * + * + * @generated + * @ordered + */ + int FLOATING_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.shipments.model.impl.PersonalLicenseImpl Personal License}' class. + * + * + * @see org.eclipse.passage.lic.shipments.model.impl.PersonalLicenseImpl + * @see org.eclipse.passage.lic.shipments.model.impl.ShipmentsPackageImpl#getPersonalLicense() + * @generated + */ + int PERSONAL_LICENSE = 2; + + /** + * The feature id for the 'User' attribute. + * + * + * @generated + * @ordered + */ + int PERSONAL_LICENSE__USER = 0; + + /** + * The feature id for the 'License' attribute. + * + * + * @generated + * @ordered + */ + int PERSONAL_LICENSE__LICENSE = 1; + + /** + * The number of structural features of the 'Personal License' class. + * + * + * @generated + * @ordered + */ + int PERSONAL_LICENSE_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Personal License' class. + * + * + * @generated + * @ordered + */ + int PERSONAL_LICENSE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.passage.lic.shipments.model.impl.FloatingLicenseImpl Floating License}' class. + * + * + * @see org.eclipse.passage.lic.shipments.model.impl.FloatingLicenseImpl + * @see org.eclipse.passage.lic.shipments.model.impl.ShipmentsPackageImpl#getFloatingLicense() + * @generated + */ + int FLOATING_LICENSE = 3; + + /** + * The feature id for the 'Company' attribute. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE__COMPANY = 0; + + /** + * The feature id for the 'License' attribute. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE__LICENSE = 1; + + /** + * The number of structural features of the 'Floating License' class. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Floating License' class. + * + * + * @generated + * @ordered + */ + int FLOATING_LICENSE_OPERATION_COUNT = 0; + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.shipments.model.api.Personal Personal}'. + * + * + * @return the meta object for class 'Personal'. + * @see org.eclipse.passage.lic.shipments.model.api.Personal + * @generated + */ + EClass getPersonal(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.shipments.model.api.Personal#getLicenses Licenses}'. + * + * + * @return the meta object for the containment reference list 'Licenses'. + * @see org.eclipse.passage.lic.shipments.model.api.Personal#getLicenses() + * @see #getPersonal() + * @generated + */ + EReference getPersonal_Licenses(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.shipments.model.api.Floating Floating}'. + * + * + * @return the meta object for class 'Floating'. + * @see org.eclipse.passage.lic.shipments.model.api.Floating + * @generated + */ + EClass getFloating(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.shipments.model.api.Floating#getLicenses Licenses}'. + * + * + * @return the meta object for the containment reference list 'Licenses'. + * @see org.eclipse.passage.lic.shipments.model.api.Floating#getLicenses() + * @see #getFloating() + * @generated + */ + EReference getFloating_Licenses(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense Personal License}'. + * + * + * @return the meta object for class 'Personal License'. + * @see org.eclipse.passage.lic.shipments.model.api.PersonalLicense + * @generated + */ + EClass getPersonalLicense(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense#getUser User}'. + * + * + * @return the meta object for the attribute 'User'. + * @see org.eclipse.passage.lic.shipments.model.api.PersonalLicense#getUser() + * @see #getPersonalLicense() + * @generated + */ + EAttribute getPersonalLicense_User(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense#getLicense License}'. + * + * + * @return the meta object for the attribute 'License'. + * @see org.eclipse.passage.lic.shipments.model.api.PersonalLicense#getLicense() + * @see #getPersonalLicense() + * @generated + */ + EAttribute getPersonalLicense_License(); + + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense Floating License}'. + * + * + * @return the meta object for class 'Floating License'. + * @see org.eclipse.passage.lic.shipments.model.api.FloatingLicense + * @generated + */ + EClass getFloatingLicense(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense#getCompany Company}'. + * + * + * @return the meta object for the attribute 'Company'. + * @see org.eclipse.passage.lic.shipments.model.api.FloatingLicense#getCompany() + * @see #getFloatingLicense() + * @generated + */ + EAttribute getFloatingLicense_Company(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense#getLicense License}'. + * + * + * @return the meta object for the attribute 'License'. + * @see org.eclipse.passage.lic.shipments.model.api.FloatingLicense#getLicense() + * @see #getFloatingLicense() + * @generated + */ + EAttribute getFloatingLicense_License(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + ShipmentsFactory getShipmentsFactory(); + +} //ShipmentsPackage diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsAdapterFactory.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsAdapterFactory.java new file mode 100644 index 000000000..39a4583c4 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsAdapterFactory.java @@ -0,0 +1,178 @@ +/** + */ +package org.eclipse.passage.lic.shipments.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.shipments.model.api.*; + +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage + * @generated + */ +public class ShipmentsAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static ShipmentsPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public ShipmentsAdapterFactory() { + if (modelPackage == null) { + modelPackage = ShipmentsPackage.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 ShipmentsSwitch modelSwitch = new ShipmentsSwitch() { + @Override + public Adapter casePersonal(Personal object) { + return createPersonalAdapter(); + } + + @Override + public Adapter caseFloating(Floating object) { + return createFloatingAdapter(); + } + + @Override + public Adapter casePersonalLicense(PersonalLicense object) { + return createPersonalLicenseAdapter(); + } + + @Override + public Adapter caseFloatingLicense(FloatingLicense object) { + return createFloatingLicenseAdapter(); + } + + @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.shipments.model.api.Personal Personal}'. + * + * 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.shipments.model.api.Personal + * @generated + */ + public Adapter createPersonalAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.shipments.model.api.Floating Floating}'. + * + * 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.shipments.model.api.Floating + * @generated + */ + public Adapter createFloatingAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.shipments.model.api.PersonalLicense Personal License}'. + * + * 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.shipments.model.api.PersonalLicense + * @generated + */ + public Adapter createPersonalLicenseAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.shipments.model.api.FloatingLicense Floating License}'. + * + * 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.shipments.model.api.FloatingLicense + * @generated + */ + public Adapter createFloatingLicenseAdapter() { + 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; + } + +} //ShipmentsAdapterFactory diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsSwitch.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsSwitch.java new file mode 100644 index 000000000..8050f0f11 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsSwitch.java @@ -0,0 +1,180 @@ +/** + */ +package org.eclipse.passage.lic.shipments.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.shipments.model.api.*; + +import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; + +/** + * + * 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.shipments.model.meta.ShipmentsPackage + * @generated + */ +public class ShipmentsSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static ShipmentsPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public ShipmentsSwitch() { + if (modelPackage == null) { + modelPackage = ShipmentsPackage.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 ShipmentsPackage.PERSONAL: { + Personal personal = (Personal) theEObject; + T result = casePersonal(personal); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case ShipmentsPackage.FLOATING: { + Floating floating = (Floating) theEObject; + T result = caseFloating(floating); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case ShipmentsPackage.PERSONAL_LICENSE: { + PersonalLicense personalLicense = (PersonalLicense) theEObject; + T result = casePersonalLicense(personalLicense); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case ShipmentsPackage.FLOATING_LICENSE: { + FloatingLicense floatingLicense = (FloatingLicense) theEObject; + T result = caseFloatingLicense(floatingLicense); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Personal'. + * + * 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 'Personal'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePersonal(Personal object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Floating'. + * + * 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 'Floating'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFloating(Floating object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Personal License'. + * + * 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 'Personal License'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePersonalLicense(PersonalLicense object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Floating License'. + * + * 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 'Floating License'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFloatingLicense(FloatingLicense 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; + } + +} //ShipmentsSwitch diff --git a/bundles/org.eclipse.passage.lic.shipments.ecore/model/.gitkeep b/bundles/org.eclipse.passage.lic.shipments.model/src/.gitkeep similarity index 100% rename from bundles/org.eclipse.passage.lic.shipments.ecore/model/.gitkeep rename to bundles/org.eclipse.passage.lic.shipments.model/src/.gitkeep From 2deebc64c319706869e8b62da92060d017bd8e79 Mon Sep 17 00:00:00 2001 From: Elena Parovyshnaia Date: Sun, 4 Apr 2021 12:56:04 +0300 Subject: [PATCH 2/3] Bug 568195 - [Passage][Operator] unify issued licenses storage Include `shipments.model` bundle into `lic` aggregator and `lic.shipments` feature Signed-off-by: eparovyshnaya --- .../org.eclipse.passage.lic.shipments.feature/feature.xml | 4 ++-- releng/org.eclipse.passage.lic.aggregator/pom.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/org.eclipse.passage.lic.shipments.feature/feature.xml b/features/org.eclipse.passage.lic.shipments.feature/feature.xml index 4955cfa64..96376157d 100644 --- a/features/org.eclipse.passage.lic.shipments.feature/feature.xml +++ b/features/org.eclipse.passage.lic.shipments.feature/feature.xml @@ -52,12 +52,12 @@ version="0.0.0" unpack="false"/> - + unpack="false"/> ../../features/org.eclipse.passage.lic.shipments.feature From 05b14faa8df82cd4097be1c5a292817c95a9c456 Mon Sep 17 00:00:00 2001 From: Elena Parovyshnaia Date: Sun, 4 Apr 2021 14:26:50 +0300 Subject: [PATCH 3/3] Bug 568195 - [Passage][Operator] unify issued licenses storage Add copyright headers to generated code Signed-off-by: eparovyshnaya --- .../lic/shipments/model/api/Floating.java | 15 +++++++++--- .../shipments/model/api/FloatingLicense.java | 14 +++++++++-- .../lic/shipments/model/api/Personal.java | 15 +++++++++--- .../shipments/model/api/PersonalLicense.java | 14 +++++++++-- .../shipments/model/impl/FloatingImpl.java | 20 +++++++++------- .../model/impl/FloatingLicenseImpl.java | 18 ++++++++++----- .../shipments/model/impl/PersonalImpl.java | 20 +++++++++------- .../model/impl/PersonalLicenseImpl.java | 18 ++++++++++----- .../model/impl/ShipmentsFactoryImpl.java | 23 +++++++++++++------ .../model/impl/ShipmentsPackageImpl.java | 17 ++++++++++---- .../model/meta/ShipmentsFactory.java | 15 +++++++++--- .../model/meta/ShipmentsPackage.java | 14 +++++++++-- .../model/util/ShipmentsAdapterFactory.java | 23 +++++++++++++------ .../shipments/model/util/ShipmentsSwitch.java | 22 +++++++++++++----- 14 files changed, 180 insertions(+), 68 deletions(-) diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Floating.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Floating.java index acc17b45c..6e1f48534 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Floating.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Floating.java @@ -1,9 +1,18 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.model.api; import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EObject; /** diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/FloatingLicense.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/FloatingLicense.java index 71a6c7708..2468137d2 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/FloatingLicense.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/FloatingLicense.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.model.api; import org.eclipse.emf.ecore.EObject; diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Personal.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Personal.java index 502ec3052..aad51abd5 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Personal.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/Personal.java @@ -1,9 +1,18 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.model.api; import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EObject; /** diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/PersonalLicense.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/PersonalLicense.java index 759933467..35a03555b 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/PersonalLicense.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/api/PersonalLicense.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.model.api; import org.eclipse.emf.ecore.EObject; diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingImpl.java index f4d333067..9f06653c4 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingImpl.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingImpl.java @@ -1,24 +1,28 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.model.impl; import java.util.Collection; 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.MinimalEObjectImpl; - import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; - import org.eclipse.passage.lic.shipments.model.api.Floating; import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; - import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; /** diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingLicenseImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingLicenseImpl.java index e83fcac6a..ad77d2b58 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingLicenseImpl.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/FloatingLicenseImpl.java @@ -1,18 +1,24 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.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.shipments.model.api.FloatingLicense; - import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; /** diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalImpl.java index 8d73531b9..13b531e87 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalImpl.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalImpl.java @@ -1,24 +1,28 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.model.impl; import java.util.Collection; 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.MinimalEObjectImpl; - import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; - import org.eclipse.passage.lic.shipments.model.api.Personal; import org.eclipse.passage.lic.shipments.model.api.PersonalLicense; - import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; /** diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalLicenseImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalLicenseImpl.java index ae4c943d0..edcf11015 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalLicenseImpl.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/PersonalLicenseImpl.java @@ -1,18 +1,24 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.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.shipments.model.api.PersonalLicense; - import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; /** diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsFactoryImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsFactoryImpl.java index 1ee9dd041..0a25a8a0b 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsFactoryImpl.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsFactoryImpl.java @@ -1,17 +1,26 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.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.shipments.model.api.*; - +import org.eclipse.passage.lic.shipments.model.api.Floating; +import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; +import org.eclipse.passage.lic.shipments.model.api.Personal; +import org.eclipse.passage.lic.shipments.model.api.PersonalLicense; import org.eclipse.passage.lic.shipments.model.meta.ShipmentsFactory; import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsPackageImpl.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsPackageImpl.java index a22c28ad8..7496191fb 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsPackageImpl.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/impl/ShipmentsPackageImpl.java @@ -1,19 +1,26 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.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.shipments.model.api.Floating; import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; import org.eclipse.passage.lic.shipments.model.api.Personal; import org.eclipse.passage.lic.shipments.model.api.PersonalLicense; - import org.eclipse.passage.lic.shipments.model.meta.ShipmentsFactory; import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsFactory.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsFactory.java index 4fee5e8ed..c596f0945 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsFactory.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsFactory.java @@ -1,9 +1,18 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.model.meta; import org.eclipse.emf.ecore.EFactory; - import org.eclipse.passage.lic.shipments.model.api.Floating; import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; import org.eclipse.passage.lic.shipments.model.api.Personal; diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsPackage.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsPackage.java index d22727f1d..4f0857907 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsPackage.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/meta/ShipmentsPackage.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.model.meta; import org.eclipse.emf.ecore.EAttribute; diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsAdapterFactory.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsAdapterFactory.java index 39a4583c4..8808d7091 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsAdapterFactory.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsAdapterFactory.java @@ -1,16 +1,25 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.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.shipments.model.api.*; - +import org.eclipse.passage.lic.shipments.model.api.Floating; +import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; +import org.eclipse.passage.lic.shipments.model.api.Personal; +import org.eclipse.passage.lic.shipments.model.api.PersonalLicense; import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; /** diff --git a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsSwitch.java b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsSwitch.java index 8050f0f11..00a7d5baa 100644 --- a/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsSwitch.java +++ b/bundles/org.eclipse.passage.lic.shipments.model/src-gen/org/eclipse/passage/lic/shipments/model/util/ShipmentsSwitch.java @@ -1,14 +1,24 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2021 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.shipments.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.shipments.model.api.*; - +import org.eclipse.passage.lic.shipments.model.api.Floating; +import org.eclipse.passage.lic.shipments.model.api.FloatingLicense; +import org.eclipse.passage.lic.shipments.model.api.Personal; +import org.eclipse.passage.lic.shipments.model.api.PersonalLicense; import org.eclipse.passage.lic.shipments.model.meta.ShipmentsPackage; /**