From cf4902f0fd6d2706d09f03485026955bd36db54e Mon Sep 17 00:00:00 2001 From: eparovyshnaya Date: Wed, 11 Nov 2020 13:50:21 +0300 Subject: [PATCH 1/2] Bug 568711 Design model for grant acquisition GrantAquisition class is identified, binds FeatureGrant, User and actual acquisition date Signed-off-by: eparovyshnaya --- .../model/floating.ecore | 10 + .../plugin.properties | 6 + .../FloatingItemProviderAdapterFactory.java | 25 ++ .../GrantAcqisitionItemProvider.java | 219 ++++++++++ .../META-INF/MANIFEST.MF | 3 +- .../model/floating.genmodel | 7 + .../floating/model/api/GrantAcqisition.java | 140 ++++++ .../model/impl/FloatingFactoryImpl.java | 13 + .../model/impl/FloatingPackageImpl.java | 92 ++++ .../model/impl/GrantAcqisitionImpl.java | 410 ++++++++++++++++++ .../floating/model/meta/FloatingFactory.java | 10 + .../floating/model/meta/FloatingPackage.java | 138 ++++++ .../model/util/FloatingAdapterFactory.java | 19 + .../floating/model/util/FloatingSwitch.java | 22 + .../src/.gitkeep | 0 15 files changed, 1113 insertions(+), 1 deletion(-) create mode 100644 bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/GrantAcqisitionItemProvider.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/GrantAcqisition.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/GrantAcqisitionImpl.java create mode 100644 bundles/org.eclipse.passage.lic.floating.model/src/.gitkeep diff --git a/bundles/org.eclipse.passage.lic.floating.ecore/model/floating.ecore b/bundles/org.eclipse.passage.lic.floating.ecore/model/floating.ecore index f6c32bd20..06c318886 100644 --- a/bundles/org.eclipse.passage.lic.floating.ecore/model/floating.ecore +++ b/bundles/org.eclipse.passage.lic.floating.ecore/model/floating.ecore @@ -87,4 +87,14 @@ + + + + + + + diff --git a/bundles/org.eclipse.passage.lic.floating.edit/plugin.properties b/bundles/org.eclipse.passage.lic.floating.edit/plugin.properties index 042388472..4e89ddfc9 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/plugin.properties +++ b/bundles/org.eclipse.passage.lic.floating.edit/plugin.properties @@ -87,3 +87,9 @@ _UI_FloatingLicenseAccess_originLicensePack_feature = Origin License Pack _UI_FloatingServerConnection_ip_feature = Ip _UI_FloatingServerConnection_port_feature = Port _UI_FloatingServerConnection_authentication_feature = Authentication +_UI_GrantAcqisition_type = Grant Acqisition +_UI_GrantAcqisition_identifier_feature = Identifier +_UI_GrantAcqisition_feature_feature = Feature +_UI_GrantAcqisition_grant_feature = Grant +_UI_GrantAcqisition_user_feature = User +_UI_GrantAcqisition_created_feature = Created diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java index e5251d0b2..9a7e1d667 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/FloatingItemProviderAdapterFactory.java @@ -333,6 +333,29 @@ public Adapter createFloatingServerConnectionAdapter() { return floatingServerConnectionItemProvider; } + /** + * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition} instances. + * + * + * @generated + */ + protected GrantAcqisitionItemProvider grantAcqisitionItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition}. + * + * + * @generated + */ + @Override + public Adapter createGrantAcqisitionAdapter() { + if (grantAcqisitionItemProvider == null) { + grantAcqisitionItemProvider = new GrantAcqisitionItemProvider(this); + } + + return grantAcqisitionItemProvider; + } + /** * This returns the root adapter factory that contains this factory. * @@ -460,6 +483,8 @@ public void dispose() { floatingLicenseAccessItemProvider.dispose(); if (floatingServerConnectionItemProvider != null) floatingServerConnectionItemProvider.dispose(); + if (grantAcqisitionItemProvider != null) + grantAcqisitionItemProvider.dispose(); } } diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/GrantAcqisitionItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/GrantAcqisitionItemProvider.java new file mode 100644 index 000000000..3241f57b2 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/GrantAcqisitionItemProvider.java @@ -0,0 +1,219 @@ +/** + */ +package org.eclipse.passage.lic.floating.edit.providers; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; +import org.eclipse.emf.edit.provider.IItemLabelProvider; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.IItemPropertySource; +import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; +import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemProviderAdapter; +import org.eclipse.emf.edit.provider.ViewerNotification; + +import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; + +import org.eclipse.passage.lic.floating.model.api.GrantAcqisition; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition} object. + * + * + * @generated + */ +public class GrantAcqisitionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, + IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public GrantAcqisitionItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addIdentifierPropertyDescriptor(object); + addFeaturePropertyDescriptor(object); + addGrantPropertyDescriptor(object); + addUserPropertyDescriptor(object); + addCreatedPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Identifier feature. + * + * + * @generated + */ + protected void addIdentifierPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_GrantAcqisition_identifier_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_GrantAcqisition_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_GrantAcqisition_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getGrantAcqisition_Identifier(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Feature feature. + * + * + * @generated + */ + protected void addFeaturePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_GrantAcqisition_feature_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_GrantAcqisition_feature_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_GrantAcqisition_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getGrantAcqisition_Feature(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Grant feature. + * + * + * @generated + */ + protected void addGrantPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_GrantAcqisition_grant_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_GrantAcqisition_grant_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_GrantAcqisition_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getGrantAcqisition_Grant(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the User feature. + * + * + * @generated + */ + protected void addUserPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_GrantAcqisition_user_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_GrantAcqisition_user_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_GrantAcqisition_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getGrantAcqisition_User(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Created feature. + * + * + * @generated + */ + protected void addCreatedPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_GrantAcqisition_created_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_GrantAcqisition_created_feature", //$NON-NLS-1$//$NON-NLS-2$ + "_UI_GrantAcqisition_type"), //$NON-NLS-1$ + FloatingPackage.eINSTANCE.getGrantAcqisition_Created(), true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((GrantAcqisition) object).getIdentifier(); + return label == null || label.length() == 0 ? getString("_UI_GrantAcqisition_type") : //$NON-NLS-1$ + getString("_UI_GrantAcqisition_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to update any cached + * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(GrantAcqisition.class)) { + case FloatingPackage.GRANT_ACQISITION__IDENTIFIER: + case FloatingPackage.GRANT_ACQISITION__FEATURE: + case FloatingPackage.GRANT_ACQISITION__GRANT: + case FloatingPackage.GRANT_ACQISITION__USER: + case FloatingPackage.GRANT_ACQISITION__CREATED: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + default: + super.notifyChanged(notification); + return; + } + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return FLoatingLicensesEditPlugin.INSTANCE; + } + +} diff --git a/bundles/org.eclipse.passage.lic.floating.model/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.floating.model/META-INF/MANIFEST.MF index 7d8d05332..6ac316929 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.passage.lic.floating.model/META-INF/MANIFEST.MF @@ -26,6 +26,7 @@ Export-Package: org.eclipse.passage.lic.floating.model.api; org.eclipse.passage.loc.licenses.core, org.eclipse.passage.loc.floating.emfforms, org.eclipse.passage.loc.dashboard.ui", - org.eclipse.passage.lic.floating.model.util;x-friends:="org.eclipse.passage.lic.floating.edit" + org.eclipse.passage.lic.floating.model.util; + x-friends:="org.eclipse.passage.lic.floating.edit" Bundle-ClassPath: . Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.floating.model/model/floating.genmodel b/bundles/org.eclipse.passage.lic.floating.model/model/floating.genmodel index 85e47d353..a25d5a638 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/model/floating.genmodel +++ b/bundles/org.eclipse.passage.lic.floating.model/model/floating.genmodel @@ -75,5 +75,12 @@ + + + + + + + diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/GrantAcqisition.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/GrantAcqisition.java new file mode 100644 index 000000000..4dda622b2 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/GrantAcqisition.java @@ -0,0 +1,140 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.api; + +import java.util.Date; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Grant Acqisition'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getFeature Feature}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getGrant Grant}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getUser User}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getCreated Created}
  • + *
+ * + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition() + * @model + * @generated + */ +public interface GrantAcqisition extends EObject { + /** + * Returns the value of the 'Identifier' attribute. + * + * + * @return the value of the 'Identifier' attribute. + * @see #setIdentifier(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_Identifier() + * @model required="true" + * @generated + */ + String getIdentifier(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getIdentifier Identifier}' attribute. + * + * + * @param value the new value of the 'Identifier' attribute. + * @see #getIdentifier() + * @generated + */ + void setIdentifier(String value); + + /** + * Returns the value of the 'Feature' attribute. + * + * + * @return the value of the 'Feature' attribute. + * @see #setFeature(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_Feature() + * @model required="true" + * @generated + */ + String getFeature(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getFeature Feature}' attribute. + * + * + * @param value the new value of the 'Feature' attribute. + * @see #getFeature() + * @generated + */ + void setFeature(String value); + + /** + * Returns the value of the 'Grant' attribute. + * + * + * @return the value of the 'Grant' attribute. + * @see #setGrant(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_Grant() + * @model required="true" + * @generated + */ + String getGrant(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getGrant Grant}' attribute. + * + * + * @param value the new value of the 'Grant' attribute. + * @see #getGrant() + * @generated + */ + void setGrant(String value); + + /** + * Returns the value of the 'User' attribute. + * + * + * @return the value of the 'User' attribute. + * @see #setUser(String) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_User() + * @model required="true" + * @generated + */ + String getUser(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getUser User}' attribute. + * + * + * @param value the new value of the 'User' attribute. + * @see #getUser() + * @generated + */ + void setUser(String value); + + /** + * Returns the value of the 'Created' attribute. + * + * + * @return the value of the 'Created' attribute. + * @see #setCreated(Date) + * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_Created() + * @model required="true" + * @generated + */ + Date getCreated(); + + /** + * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getCreated Created}' attribute. + * + * + * @param value the new value of the 'Created' attribute. + * @see #getCreated() + * @generated + */ + void setCreated(Date value); + +} // GrantAcqisition diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java index 3a652a4af..e03d0fc39 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingFactoryImpl.java @@ -94,6 +94,8 @@ public EObject create(EClass eClass) { return createFloatingLicenseAccess(); case FloatingPackage.FLOATING_SERVER_CONNECTION: return createFloatingServerConnection(); + case FloatingPackage.GRANT_ACQISITION: + return createGrantAcqisition(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ } @@ -211,6 +213,17 @@ public FloatingServerConnection createFloatingServerConnection() { return floatingServerConnection; } + /** + * + * + * @generated + */ + @Override + public GrantAcqisition createGrantAcqisition() { + GrantAcqisitionImpl grantAcqisition = new GrantAcqisitionImpl(); + return grantAcqisition; + } + /** * * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java index a41704fc1..3cf09e6c0 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/FloatingPackageImpl.java @@ -23,6 +23,7 @@ import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; import org.eclipse.passage.lic.floating.model.api.FloatingServer; import org.eclipse.passage.lic.floating.model.api.FloatingServerConnection; +import org.eclipse.passage.lic.floating.model.api.GrantAcqisition; import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; import org.eclipse.passage.lic.floating.model.api.ProductRef; import org.eclipse.passage.lic.floating.model.api.UserGrant; @@ -112,6 +113,13 @@ public class FloatingPackageImpl extends EPackageImpl implements FloatingPackage */ private EClass floatingServerConnectionEClass = null; + /** + * + * + * @generated + */ + private EClass grantAcqisitionEClass = null; + /** * Creates an instance of the model Package, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package @@ -607,6 +615,66 @@ public EReference getFloatingServerConnection_Authentication() { return (EReference) floatingServerConnectionEClass.getEStructuralFeatures().get(2); } + /** + * + * + * @generated + */ + @Override + public EClass getGrantAcqisition() { + return grantAcqisitionEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGrantAcqisition_Identifier() { + return (EAttribute) grantAcqisitionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGrantAcqisition_Feature() { + return (EAttribute) grantAcqisitionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGrantAcqisition_Grant() { + return (EAttribute) grantAcqisitionEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGrantAcqisition_User() { + return (EAttribute) grantAcqisitionEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getGrantAcqisition_Created() { + return (EAttribute) grantAcqisitionEClass.getEStructuralFeatures().get(4); + } + /** * * @generated @@ -693,6 +761,13 @@ public void createPackageContents() { createEAttribute(floatingServerConnectionEClass, FLOATING_SERVER_CONNECTION__IP); createEAttribute(floatingServerConnectionEClass, FLOATING_SERVER_CONNECTION__PORT); createEReference(floatingServerConnectionEClass, FLOATING_SERVER_CONNECTION__AUTHENTICATION); + + grantAcqisitionEClass = createEClass(GRANT_ACQISITION); + createEAttribute(grantAcqisitionEClass, GRANT_ACQISITION__IDENTIFIER); + createEAttribute(grantAcqisitionEClass, GRANT_ACQISITION__FEATURE); + createEAttribute(grantAcqisitionEClass, GRANT_ACQISITION__GRANT); + createEAttribute(grantAcqisitionEClass, GRANT_ACQISITION__USER); + createEAttribute(grantAcqisitionEClass, GRANT_ACQISITION__CREATED); } /** @@ -859,6 +934,23 @@ public void initializePackageContents() { "authentication", null, 1, 1, FloatingServerConnection.class, !IS_TRANSIENT, !IS_VOLATILE, //$NON-NLS-1$ IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEClass(grantAcqisitionEClass, GrantAcqisition.class, "GrantAcqisition", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGrantAcqisition_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ + GrantAcqisition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getGrantAcqisition_Feature(), ecorePackage.getEString(), "feature", null, 1, 1, //$NON-NLS-1$ + GrantAcqisition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getGrantAcqisition_Grant(), ecorePackage.getEString(), "grant", null, 1, 1, //$NON-NLS-1$ + GrantAcqisition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getGrantAcqisition_User(), ecorePackage.getEString(), "user", null, 1, 1, GrantAcqisition.class, //$NON-NLS-1$ + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGrantAcqisition_Created(), ecorePackage.getEDate(), "created", null, 1, 1, //$NON-NLS-1$ + GrantAcqisition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + // Create resource createResource(eNS_URI); } diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/GrantAcqisitionImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/GrantAcqisitionImpl.java new file mode 100644 index 000000000..3ff456c01 --- /dev/null +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/GrantAcqisitionImpl.java @@ -0,0 +1,410 @@ +/** + */ +package org.eclipse.passage.lic.floating.model.impl; + +import java.util.Date; +import java.util.Objects; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.passage.lic.floating.model.api.GrantAcqisition; + +import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; + +/** + * + * An implementation of the model object 'Grant Acqisition'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getIdentifier Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getFeature Feature}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getGrant Grant}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getUser User}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getCreated Created}
  • + *
+ * + * @generated + */ +public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements GrantAcqisition { + /** + * The default value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + protected static final String IDENTIFIER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIdentifier() Identifier}' attribute. + * + * + * @see #getIdentifier() + * @generated + * @ordered + */ + private String identifier = IDENTIFIER_EDEFAULT; + + /** + * The default value of the '{@link #getFeature() Feature}' attribute. + * + * + * @see #getFeature() + * @generated + * @ordered + */ + protected static final String FEATURE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFeature() Feature}' attribute. + * + * + * @see #getFeature() + * @generated + * @ordered + */ + private String feature = FEATURE_EDEFAULT; + + /** + * The default value of the '{@link #getGrant() Grant}' attribute. + * + * + * @see #getGrant() + * @generated + * @ordered + */ + protected static final String GRANT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGrant() Grant}' attribute. + * + * + * @see #getGrant() + * @generated + * @ordered + */ + private String grant = GRANT_EDEFAULT; + + /** + * 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 #getCreated() Created}' attribute. + * + * + * @see #getCreated() + * @generated + * @ordered + */ + protected static final Date CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated() Created}' attribute. + * + * + * @see #getCreated() + * @generated + * @ordered + */ + private Date created = CREATED_EDEFAULT; + + /** + * + * + * @generated + */ + protected GrantAcqisitionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return FloatingPackage.eINSTANCE.getGrantAcqisition(); + } + + /** + * + * + * @generated + */ + @Override + public String getIdentifier() { + return identifier; + } + + /** + * + * + * @generated + */ + @Override + public void setIdentifier(String newIdentifier) { + String oldIdentifier = identifier; + identifier = newIdentifier; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.GRANT_ACQISITION__IDENTIFIER, + oldIdentifier, identifier)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getFeature() { + return feature; + } + + /** + * + * + * @generated + */ + @Override + public void setFeature(String newFeature) { + String oldFeature = feature; + feature = newFeature; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.GRANT_ACQISITION__FEATURE, oldFeature, + feature)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getGrant() { + return grant; + } + + /** + * + * + * @generated + */ + @Override + public void setGrant(String newGrant) { + String oldGrant = grant; + grant = newGrant; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.GRANT_ACQISITION__GRANT, oldGrant, + grant)); + } + } + + /** + * + * + * @generated + */ + @Override + public String getUser() { + return user; + } + + /** + * + * + * @generated + */ + @Override + public void setUser(String newUser) { + String oldUser = user; + user = newUser; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.GRANT_ACQISITION__USER, oldUser, + user)); + } + } + + /** + * + * + * @generated + */ + @Override + public Date getCreated() { + return created; + } + + /** + * + * + * @generated + */ + @Override + public void setCreated(Date newCreated) { + Date oldCreated = created; + created = newCreated; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, FloatingPackage.GRANT_ACQISITION__CREATED, oldCreated, + created)); + } + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case FloatingPackage.GRANT_ACQISITION__IDENTIFIER: + return getIdentifier(); + case FloatingPackage.GRANT_ACQISITION__FEATURE: + return getFeature(); + case FloatingPackage.GRANT_ACQISITION__GRANT: + return getGrant(); + case FloatingPackage.GRANT_ACQISITION__USER: + return getUser(); + case FloatingPackage.GRANT_ACQISITION__CREATED: + return getCreated(); + default: + return super.eGet(featureID, resolve, coreType); + } + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case FloatingPackage.GRANT_ACQISITION__IDENTIFIER: + setIdentifier((String) newValue); + return; + case FloatingPackage.GRANT_ACQISITION__FEATURE: + setFeature((String) newValue); + return; + case FloatingPackage.GRANT_ACQISITION__GRANT: + setGrant((String) newValue); + return; + case FloatingPackage.GRANT_ACQISITION__USER: + setUser((String) newValue); + return; + case FloatingPackage.GRANT_ACQISITION__CREATED: + setCreated((Date) newValue); + return; + default: + super.eSet(featureID, newValue); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case FloatingPackage.GRANT_ACQISITION__IDENTIFIER: + setIdentifier(IDENTIFIER_EDEFAULT); + return; + case FloatingPackage.GRANT_ACQISITION__FEATURE: + setFeature(FEATURE_EDEFAULT); + return; + case FloatingPackage.GRANT_ACQISITION__GRANT: + setGrant(GRANT_EDEFAULT); + return; + case FloatingPackage.GRANT_ACQISITION__USER: + setUser(USER_EDEFAULT); + return; + case FloatingPackage.GRANT_ACQISITION__CREATED: + setCreated(CREATED_EDEFAULT); + return; + default: + super.eUnset(featureID); + return; + } + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case FloatingPackage.GRANT_ACQISITION__IDENTIFIER: + return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); + case FloatingPackage.GRANT_ACQISITION__FEATURE: + return !Objects.equals(FEATURE_EDEFAULT, feature); + case FloatingPackage.GRANT_ACQISITION__GRANT: + return !Objects.equals(GRANT_EDEFAULT, grant); + case FloatingPackage.GRANT_ACQISITION__USER: + return !Objects.equals(USER_EDEFAULT, user); + case FloatingPackage.GRANT_ACQISITION__CREATED: + return !Objects.equals(CREATED_EDEFAULT, created); + default: + return super.eIsSet(featureID); + } + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) { + return super.toString(); + } + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (identifier: "); //$NON-NLS-1$ + result.append(identifier); + result.append(", feature: "); //$NON-NLS-1$ + result.append(feature); + result.append(", grant: "); //$NON-NLS-1$ + result.append(grant); + result.append(", user: "); //$NON-NLS-1$ + result.append(user); + result.append(", created: "); //$NON-NLS-1$ + result.append(created); + result.append(')'); + return result.toString(); + } + +} //GrantAcqisitionImpl diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java index 314fa61d6..5858d8ac8 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/meta/FloatingFactory.java @@ -19,6 +19,7 @@ import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; import org.eclipse.passage.lic.floating.model.api.FloatingServer; import org.eclipse.passage.lic.floating.model.api.FloatingServerConnection; +import org.eclipse.passage.lic.floating.model.api.GrantAcqisition; import org.eclipse.passage.lic.floating.model.api.LicenseRequisites; import org.eclipse.passage.lic.floating.model.api.ProductRef; import org.eclipse.passage.lic.floating.model.api.UserGrant; @@ -139,6 +140,15 @@ public interface FloatingFactory extends EFactory { */ FloatingServerConnection createFloatingServerConnection(); + /** + * Returns a new object of class 'Grant Acqisition'. + * + * + * @return a new object of class 'Grant Acqisition'. + * @generated + */ + GrantAcqisition createGrantAcqisition(); + /** * Returns the package supported by this factory. * + * + * @see org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl + * @see org.eclipse.passage.lic.floating.model.impl.FloatingPackageImpl#getGrantAcqisition() + * @generated + */ + int GRANT_ACQISITION = 12; + + /** + * The feature id for the 'Identifier' attribute. + * + * + * @generated + * @ordered + */ + int GRANT_ACQISITION__IDENTIFIER = 0; + + /** + * The feature id for the 'Feature' attribute. + * + * + * @generated + * @ordered + */ + int GRANT_ACQISITION__FEATURE = 1; + + /** + * The feature id for the 'Grant' attribute. + * + * + * @generated + * @ordered + */ + int GRANT_ACQISITION__GRANT = 2; + + /** + * The feature id for the 'User' attribute. + * + * + * @generated + * @ordered + */ + int GRANT_ACQISITION__USER = 3; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int GRANT_ACQISITION__CREATED = 4; + + /** + * The number of structural features of the 'Grant Acqisition' class. + * + * + * @generated + * @ordered + */ + int GRANT_ACQISITION_FEATURE_COUNT = 5; + + /** + * The number of operations of the 'Grant Acqisition' class. + * + * + * @generated + * @ordered + */ + int GRANT_ACQISITION_OPERATION_COUNT = 0; + /** * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.FloatingLicensePack License Pack}'. * @@ -1177,6 +1250,71 @@ public interface FloatingPackage extends EPackage { */ EReference getFloatingServerConnection_Authentication(); + /** + * Returns the meta object for class '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition Grant Acqisition}'. + * + * + * @return the meta object for class 'Grant Acqisition'. + * @see org.eclipse.passage.lic.floating.model.api.GrantAcqisition + * @generated + */ + EClass getGrantAcqisition(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getIdentifier Identifier}'. + * + * + * @return the meta object for the attribute 'Identifier'. + * @see org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getIdentifier() + * @see #getGrantAcqisition() + * @generated + */ + EAttribute getGrantAcqisition_Identifier(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getFeature Feature}'. + * + * + * @return the meta object for the attribute 'Feature'. + * @see org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getFeature() + * @see #getGrantAcqisition() + * @generated + */ + EAttribute getGrantAcqisition_Feature(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getGrant Grant}'. + * + * + * @return the meta object for the attribute 'Grant'. + * @see org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getGrant() + * @see #getGrantAcqisition() + * @generated + */ + EAttribute getGrantAcqisition_Grant(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getUser User}'. + * + * + * @return the meta object for the attribute 'User'. + * @see org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getUser() + * @see #getGrantAcqisition() + * @generated + */ + EAttribute getGrantAcqisition_User(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getCreated Created}'. + * + * + * @return the meta object for the attribute 'Created'. + * @see org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getCreated() + * @see #getGrantAcqisition() + * @generated + */ + EAttribute getGrantAcqisition_Created(); + /** * Returns the factory that creates the instances of the model. diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java index 8baad5642..084c7f5b4 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingAdapterFactory.java @@ -143,6 +143,11 @@ public Adapter caseFloatingServerConnection(FloatingServerConnection object) { return createFloatingServerConnectionAdapter(); } + @Override + public Adapter caseGrantAcqisition(GrantAcqisition object) { + return createGrantAcqisitionAdapter(); + } + @Override public Adapter defaultCase(EObject object) { return createEObjectAdapter(); @@ -324,6 +329,20 @@ public Adapter createFloatingServerConnectionAdapter() { return null; } + /** + * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition Grant Acqisition}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.eclipse.passage.lic.floating.model.api.GrantAcqisition + * @generated + */ + public Adapter createGrantAcqisitionAdapter() { + return null; + } + /** * Creates a new adapter for the default case. * This diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java index 919b2fa30..192041a9b 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/util/FloatingSwitch.java @@ -167,6 +167,13 @@ protected T doSwitch(int classifierID, EObject theEObject) { result = defaultCase(theEObject); return result; } + case FloatingPackage.GRANT_ACQISITION: { + GrantAcqisition grantAcqisition = (GrantAcqisition) theEObject; + T result = caseGrantAcqisition(grantAcqisition); + if (result == null) + result = defaultCase(theEObject); + return result; + } default: return defaultCase(theEObject); } @@ -334,6 +341,21 @@ public T caseFloatingServerConnection(FloatingServerConnection object) { return null; } + /** + * Returns the result of interpreting the object as an instance of 'Grant Acqisition'. + * + * 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 'Grant Acqisition'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGrantAcqisition(GrantAcqisition object) { + return null; + } + /** * Returns the result of interpreting the object as an instance of 'EObject'. * This implementation returns null; diff --git a/bundles/org.eclipse.passage.lic.floating.model/src/.gitkeep b/bundles/org.eclipse.passage.lic.floating.model/src/.gitkeep new file mode 100644 index 000000000..e69de29bb From 9bb622bbe6afdd8e7908b2ed8bd31b0ead0313d2 Mon Sep 17 00:00:00 2001 From: eparovyshnaya Date: Wed, 11 Nov 2020 14:01:07 +0300 Subject: [PATCH 2/2] Bug 568711 Design model for grant acquisition Add missing license headers Signed-off-by: eparovyshnaya --- .../GrantAcqisitionItemProvider.java | 19 ++- .../floating/model/api/GrantAcqisition.java | 100 ++++++----- .../model/impl/GrantAcqisitionImpl.java | 160 ++++++++++-------- 3 files changed, 157 insertions(+), 122 deletions(-) diff --git a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/GrantAcqisitionItemProvider.java b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/GrantAcqisitionItemProvider.java index 3241f57b2..e9e87f8ed 100644 --- a/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/GrantAcqisitionItemProvider.java +++ b/bundles/org.eclipse.passage.lic.floating.edit/src-gen/org/eclipse/passage/lic/floating/edit/providers/GrantAcqisitionItemProvider.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.edit.providers; import java.util.Collection; @@ -7,9 +17,7 @@ import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.common.util.ResourceLocator; - import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; import org.eclipse.emf.edit.provider.IItemLabelProvider; @@ -20,11 +28,8 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemProviderAdapter; import org.eclipse.emf.edit.provider.ViewerNotification; - import org.eclipse.passage.lic.floating.edit.FLoatingLicensesEditPlugin; - import org.eclipse.passage.lic.floating.model.api.GrantAcqisition; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/GrantAcqisition.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/GrantAcqisition.java index 4dda622b2..ef108c83e 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/GrantAcqisition.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/api/GrantAcqisition.java @@ -1,5 +1,15 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.api; import java.util.Date; @@ -7,19 +17,23 @@ import org.eclipse.emf.ecore.EObject; /** - * - * A representation of the model object 'Grant Acqisition'. - * + * A representation of the model object 'Grant + * Acqisition'. * *

* The following features are supported: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getFeature Feature}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getGrant Grant}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getUser User}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getCreated Created}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getIdentifier + * Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getFeature + * Feature}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getGrant + * Grant}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getUser + * User}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getCreated + * Created}
  • *
* * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition() @@ -28,9 +42,9 @@ */ public interface GrantAcqisition extends EObject { /** - * Returns the value of the 'Identifier' attribute. - * - * + * Returns the value of the 'Identifier' attribute. + * * @return the value of the 'Identifier' attribute. * @see #setIdentifier(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_Identifier() @@ -40,9 +54,11 @@ public interface GrantAcqisition extends EObject { String getIdentifier(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getIdentifier Identifier}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getIdentifier + * Identifier}' attribute. + * * @param value the new value of the 'Identifier' attribute. * @see #getIdentifier() * @generated @@ -50,9 +66,9 @@ public interface GrantAcqisition extends EObject { void setIdentifier(String value); /** - * Returns the value of the 'Feature' attribute. - * - * + * Returns the value of the 'Feature' attribute. + * * @return the value of the 'Feature' attribute. * @see #setFeature(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_Feature() @@ -62,9 +78,10 @@ public interface GrantAcqisition extends EObject { String getFeature(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getFeature Feature}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getFeature + * Feature}' attribute. + * * @param value the new value of the 'Feature' attribute. * @see #getFeature() * @generated @@ -72,9 +89,9 @@ public interface GrantAcqisition extends EObject { void setFeature(String value); /** - * Returns the value of the 'Grant' attribute. - * - * + * Returns the value of the 'Grant' attribute. + * * @return the value of the 'Grant' attribute. * @see #setGrant(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_Grant() @@ -84,9 +101,10 @@ public interface GrantAcqisition extends EObject { String getGrant(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getGrant Grant}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getGrant + * Grant}' attribute. + * * @param value the new value of the 'Grant' attribute. * @see #getGrant() * @generated @@ -94,9 +112,9 @@ public interface GrantAcqisition extends EObject { void setGrant(String value); /** - * Returns the value of the 'User' attribute. - * - * + * Returns the value of the 'User' attribute. + * * @return the value of the 'User' attribute. * @see #setUser(String) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_User() @@ -106,9 +124,10 @@ public interface GrantAcqisition extends EObject { String getUser(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getUser User}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getUser + * User}' attribute. + * * @param value the new value of the 'User' attribute. * @see #getUser() * @generated @@ -116,9 +135,9 @@ public interface GrantAcqisition extends EObject { void setUser(String value); /** - * Returns the value of the 'Created' attribute. - * - * + * Returns the value of the 'Created' attribute. + * * @return the value of the 'Created' attribute. * @see #setCreated(Date) * @see org.eclipse.passage.lic.floating.model.meta.FloatingPackage#getGrantAcqisition_Created() @@ -128,9 +147,10 @@ public interface GrantAcqisition extends EObject { Date getCreated(); /** - * Sets the value of the '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getCreated Created}' attribute. - * - * + * Sets the value of the + * '{@link org.eclipse.passage.lic.floating.model.api.GrantAcqisition#getCreated + * Created}' attribute. + * * @param value the new value of the 'Created' attribute. * @see #getCreated() * @generated diff --git a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/GrantAcqisitionImpl.java b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/GrantAcqisitionImpl.java index 3ff456c01..21c89fec7 100644 --- a/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/GrantAcqisitionImpl.java +++ b/bundles/org.eclipse.passage.lic.floating.model/src-gen/org/eclipse/passage/lic/floating/model/impl/GrantAcqisitionImpl.java @@ -1,43 +1,53 @@ -/** - */ +/******************************************************************************* + * Copyright (c) 2020 ArSysOp + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License 2.0 which is available at + * https://www.eclipse.org/legal/epl-2.0/. + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * ArSysOp - initial API and implementation + *******************************************************************************/ package org.eclipse.passage.lic.floating.model.impl; import java.util.Date; import java.util.Objects; import org.eclipse.emf.common.notify.Notification; - import org.eclipse.emf.ecore.EClass; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - import org.eclipse.passage.lic.floating.model.api.GrantAcqisition; - import org.eclipse.passage.lic.floating.model.meta.FloatingPackage; /** - * - * An implementation of the model object 'Grant Acqisition'. - * + * An implementation of the model object 'Grant + * Acqisition'. *

* The following features are implemented: *

*
    - *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getFeature Feature}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getGrant Grant}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getUser User}
  • - *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getCreated Created}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getIdentifier + * Identifier}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getFeature + * Feature}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getGrant + * Grant}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getUser + * User}
  • + *
  • {@link org.eclipse.passage.lic.floating.model.impl.GrantAcqisitionImpl#getCreated + * Created}
  • *
* * @generated */ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements GrantAcqisition { /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * + * The default value of the '{@link #getIdentifier() Identifier}' + * attribute. + * * @see #getIdentifier() * @generated * @ordered @@ -45,9 +55,9 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements protected static final String IDENTIFIER_EDEFAULT = null; /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * + * The cached value of the '{@link #getIdentifier() Identifier}' + * attribute. + * * @see #getIdentifier() * @generated * @ordered @@ -56,8 +66,8 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements /** * The default value of the '{@link #getFeature() Feature}' attribute. - * - * + * + * * @see #getFeature() * @generated * @ordered @@ -66,8 +76,8 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements /** * The cached value of the '{@link #getFeature() Feature}' attribute. - * - * + * + * * @see #getFeature() * @generated * @ordered @@ -75,9 +85,9 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements private String feature = FEATURE_EDEFAULT; /** - * The default value of the '{@link #getGrant() Grant}' attribute. - * - * + * The default value of the '{@link #getGrant() Grant}' attribute. + * * @see #getGrant() * @generated * @ordered @@ -85,9 +95,9 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements protected static final String GRANT_EDEFAULT = null; /** - * The cached value of the '{@link #getGrant() Grant}' attribute. - * - * + * The cached value of the '{@link #getGrant() Grant}' attribute. + * * @see #getGrant() * @generated * @ordered @@ -95,9 +105,9 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements private String grant = GRANT_EDEFAULT; /** - * The default value of the '{@link #getUser() User}' attribute. - * - * + * The default value of the '{@link #getUser() User}' attribute. + * * @see #getUser() * @generated * @ordered @@ -105,9 +115,9 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements protected static final String USER_EDEFAULT = null; /** - * The cached value of the '{@link #getUser() User}' attribute. - * - * + * The cached value of the '{@link #getUser() User}' attribute. + * * @see #getUser() * @generated * @ordered @@ -116,8 +126,8 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements /** * The default value of the '{@link #getCreated() Created}' attribute. - * - * + * + * * @see #getCreated() * @generated * @ordered @@ -126,8 +136,8 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements /** * The cached value of the '{@link #getCreated() Created}' attribute. - * - * + * + * * @see #getCreated() * @generated * @ordered @@ -135,8 +145,8 @@ public class GrantAcqisitionImpl extends MinimalEObjectImpl.Container implements private Date created = CREATED_EDEFAULT; /** - * - * + * + * * @generated */ protected GrantAcqisitionImpl() { @@ -144,8 +154,8 @@ protected GrantAcqisitionImpl() { } /** - * - * + * + * * @generated */ @Override @@ -154,8 +164,8 @@ protected EClass eStaticClass() { } /** - * - * + * + * * @generated */ @Override @@ -164,8 +174,8 @@ public String getIdentifier() { } /** - * - * + * + * * @generated */ @Override @@ -179,8 +189,8 @@ public void setIdentifier(String newIdentifier) { } /** - * - * + * + * * @generated */ @Override @@ -189,8 +199,8 @@ public String getFeature() { } /** - * - * + * + * * @generated */ @Override @@ -204,8 +214,8 @@ public void setFeature(String newFeature) { } /** - * - * + * + * * @generated */ @Override @@ -214,8 +224,8 @@ public String getGrant() { } /** - * - * + * + * * @generated */ @Override @@ -229,8 +239,8 @@ public void setGrant(String newGrant) { } /** - * - * + * + * * @generated */ @Override @@ -239,8 +249,8 @@ public String getUser() { } /** - * - * + * + * * @generated */ @Override @@ -254,8 +264,8 @@ public void setUser(String newUser) { } /** - * - * + * + * * @generated */ @Override @@ -264,8 +274,8 @@ public Date getCreated() { } /** - * - * + * + * * @generated */ @Override @@ -279,8 +289,8 @@ public void setCreated(Date newCreated) { } /** - * - * + * + * * @generated */ @Override @@ -302,8 +312,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { } /** - * - * + * + * * @generated */ @Override @@ -331,8 +341,8 @@ public void eSet(int featureID, Object newValue) { } /** - * - * + * + * * @generated */ @Override @@ -360,8 +370,8 @@ public void eUnset(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -383,8 +393,8 @@ public boolean eIsSet(int featureID) { } /** - * - * + * + * * @generated */ @Override @@ -407,4 +417,4 @@ public String toString() { return result.toString(); } -} //GrantAcqisitionImpl +} // GrantAcqisitionImpl