Skip to content

Commit

Permalink
Bug 572962 invite 'keys' domain
Browse files Browse the repository at this point in the history
Fill RO interfaces

Signed-off-by: eparovyshnaya <[email protected]>
  • Loading branch information
eparovyshnaya committed Apr 20, 2021
1 parent ef50e2c commit 71b512e
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 162 deletions.
6 changes: 4 additions & 2 deletions bundles/org.eclipse.passage.lic.keys.ecore/model/keys.ecore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<eStructuralFeatures xsi:type="ecore:EAttribute" name="version" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="KeyPairRO" instanceClassName="org.eclipse.passage.lic.keys.KeyPairRO"/>
<eClassifiers xsi:type="ecore:EClass" name="ProductRefRO" instanceClassName="org.eclipse.passage.lic.keys.ProductRefRO"/>
<eClassifiers xsi:type="ecore:EClass" name="KeyPairRO" instanceClassName="org.eclipse.passage.lic.keys.KeyPairRO"
abstract="true" interface="true"/>
<eClassifiers xsi:type="ecore:EClass" name="ProductRefRO" instanceClassName="org.eclipse.passage.lic.keys.ProductRefRO"
abstract="true" interface="true"/>
</ecore:EPackage>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package org.eclipse.passage.lic.keys.model.api;

import org.eclipse.emf.ecore.EObject;

import org.eclipse.passage.lic.keys.KeyPairRO;

/**
Expand Down Expand Up @@ -47,6 +46,7 @@ public interface KeyPair extends EObject, KeyPairRO {
* @model containment="true" required="true"
* @generated
*/
@Override
ProductRef getProduct();

/**
Expand All @@ -69,6 +69,7 @@ public interface KeyPair extends EObject, KeyPairRO {
* @model required="true"
* @generated
*/
@Override
String getAlgorithm();

/**
Expand All @@ -91,6 +92,7 @@ public interface KeyPair extends EObject, KeyPairRO {
* @model required="true"
* @generated
*/
@Override
int getKey();

/**
Expand All @@ -113,6 +115,7 @@ public interface KeyPair extends EObject, KeyPairRO {
* @model required="true"
* @generated
*/
@Override
String getPub();

/**
Expand All @@ -135,6 +138,7 @@ public interface KeyPair extends EObject, KeyPairRO {
* @model required="true"
* @generated
*/
@Override
String getScr();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package org.eclipse.passage.lic.keys.model.api;

import org.eclipse.emf.ecore.EObject;

import org.eclipse.passage.lic.keys.ProductRefRO;

/**
Expand Down Expand Up @@ -44,6 +43,7 @@ public interface ProductRef extends EObject, ProductRefRO {
* @model required="true"
* @generated
*/
@Override
String getIdentifier();

/**
Expand All @@ -66,6 +66,7 @@ public interface ProductRef extends EObject, ProductRefRO {
* @model required="true"
* @generated
*/
@Override
String getVersion();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

