|
|
@@ -19,12 +19,26 @@ import org.eclipse.emf.ecore.EAttribute;
|
|
|
import org.eclipse.emf.ecore.EClass;
|
|
|
import org.eclipse.emf.ecore.EClassifier;
|
|
|
import org.eclipse.emf.ecore.EEnum;
|
|
|
+import org.eclipse.emf.ecore.EOperation;
|
|
|
import org.eclipse.emf.ecore.EPackage;
|
|
|
import org.eclipse.emf.ecore.EReference;
|
|
|
import org.eclipse.emf.ecore.impl.EPackageImpl;
|
|
|
import org.eclipse.emf.ecore.resource.Resource;
|
|
|
import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl;
|
|
|
import org.yakindu.base.base.BasePackage;
|
|
|
+import org.yakindu.base.expressions.expressions.ExpressionsPackage;
|
|
|
+import org.yakindu.base.types.TypesPackage;
|
|
|
+import org.yakindu.sct.model.sgen.DeprecatableElement;
|
|
|
+import org.yakindu.sct.model.sgen.FeatureConfiguration;
|
|
|
+import org.yakindu.sct.model.sgen.FeatureParameter;
|
|
|
+import org.yakindu.sct.model.sgen.FeatureParameterValue;
|
|
|
+import org.yakindu.sct.model.sgen.FeatureType;
|
|
|
+import org.yakindu.sct.model.sgen.FeatureTypeLibrary;
|
|
|
+import org.yakindu.sct.model.sgen.GeneratorConfiguration;
|
|
|
+import org.yakindu.sct.model.sgen.GeneratorEntry;
|
|
|
+import org.yakindu.sct.model.sgen.GeneratorModel;
|
|
|
+import org.yakindu.sct.model.sgen.ParameterTypes;
|
|
|
+import org.yakindu.sct.model.sgen.PropertyDefinition;
|
|
|
import org.yakindu.sct.model.sgen.SGenFactory;
|
|
|
import org.yakindu.sct.model.sgen.SGenPackage;
|
|
|
|
|
|
@@ -35,13 +49,6 @@ import org.yakindu.sct.model.sgen.SGenPackage;
|
|
|
* @generated
|
|
|
*/
|
|
|
public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- protected String packageFilename = "sgen.ecore";
|
|
|
-
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
|
@@ -103,42 +110,14 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- private EClass literalEClass = null;
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- private EClass boolLiteralEClass = null;
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- private EClass intLiteralEClass = null;
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- private EClass realLiteralEClass = null;
|
|
|
-
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- private EClass stringLiteralEClass = null;
|
|
|
+ private EClass deprecatableElementEClass = null;
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- private EClass deprecatableElementEClass = null;
|
|
|
+ private EClass propertyDefinitionEClass = null;
|
|
|
|
|
|
/**
|
|
|
* <!-- begin-user-doc -->
|
|
|
@@ -181,6 +160,8 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
|
* @see #eNS_URI
|
|
|
+ * @see #createPackageContents()
|
|
|
+ * @see #initializePackageContents()
|
|
|
* @generated
|
|
|
*/
|
|
|
public static SGenPackage init() {
|
|
|
@@ -193,12 +174,14 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
|
|
|
// Initialize simple dependencies
|
|
|
BasePackage.eINSTANCE.eClass();
|
|
|
+ ExpressionsPackage.eINSTANCE.eClass();
|
|
|
+ TypesPackage.eINSTANCE.eClass();
|
|
|
|
|
|
- // Load packages
|
|
|
- theSGenPackage.loadPackage();
|
|
|
+ // Create package meta-data objects
|
|
|
+ theSGenPackage.createPackageContents();
|
|
|
|
|
|
- // Fix loaded packages
|
|
|
- theSGenPackage.fixPackageContents();
|
|
|
+ // Initialize created meta-data
|
|
|
+ theSGenPackage.initializePackageContents();
|
|
|
|
|
|
// Mark meta-data to indicate it can't be changed
|
|
|
theSGenPackage.freeze();
|
|
|
@@ -215,9 +198,6 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EClass getGeneratorModel() {
|
|
|
- if (generatorModelEClass == null) {
|
|
|
- generatorModelEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(0);
|
|
|
- }
|
|
|
return generatorModelEClass;
|
|
|
}
|
|
|
|
|
|
@@ -227,7 +207,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getGeneratorModel_Entries() {
|
|
|
- return (EReference)getGeneratorModel().getEStructuralFeatures().get(0);
|
|
|
+ return (EReference)generatorModelEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -236,7 +216,16 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EAttribute getGeneratorModel_GeneratorId() {
|
|
|
- return (EAttribute)getGeneratorModel().getEStructuralFeatures().get(1);
|
|
|
+ return (EAttribute)generatorModelEClass.getEStructuralFeatures().get(1);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * <!-- begin-user-doc -->
|
|
|
+ * <!-- end-user-doc -->
|
|
|
+ * @generated
|
|
|
+ */
|
|
|
+ public EReference getGeneratorModel_Properties() {
|
|
|
+ return (EReference)generatorModelEClass.getEStructuralFeatures().get(2);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -245,9 +234,6 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EClass getGeneratorConfiguration() {
|
|
|
- if (generatorConfigurationEClass == null) {
|
|
|
- generatorConfigurationEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(1);
|
|
|
- }
|
|
|
return generatorConfigurationEClass;
|
|
|
}
|
|
|
|
|
|
@@ -257,7 +243,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getGeneratorConfiguration_Configurations() {
|
|
|
- return (EReference)getGeneratorConfiguration().getEStructuralFeatures().get(0);
|
|
|
+ return (EReference)generatorConfigurationEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -266,9 +252,6 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EClass getFeatureType() {
|
|
|
- if (featureTypeEClass == null) {
|
|
|
- featureTypeEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(2);
|
|
|
- }
|
|
|
return featureTypeEClass;
|
|
|
}
|
|
|
|
|
|
@@ -278,7 +261,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureType_Parameters() {
|
|
|
- return (EReference)getFeatureType().getEStructuralFeatures().get(0);
|
|
|
+ return (EReference)featureTypeEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -287,7 +270,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureType_Library() {
|
|
|
- return (EReference)getFeatureType().getEStructuralFeatures().get(1);
|
|
|
+ return (EReference)featureTypeEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -296,7 +279,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EAttribute getFeatureType_Optional() {
|
|
|
- return (EAttribute)getFeatureType().getEStructuralFeatures().get(2);
|
|
|
+ return (EAttribute)featureTypeEClass.getEStructuralFeatures().get(2);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -305,9 +288,6 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EClass getFeatureParameter() {
|
|
|
- if (featureParameterEClass == null) {
|
|
|
- featureParameterEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(3);
|
|
|
- }
|
|
|
return featureParameterEClass;
|
|
|
}
|
|
|
|
|
|
@@ -317,7 +297,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureParameter_FeatureType() {
|
|
|
- return (EReference)getFeatureParameter().getEStructuralFeatures().get(0);
|
|
|
+ return (EReference)featureParameterEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -326,7 +306,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EAttribute getFeatureParameter_Optional() {
|
|
|
- return (EAttribute)getFeatureParameter().getEStructuralFeatures().get(1);
|
|
|
+ return (EAttribute)featureParameterEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -335,7 +315,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EAttribute getFeatureParameter_ParameterType() {
|
|
|
- return (EAttribute)getFeatureParameter().getEStructuralFeatures().get(2);
|
|
|
+ return (EAttribute)featureParameterEClass.getEStructuralFeatures().get(2);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -344,9 +324,6 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EClass getFeatureConfiguration() {
|
|
|
- if (featureConfigurationEClass == null) {
|
|
|
- featureConfigurationEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(4);
|
|
|
- }
|
|
|
return featureConfigurationEClass;
|
|
|
}
|
|
|
|
|
|
@@ -356,7 +333,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureConfiguration_Type() {
|
|
|
- return (EReference)getFeatureConfiguration().getEStructuralFeatures().get(0);
|
|
|
+ return (EReference)featureConfigurationEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -365,7 +342,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureConfiguration_ParameterValues() {
|
|
|
- return (EReference)getFeatureConfiguration().getEStructuralFeatures().get(1);
|
|
|
+ return (EReference)featureConfigurationEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -374,9 +351,6 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EClass getGeneratorEntry() {
|
|
|
- if (generatorEntryEClass == null) {
|
|
|
- generatorEntryEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(5);
|
|
|
- }
|
|
|
return generatorEntryEClass;
|
|
|
}
|
|
|
|
|
|
@@ -386,7 +360,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getGeneratorEntry_ElementRef() {
|
|
|
- return (EReference)getGeneratorEntry().getEStructuralFeatures().get(0);
|
|
|
+ return (EReference)generatorEntryEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -395,7 +369,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getGeneratorEntry_Features() {
|
|
|
- return (EReference)getGeneratorEntry().getEStructuralFeatures().get(1);
|
|
|
+ return (EReference)generatorEntryEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -404,7 +378,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EAttribute getGeneratorEntry_ContentType() {
|
|
|
- return (EAttribute)getGeneratorEntry().getEStructuralFeatures().get(2);
|
|
|
+ return (EAttribute)generatorEntryEClass.getEStructuralFeatures().get(2);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -413,9 +387,6 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EClass getFeatureParameterValue() {
|
|
|
- if (featureParameterValueEClass == null) {
|
|
|
- featureParameterValueEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(6);
|
|
|
- }
|
|
|
return featureParameterValueEClass;
|
|
|
}
|
|
|
|
|
|
@@ -425,7 +396,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureParameterValue_Parameter() {
|
|
|
- return (EReference)getFeatureParameterValue().getEStructuralFeatures().get(0);
|
|
|
+ return (EReference)featureParameterValueEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -434,7 +405,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureParameterValue_FeatureConfiguration() {
|
|
|
- return (EReference)getFeatureParameterValue().getEStructuralFeatures().get(1);
|
|
|
+ return (EReference)featureParameterValueEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -443,7 +414,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureParameterValue_Expression() {
|
|
|
- return (EReference)getFeatureParameterValue().getEStructuralFeatures().get(2);
|
|
|
+ return (EReference)featureParameterValueEClass.getEStructuralFeatures().get(2);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -452,9 +423,6 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EClass getFeatureTypeLibrary() {
|
|
|
- if (featureTypeLibraryEClass == null) {
|
|
|
- featureTypeLibraryEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(7);
|
|
|
- }
|
|
|
return featureTypeLibraryEClass;
|
|
|
}
|
|
|
|
|
|
@@ -464,7 +432,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EReference getFeatureTypeLibrary_Types() {
|
|
|
- return (EReference)getFeatureTypeLibrary().getEStructuralFeatures().get(0);
|
|
|
+ return (EReference)featureTypeLibraryEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -473,7 +441,7 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* @generated
|
|
|
*/
|
|
|
public EAttribute getFeatureTypeLibrary_Name() {
|
|
|
- return (EAttribute)getFeatureTypeLibrary().getEStructuralFeatures().get(1);
|
|
|
+ return (EAttribute)featureTypeLibraryEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -481,11 +449,8 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getLiteral() {
|
|
|
- if (literalEClass == null) {
|
|
|
- literalEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(9);
|
|
|
- }
|
|
|
- return literalEClass;
|
|
|
+ public EClass getDeprecatableElement() {
|
|
|
+ return deprecatableElementEClass;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -493,11 +458,8 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getBoolLiteral() {
|
|
|
- if (boolLiteralEClass == null) {
|
|
|
- boolLiteralEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(10);
|
|
|
- }
|
|
|
- return boolLiteralEClass;
|
|
|
+ public EAttribute getDeprecatableElement_Deprecated() {
|
|
|
+ return (EAttribute)deprecatableElementEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -505,8 +467,8 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EAttribute getBoolLiteral_Value() {
|
|
|
- return (EAttribute)getBoolLiteral().getEStructuralFeatures().get(0);
|
|
|
+ public EAttribute getDeprecatableElement_Comment() {
|
|
|
+ return (EAttribute)deprecatableElementEClass.getEStructuralFeatures().get(1);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -514,11 +476,8 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getIntLiteral() {
|
|
|
- if (intLiteralEClass == null) {
|
|
|
- intLiteralEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(11);
|
|
|
- }
|
|
|
- return intLiteralEClass;
|
|
|
+ public EClass getPropertyDefinition() {
|
|
|
+ return propertyDefinitionEClass;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -526,8 +485,8 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EAttribute getIntLiteral_Value() {
|
|
|
- return (EAttribute)getIntLiteral().getEStructuralFeatures().get(0);
|
|
|
+ public EReference getPropertyDefinition_InitialValue() {
|
|
|
+ return (EReference)propertyDefinitionEClass.getEStructuralFeatures().get(0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -535,11 +494,8 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getRealLiteral() {
|
|
|
- if (realLiteralEClass == null) {
|
|
|
- realLiteralEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(12);
|
|
|
- }
|
|
|
- return realLiteralEClass;
|
|
|
+ public EEnum getParameterTypes() {
|
|
|
+ return parameterTypesEEnum;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -547,8 +503,8 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EAttribute getRealLiteral_Value() {
|
|
|
- return (EAttribute)getRealLiteral().getEStructuralFeatures().get(0);
|
|
|
+ public SGenFactory getSGenFactory() {
|
|
|
+ return (SGenFactory)getEFactoryInstance();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -556,104 +512,65 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EClass getStringLiteral() {
|
|
|
- if (stringLiteralEClass == null) {
|
|
|
- stringLiteralEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(13);
|
|
|
- }
|
|
|
- return stringLiteralEClass;
|
|
|
- }
|
|
|
+ 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.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public EAttribute getStringLiteral_Value() {
|
|
|
- return (EAttribute)getStringLiteral().getEStructuralFeatures().get(0);
|
|
|
- }
|
|
|
+ public void createPackageContents() {
|
|
|
+ if (isCreated) return;
|
|
|
+ isCreated = true;
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public EClass getDeprecatableElement() {
|
|
|
- if (deprecatableElementEClass == null) {
|
|
|
- deprecatableElementEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(14);
|
|
|
- }
|
|
|
- return deprecatableElementEClass;
|
|
|
- }
|
|
|
+ // Create classes and their features
|
|
|
+ generatorModelEClass = createEClass(GENERATOR_MODEL);
|
|
|
+ createEReference(generatorModelEClass, GENERATOR_MODEL__ENTRIES);
|
|
|
+ createEAttribute(generatorModelEClass, GENERATOR_MODEL__GENERATOR_ID);
|
|
|
+ createEReference(generatorModelEClass, GENERATOR_MODEL__PROPERTIES);
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public EAttribute getDeprecatableElement_Deprecated() {
|
|
|
- return (EAttribute)getDeprecatableElement().getEStructuralFeatures().get(0);
|
|
|
- }
|
|
|
+ generatorConfigurationEClass = createEClass(GENERATOR_CONFIGURATION);
|
|
|
+ createEReference(generatorConfigurationEClass, GENERATOR_CONFIGURATION__CONFIGURATIONS);
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public EAttribute getDeprecatableElement_Comment() {
|
|
|
- return (EAttribute)getDeprecatableElement().getEStructuralFeatures().get(1);
|
|
|
- }
|
|
|
+ featureTypeEClass = createEClass(FEATURE_TYPE);
|
|
|
+ createEReference(featureTypeEClass, FEATURE_TYPE__PARAMETERS);
|
|
|
+ createEReference(featureTypeEClass, FEATURE_TYPE__LIBRARY);
|
|
|
+ createEAttribute(featureTypeEClass, FEATURE_TYPE__OPTIONAL);
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public EEnum getParameterTypes() {
|
|
|
- if (parameterTypesEEnum == null) {
|
|
|
- parameterTypesEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(SGenPackage.eNS_URI).getEClassifiers().get(8);
|
|
|
- }
|
|
|
- return parameterTypesEEnum;
|
|
|
- }
|
|
|
+ featureParameterEClass = createEClass(FEATURE_PARAMETER);
|
|
|
+ createEReference(featureParameterEClass, FEATURE_PARAMETER__FEATURE_TYPE);
|
|
|
+ createEAttribute(featureParameterEClass, FEATURE_PARAMETER__OPTIONAL);
|
|
|
+ createEAttribute(featureParameterEClass, FEATURE_PARAMETER__PARAMETER_TYPE);
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public SGenFactory getSGenFactory() {
|
|
|
- return (SGenFactory)getEFactoryInstance();
|
|
|
- }
|
|
|
+ featureConfigurationEClass = createEClass(FEATURE_CONFIGURATION);
|
|
|
+ createEReference(featureConfigurationEClass, FEATURE_CONFIGURATION__TYPE);
|
|
|
+ createEReference(featureConfigurationEClass, FEATURE_CONFIGURATION__PARAMETER_VALUES);
|
|
|
|
|
|
- /**
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- private boolean isLoaded = false;
|
|
|
+ generatorEntryEClass = createEClass(GENERATOR_ENTRY);
|
|
|
+ createEReference(generatorEntryEClass, GENERATOR_ENTRY__ELEMENT_REF);
|
|
|
+ createEReference(generatorEntryEClass, GENERATOR_ENTRY__FEATURES);
|
|
|
+ createEAttribute(generatorEntryEClass, GENERATOR_ENTRY__CONTENT_TYPE);
|
|
|
|
|
|
- /**
|
|
|
- * Laods the package and any sub-packages from their serialized form.
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- public void loadPackage() {
|
|
|
- if (isLoaded) return;
|
|
|
- isLoaded = true;
|
|
|
+ featureParameterValueEClass = createEClass(FEATURE_PARAMETER_VALUE);
|
|
|
+ createEReference(featureParameterValueEClass, FEATURE_PARAMETER_VALUE__PARAMETER);
|
|
|
+ createEReference(featureParameterValueEClass, FEATURE_PARAMETER_VALUE__FEATURE_CONFIGURATION);
|
|
|
+ createEReference(featureParameterValueEClass, FEATURE_PARAMETER_VALUE__EXPRESSION);
|
|
|
|
|
|
- URL url = getClass().getResource(packageFilename);
|
|
|
- if (url == null) {
|
|
|
- throw new RuntimeException("Missing serialized package: " + packageFilename);
|
|
|
- }
|
|
|
- URI uri = URI.createURI(url.toString());
|
|
|
- Resource resource = new EcoreResourceFactoryImpl().createResource(uri);
|
|
|
- try {
|
|
|
- resource.load(null);
|
|
|
- }
|
|
|
- catch (IOException exception) {
|
|
|
- throw new WrappedException(exception);
|
|
|
- }
|
|
|
- initializeFromLoadedEPackage(this, (EPackage)resource.getContents().get(0));
|
|
|
- createResource(eNS_URI);
|
|
|
+ featureTypeLibraryEClass = createEClass(FEATURE_TYPE_LIBRARY);
|
|
|
+ createEReference(featureTypeLibraryEClass, FEATURE_TYPE_LIBRARY__TYPES);
|
|
|
+ createEAttribute(featureTypeLibraryEClass, FEATURE_TYPE_LIBRARY__NAME);
|
|
|
+
|
|
|
+ deprecatableElementEClass = createEClass(DEPRECATABLE_ELEMENT);
|
|
|
+ createEAttribute(deprecatableElementEClass, DEPRECATABLE_ELEMENT__DEPRECATED);
|
|
|
+ createEAttribute(deprecatableElementEClass, DEPRECATABLE_ELEMENT__COMMENT);
|
|
|
+
|
|
|
+ propertyDefinitionEClass = createEClass(PROPERTY_DEFINITION);
|
|
|
+ createEReference(propertyDefinitionEClass, PROPERTY_DEFINITION__INITIAL_VALUE);
|
|
|
+
|
|
|
+ // Create enums
|
|
|
+ parameterTypesEEnum = createEEnum(PARAMETER_TYPES);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -661,32 +578,118 @@ public class SGenPackageImpl extends EPackageImpl implements SGenPackage {
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- private boolean isFixed = false;
|
|
|
+ private boolean isInitialized = false;
|
|
|
|
|
|
/**
|
|
|
- * Fixes up the loaded package, to make it appear as if it had been programmatically built.
|
|
|
+ * Complete the initialization of the package and its meta-model. This
|
|
|
+ * method is guarded to have no affect on any invocation but its first.
|
|
|
* <!-- begin-user-doc -->
|
|
|
* <!-- end-user-doc -->
|
|
|
* @generated
|
|
|
*/
|
|
|
- public void fixPackageContents() {
|
|
|
- if (isFixed) return;
|
|
|
- isFixed = true;
|
|
|
- fixEClassifiers();
|
|
|
- }
|
|
|
+ public void initializePackageContents() {
|
|
|
+ if (isInitialized) return;
|
|
|
+ isInitialized = true;
|
|
|
|
|
|
- /**
|
|
|
- * Sets the instance class on the given classifier.
|
|
|
- * <!-- begin-user-doc -->
|
|
|
- * <!-- end-user-doc -->
|
|
|
- * @generated
|
|
|
- */
|
|
|
- @Override
|
|
|
- protected void fixInstanceClass(EClassifier eClassifier) {
|
|
|
- if (eClassifier.getInstanceClassName() == null) {
|
|
|
- eClassifier.setInstanceClassName("org.yakindu.sct.model.sgen." + eClassifier.getName());
|
|
|
- setGeneratedClassName(eClassifier);
|
|
|
- }
|
|
|
+ // Initialize package
|
|
|
+ setName(eNAME);
|
|
|
+ setNsPrefix(eNS_PREFIX);
|
|
|
+ setNsURI(eNS_URI);
|
|
|
+
|
|
|
+ // Obtain other dependent packages
|
|
|
+ BasePackage theBasePackage = (BasePackage)EPackage.Registry.INSTANCE.getEPackage(BasePackage.eNS_URI);
|
|
|
+ ExpressionsPackage theExpressionsPackage = (ExpressionsPackage)EPackage.Registry.INSTANCE.getEPackage(ExpressionsPackage.eNS_URI);
|
|
|
+ TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);
|
|
|
+
|
|
|
+ // Create type parameters
|
|
|
+
|
|
|
+ // Set bounds for type parameters
|
|
|
+
|
|
|
+ // Add supertypes to classes
|
|
|
+ featureTypeEClass.getESuperTypes().add(theBasePackage.getNamedElement());
|
|
|
+ featureTypeEClass.getESuperTypes().add(this.getDeprecatableElement());
|
|
|
+ featureParameterEClass.getESuperTypes().add(theBasePackage.getNamedElement());
|
|
|
+ featureParameterEClass.getESuperTypes().add(this.getDeprecatableElement());
|
|
|
+ propertyDefinitionEClass.getESuperTypes().add(theTypesPackage.getProperty());
|
|
|
+
|
|
|
+ // Initialize classes and features; add operations and parameters
|
|
|
+ initEClass(generatorModelEClass, GeneratorModel.class, "GeneratorModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getGeneratorModel_Entries(), this.getGeneratorEntry(), null, "entries", null, 0, -1, GeneratorModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getGeneratorModel_GeneratorId(), ecorePackage.getEString(), "generatorId", null, 0, 1, GeneratorModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getGeneratorModel_Properties(), this.getPropertyDefinition(), null, "properties", null, 0, -1, GeneratorModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(generatorConfigurationEClass, GeneratorConfiguration.class, "GeneratorConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getGeneratorConfiguration_Configurations(), this.getFeatureConfiguration(), null, "configurations", null, 0, -1, GeneratorConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(featureTypeEClass, FeatureType.class, "FeatureType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getFeatureType_Parameters(), this.getFeatureParameter(), this.getFeatureParameter_FeatureType(), "parameters", null, 0, -1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getFeatureType_Library(), this.getFeatureTypeLibrary(), null, "library", null, 1, 1, FeatureType.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getFeatureType_Optional(), ecorePackage.getEBoolean(), "optional", "false", 0, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(featureParameterEClass, FeatureParameter.class, "FeatureParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getFeatureParameter_FeatureType(), this.getFeatureType(), this.getFeatureType_Parameters(), "featureType", null, 0, 1, FeatureParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getFeatureParameter_Optional(), ecorePackage.getEBoolean(), "optional", "false", 0, 1, FeatureParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getFeatureParameter_ParameterType(), this.getParameterTypes(), "parameterType", null, 0, 1, FeatureParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(featureConfigurationEClass, FeatureConfiguration.class, "FeatureConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getFeatureConfiguration_Type(), this.getFeatureType(), null, "type", null, 0, 1, FeatureConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getFeatureConfiguration_ParameterValues(), this.getFeatureParameterValue(), this.getFeatureParameterValue_FeatureConfiguration(), "parameterValues", null, 0, -1, FeatureConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ EOperation op = addEOperation(featureConfigurationEClass, this.getFeatureParameterValue(), "getParameterValue", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+ addEParameter(op, ecorePackage.getEString(), "parameterName", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(generatorEntryEClass, GeneratorEntry.class, "GeneratorEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getGeneratorEntry_ElementRef(), ecorePackage.getEObject(), null, "elementRef", null, 0, 1, GeneratorEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getGeneratorEntry_Features(), this.getFeatureConfiguration(), null, "features", null, 0, -1, GeneratorEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getGeneratorEntry_ContentType(), ecorePackage.getEString(), "contentType", null, 0, 1, GeneratorEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ op = addEOperation(generatorEntryEClass, this.getFeatureConfiguration(), "getFeatureConfiguration", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+ addEParameter(op, ecorePackage.getEString(), "featureName", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ op = addEOperation(generatorEntryEClass, this.getFeatureParameterValue(), "getFeatureParameterValue", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+ addEParameter(op, ecorePackage.getEString(), "featureName", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+ addEParameter(op, ecorePackage.getEString(), "paramName", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(featureParameterValueEClass, FeatureParameterValue.class, "FeatureParameterValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getFeatureParameterValue_Parameter(), this.getFeatureParameter(), null, "parameter", null, 0, 1, FeatureParameterValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getFeatureParameterValue_FeatureConfiguration(), this.getFeatureConfiguration(), this.getFeatureConfiguration_ParameterValues(), "featureConfiguration", null, 0, 1, FeatureParameterValue.class, !IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEReference(getFeatureParameterValue_Expression(), theExpressionsPackage.getExpression(), null, "expression", null, 0, 1, FeatureParameterValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ op = addEOperation(featureParameterValueEClass, null, "setValue", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+ addEParameter(op, ecorePackage.getEString(), "string", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ op = addEOperation(featureParameterValueEClass, null, "setValue", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+ addEParameter(op, ecorePackage.getEBoolean(), "boolean_", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ addEOperation(featureParameterValueEClass, ecorePackage.getEString(), "getStringValue", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ addEOperation(featureParameterValueEClass, ecorePackage.getEBoolean(), "getBooleanValue", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ op = addEOperation(featureParameterValueEClass, null, "setValue", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+ addEParameter(op, ecorePackage.getEInt(), "value", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ addEOperation(featureParameterValueEClass, ecorePackage.getEInt(), "getIntegerValue", 0, 1, IS_UNIQUE, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(featureTypeLibraryEClass, FeatureTypeLibrary.class, "FeatureTypeLibrary", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getFeatureTypeLibrary_Types(), this.getFeatureType(), null, "types", null, 0, -1, FeatureTypeLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getFeatureTypeLibrary_Name(), ecorePackage.getEString(), "name", null, 0, 1, FeatureTypeLibrary.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(deprecatableElementEClass, DeprecatableElement.class, "DeprecatableElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEAttribute(getDeprecatableElement_Deprecated(), ecorePackage.getEBoolean(), "deprecated", "false", 1, 1, DeprecatableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+ initEAttribute(getDeprecatableElement_Comment(), ecorePackage.getEString(), "comment", null, 0, 1, DeprecatableElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ initEClass(propertyDefinitionEClass, PropertyDefinition.class, "PropertyDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
|
|
+ initEReference(getPropertyDefinition_InitialValue(), theExpressionsPackage.getExpression(), null, "initialValue", null, 0, 1, PropertyDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
|
|
+
|
|
|
+ // Initialize enums and add enum literals
|
|
|
+ initEEnum(parameterTypesEEnum, ParameterTypes.class, "ParameterTypes");
|
|
|
+ addEEnumLiteral(parameterTypesEEnum, ParameterTypes.STRING);
|
|
|
+ addEEnumLiteral(parameterTypesEEnum, ParameterTypes.FLOAT);
|
|
|
+ addEEnumLiteral(parameterTypesEEnum, ParameterTypes.BOOLEAN);
|
|
|
+ addEEnumLiteral(parameterTypesEEnum, ParameterTypes.INTEGER);
|
|
|
+
|
|
|
+ // Create resource
|
|
|
+ createResource(eNS_URI);
|
|
|
}
|
|
|
|
|
|
} //SGenPackageImpl
|