diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java')
-rw-r--r-- | plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java | 341 |
1 files changed, 341 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java index eac11f36c..b26b09e99 100644 --- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java +++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/base/impl/BasePackageImpl.java @@ -4,19 +4,28 @@ package org.eclipse.etrice.core.common.base.impl; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.etrice.core.common.base.Annotation; +import org.eclipse.etrice.core.common.base.AnnotationAttribute; +import org.eclipse.etrice.core.common.base.AnnotationType; import org.eclipse.etrice.core.common.base.BaseFactory; import org.eclipse.etrice.core.common.base.BasePackage; import org.eclipse.etrice.core.common.base.BooleanLiteral; +import org.eclipse.etrice.core.common.base.Documentation; +import org.eclipse.etrice.core.common.base.EnumAnnotationAttribute; import org.eclipse.etrice.core.common.base.IntLiteral; +import org.eclipse.etrice.core.common.base.KeyValue; import org.eclipse.etrice.core.common.base.Literal; import org.eclipse.etrice.core.common.base.LiteralArray; +import org.eclipse.etrice.core.common.base.LiteralType; import org.eclipse.etrice.core.common.base.NumberLiteral; import org.eclipse.etrice.core.common.base.RealLiteral; +import org.eclipse.etrice.core.common.base.SimpleAnnotationAttribute; import org.eclipse.etrice.core.common.base.StringLiteral; /** @@ -32,6 +41,55 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage * <!-- end-user-doc --> * @generated */ + private EClass annotationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass keyValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass annotationTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass annotationAttributeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass simpleAnnotationAttributeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass enumAnnotationAttributeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass documentationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ private EClass literalArrayEClass = null; /** @@ -77,6 +135,13 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage private EClass stringLiteralEClass = null; /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum literalTypeEEnum = null; + + /** * Creates an instance of the model <b>Package</b>, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. @@ -144,6 +209,206 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage * <!-- end-user-doc --> * @generated */ + public EClass getAnnotation() + { + return annotationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAnnotation_Type() + { + return (EReference)annotationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAnnotation_Attributes() + { + return (EReference)annotationEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getKeyValue() + { + return keyValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getKeyValue_Key() + { + return (EAttribute)keyValueEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getKeyValue_Value() + { + return (EReference)keyValueEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAnnotationType() + { + return annotationTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAnnotationType_Name() + { + return (EAttribute)annotationTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAnnotationType_Docu() + { + return (EReference)annotationTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAnnotationType_Targets() + { + return (EAttribute)annotationTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAnnotationType_Attributes() + { + return (EReference)annotationTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAnnotationAttribute() + { + return annotationAttributeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAnnotationAttribute_Optional() + { + return (EAttribute)annotationAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAnnotationAttribute_Name() + { + return (EAttribute)annotationAttributeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSimpleAnnotationAttribute() + { + return simpleAnnotationAttributeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSimpleAnnotationAttribute_Type() + { + return (EAttribute)simpleAnnotationAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEnumAnnotationAttribute() + { + return enumAnnotationAttributeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEnumAnnotationAttribute_Values() + { + return (EAttribute)enumAnnotationAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDocumentation() + { + return documentationEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDocumentation_Lines() + { + return (EAttribute)documentationEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public EClass getLiteralArray() { return literalArrayEClass; @@ -264,6 +529,16 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage * <!-- end-user-doc --> * @generated */ + public EEnum getLiteralType() + { + return literalTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public BaseFactory getBaseFactory() { return (BaseFactory)getEFactoryInstance(); @@ -289,6 +564,33 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage isCreated = true; // Create classes and their features + annotationEClass = createEClass(ANNOTATION); + createEReference(annotationEClass, ANNOTATION__TYPE); + createEReference(annotationEClass, ANNOTATION__ATTRIBUTES); + + keyValueEClass = createEClass(KEY_VALUE); + createEAttribute(keyValueEClass, KEY_VALUE__KEY); + createEReference(keyValueEClass, KEY_VALUE__VALUE); + + annotationTypeEClass = createEClass(ANNOTATION_TYPE); + createEAttribute(annotationTypeEClass, ANNOTATION_TYPE__NAME); + createEReference(annotationTypeEClass, ANNOTATION_TYPE__DOCU); + createEAttribute(annotationTypeEClass, ANNOTATION_TYPE__TARGETS); + createEReference(annotationTypeEClass, ANNOTATION_TYPE__ATTRIBUTES); + + annotationAttributeEClass = createEClass(ANNOTATION_ATTRIBUTE); + createEAttribute(annotationAttributeEClass, ANNOTATION_ATTRIBUTE__OPTIONAL); + createEAttribute(annotationAttributeEClass, ANNOTATION_ATTRIBUTE__NAME); + + simpleAnnotationAttributeEClass = createEClass(SIMPLE_ANNOTATION_ATTRIBUTE); + createEAttribute(simpleAnnotationAttributeEClass, SIMPLE_ANNOTATION_ATTRIBUTE__TYPE); + + enumAnnotationAttributeEClass = createEClass(ENUM_ANNOTATION_ATTRIBUTE); + createEAttribute(enumAnnotationAttributeEClass, ENUM_ANNOTATION_ATTRIBUTE__VALUES); + + documentationEClass = createEClass(DOCUMENTATION); + createEAttribute(documentationEClass, DOCUMENTATION__LINES); + literalArrayEClass = createEClass(LITERAL_ARRAY); createEReference(literalArrayEClass, LITERAL_ARRAY__LITERALS); @@ -307,6 +609,9 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage stringLiteralEClass = createEClass(STRING_LITERAL); createEAttribute(stringLiteralEClass, STRING_LITERAL__VALUE); + + // Create enums + literalTypeEEnum = createEEnum(LITERAL_TYPE); } /** @@ -338,6 +643,8 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage // Set bounds for type parameters // Add supertypes to classes + simpleAnnotationAttributeEClass.getESuperTypes().add(this.getAnnotationAttribute()); + enumAnnotationAttributeEClass.getESuperTypes().add(this.getAnnotationAttribute()); booleanLiteralEClass.getESuperTypes().add(this.getLiteral()); numberLiteralEClass.getESuperTypes().add(this.getLiteral()); realLiteralEClass.getESuperTypes().add(this.getNumberLiteral()); @@ -345,6 +652,33 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage stringLiteralEClass.getESuperTypes().add(this.getLiteral()); // Initialize classes and features; add operations and parameters + initEClass(annotationEClass, Annotation.class, "Annotation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAnnotation_Type(), this.getAnnotationType(), null, "type", null, 0, 1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAnnotation_Attributes(), this.getKeyValue(), null, "attributes", null, 0, -1, Annotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(keyValueEClass, KeyValue.class, "KeyValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getKeyValue_Key(), ecorePackage.getEString(), "key", null, 0, 1, KeyValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getKeyValue_Value(), this.getLiteral(), null, "value", null, 0, 1, KeyValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(annotationTypeEClass, AnnotationType.class, "AnnotationType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAnnotationType_Name(), ecorePackage.getEString(), "name", null, 0, 1, AnnotationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAnnotationType_Docu(), this.getDocumentation(), null, "docu", null, 0, 1, AnnotationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAnnotationType_Targets(), ecorePackage.getEString(), "targets", null, 0, -1, AnnotationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAnnotationType_Attributes(), this.getAnnotationAttribute(), null, "attributes", null, 0, -1, AnnotationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(annotationAttributeEClass, AnnotationAttribute.class, "AnnotationAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAnnotationAttribute_Optional(), ecorePackage.getEBoolean(), "optional", null, 0, 1, AnnotationAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAnnotationAttribute_Name(), ecorePackage.getEString(), "name", null, 0, 1, AnnotationAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(simpleAnnotationAttributeEClass, SimpleAnnotationAttribute.class, "SimpleAnnotationAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSimpleAnnotationAttribute_Type(), this.getLiteralType(), "type", null, 0, 1, SimpleAnnotationAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(enumAnnotationAttributeEClass, EnumAnnotationAttribute.class, "EnumAnnotationAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEnumAnnotationAttribute_Values(), ecorePackage.getEString(), "values", null, 0, -1, EnumAnnotationAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(documentationEClass, Documentation.class, "Documentation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDocumentation_Lines(), ecorePackage.getEString(), "lines", null, 0, -1, Documentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEClass(literalArrayEClass, LiteralArray.class, "LiteralArray", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getLiteralArray_Literals(), this.getLiteral(), null, "literals", null, 0, -1, LiteralArray.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); @@ -364,6 +698,13 @@ public class BasePackageImpl extends EPackageImpl implements BasePackage initEClass(stringLiteralEClass, StringLiteral.class, "StringLiteral", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getStringLiteral_Value(), ecorePackage.getEString(), "value", null, 0, 1, StringLiteral.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + // Initialize enums and add enum literals + initEEnum(literalTypeEEnum, LiteralType.class, "LiteralType"); + addEEnumLiteral(literalTypeEEnum, LiteralType.BOOL); + addEEnumLiteral(literalTypeEEnum, LiteralType.INT); + addEEnumLiteral(literalTypeEEnum, LiteralType.REAL); + addEEnumLiteral(literalTypeEEnum, LiteralType.CHAR); + // Create resource createResource(eNS_URI); } |