import org.eclipse.passage.lic.keys.model.api.KeyPair;
import org.eclipse.passage.lic.keys.model.api.ProductRef;
Expand All @@ -44,7 +45,7 @@
*
* @generated
*/
public class KeyPairImpl extends KeyPairROImpl implements KeyPair {
public class KeyPairImpl extends MinimalEObjectImpl.Container implements KeyPair {
/**
* The cached value of the '{@link #getProduct() <em>Product</em>}' containment reference.
* <!-- begin-user-doc -->
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

import org.eclipse.emf.ecore.plugin.EcorePlugin;

import org.eclipse.passage.lic.keys.KeyPairRO;
import org.eclipse.passage.lic.keys.ProductRefRO;

import org.eclipse.passage.lic.keys.model.api.*;

import org.eclipse.passage.lic.keys.model.meta.KeysFactory;
Expand Down Expand Up @@ -75,10 +72,6 @@ public EObject create(EClass eClass) {
return createKeyPair();
case KeysPackage.PRODUCT_REF:
return createProductRef();
case KeysPackage.KEY_PAIR_RO:
return (EObject) createKeyPairRO();
case KeysPackage.PRODUCT_REF_RO:
return (EObject) createProductRefRO();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
}
Expand Down Expand Up @@ -106,28 +99,6 @@ public ProductRef createProductRef() {
return productRef;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public KeyPairRO createKeyPairRO() {
KeyPairROImpl keyPairRO = new KeyPairROImpl();
return keyPairRO;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ProductRefRO createProductRefRO() {
ProductRefROImpl productRefRO = new ProductRefROImpl();
return productRefRO;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ public void initializePackageContents() {
initEAttribute(getProductRef_Version(), ecorePackage.getEString(), "version", null, 1, 1, ProductRef.class, //$NON-NLS-1$
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

initEClass(keyPairROEClass, KeyPairRO.class, "KeyPairRO", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
initEClass(keyPairROEClass, KeyPairRO.class, "KeyPairRO", IS_ABSTRACT, IS_INTERFACE, //$NON-NLS-1$
!IS_GENERATED_INSTANCE_CLASS);

initEClass(productRefROEClass, ProductRefRO.class, "ProductRefRO", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$
initEClass(productRefROEClass, ProductRefRO.class, "ProductRefRO", IS_ABSTRACT, IS_INTERFACE, //$NON-NLS-1$
!IS_GENERATED_INSTANCE_CLASS);

// Create resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
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.keys.model.api.ProductRef;

Expand All @@ -38,7 +39,7 @@
*
* @generated
*/
public class ProductRefImpl extends ProductRefROImpl implements ProductRef {
public class ProductRefImpl extends MinimalEObjectImpl.Container implements ProductRef {
/**
* The default value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute.
* <!-- begin-user-doc -->
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

import org.eclipse.emf.ecore.EFactory;

import org.eclipse.passage.lic.keys.KeyPairRO;
import org.eclipse.passage.lic.keys.ProductRefRO;

import org.eclipse.passage.lic.keys.model.api.KeyPair;
import org.eclipse.passage.lic.keys.model.api.ProductRef;

Expand Down Expand Up @@ -55,24 +52,6 @@ public interface KeysFactory extends EFactory {
*/
ProductRef createProductRef();

/**
* Returns a new object of class '<em>Key Pair RO</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Key Pair RO</em>'.
* @generated
*/
KeyPairRO createKeyPairRO();

/**
* Returns a new object of class '<em>Product Ref RO</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Product Ref RO</em>'.
* @generated
*/
ProductRefRO createProductRefRO();

/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public interface KeysPackage extends EPackage {
KeysPackage eINSTANCE = org.eclipse.passage.lic.keys.model.impl.KeysPackageImpl.init();

/**
* The meta object id for the '{@link org.eclipse.passage.lic.keys.model.impl.KeyPairROImpl <em>Key Pair RO</em>}' class.
* The meta object id for the '{@link org.eclipse.passage.lic.keys.KeyPairRO <em>Key Pair RO</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.passage.lic.keys.model.impl.KeyPairROImpl
* @see org.eclipse.passage.lic.keys.KeyPairRO
* @see org.eclipse.passage.lic.keys.model.impl.KeysPackageImpl#getKeyPairRO()
* @generated
*/
Expand Down Expand Up @@ -168,10 +168,10 @@ public interface KeysPackage extends EPackage {
int KEY_PAIR_OPERATION_COUNT = KEY_PAIR_RO_OPERATION_COUNT + 0;

/**
* The meta object id for the '{@link org.eclipse.passage.lic.keys.model.impl.ProductRefROImpl <em>Product Ref RO</em>}' class.
* The meta object id for the '{@link org.eclipse.passage.lic.keys.ProductRefRO <em>Product Ref RO</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see org.eclipse.passage.lic.keys.model.impl.ProductRefROImpl
* @see org.eclipse.passage.lic.keys.ProductRefRO
* @see org.eclipse.passage.lic.keys.model.impl.KeysPackageImpl#getProductRefRO()
* @generated
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,13 @@

public interface KeyPairRO {

ProductRefRO getProduct();

String getAlgorithm();

int getKey();

String getPub();

String getScr();
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@

public interface ProductRefRO {

String getIdentifier();

String getVersion();

}

0 comments on commit 71b512e

Please sign in to comment.