Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EGenericType


    op = initEOperation(getEClass__GetOverride__EOperation(), this.getEOperation(), "getOverride", 0, 1, IS_UNIQUE, IS_ORDERED);
    addEParameter(op, this.getEOperation(), "operation", 0, 1, IS_UNIQUE, IS_ORDERED);

    initEClass(eClassifierEClass, EClassifier.class, "EClassifier", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getEClassifier_InstanceClassName(), this.getEString(), "instanceClassName", null, 0, 1, EClassifier.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    EGenericType g1 = createEGenericType(this.getEJavaClass());
    EGenericType g2 = createEGenericType();
    g1.getETypeArguments().add(g2);
    initEAttribute(getEClassifier_InstanceClass(), g1, "instanceClass", null, 0, 1, EClassifier.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
    initEAttribute(getEClassifier_DefaultValue(), this.getEJavaObject(), "defaultValue", null, 0, 1, EClassifier.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
    initEAttribute(getEClassifier_InstanceTypeName(), this.getEString(), "instanceTypeName", null, 0, 1, EClassifier.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getEClassifier_EPackage(), this.getEPackage(), this.getEPackage_EClassifiers(), "ePackage", null, 0, 1, EClassifier.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
View Full Code Here


        ETypeParameter eFeatureDataEClass_G = addETypeParameter(eFeatureDataEClass, "G"); //$NON-NLS-1$
        ETypeParameter eFeatureCompatibleDataEClass_A = addETypeParameter(eFeatureCompatibleDataEClass, "A"); //$NON-NLS-1$
        ETypeParameter eFeatureCompatibleDataEClass_G = addETypeParameter(eFeatureCompatibleDataEClass, "G"); //$NON-NLS-1$

        // Set bounds for type parameters
        EGenericType g1 = createEGenericType(theEFeaturePackage.getGeometry());
        eFeatureDataEClass_G.getEBounds().add(g1);
        g1 = createEGenericType(theEFeaturePackage.getGeometry());
        eFeatureCompatibleDataEClass_G.getEBounds().add(g1);

        // Add supertypes to classes
View Full Code Here

        ETypeParameter eFeaturePropertyEDataType_T = addETypeParameter(eFeaturePropertyEDataType, "T");
        addETypeParameter(eFeatureAttributeEDataType, "V");
        ETypeParameter eFeatureGeometryEDataType_V = addETypeParameter(eFeatureGeometryEDataType, "V");

        // Set bounds for type parameters
        EGenericType g1 = createEGenericType(this.getProperty());
        eFeaturePropertyEDataType_T.getEBounds().add(g1);
        g1 = createEGenericType(this.getGeometry());
        eFeatureGeometryEDataType_V.getEBounds().add(g1);

        // Add supertypes to classes

        // Initialize classes and features; add operations and parameters
        initEClass(eFeatureEClass, EFeature.class, "EFeature", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
        initEAttribute(getEFeature_ID(), ecorePackage.getEString(), "ID", "", 1, 1, EFeature.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
        initEAttribute(getEFeature_Data(), this.getFeature(), "data", null, 1, 1, EFeature.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
        initEAttribute(getEFeature_SRID(), ecorePackage.getEString(), "SRID", "EPSG:4326", 1, 1, EFeature.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
        initEAttribute(getEFeature_Default(), ecorePackage.getEString(), "default", "geom", 1, 1, EFeature.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
        initEAttribute(getEFeature_Structure(), this.getEFeatureInfo(), "structure", null, 1, 1, EFeature.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);

        EOperation op = addEOperation(eFeatureEClass, null, "getAttributeList", 1, 1, IS_UNIQUE, IS_ORDERED);
        ETypeParameter t1 = addETypeParameter(op, "V");
        g1 = createEGenericType(ecorePackage.getEJavaClass());
        EGenericType g2 = createEGenericType(t1);
        g1.getETypeArguments().add(g2);
        addEParameter(op, g1, "valueType", 0, 1, IS_UNIQUE, IS_ORDERED);
        g1 = createEGenericType(this.getList());
        g2 = createEGenericType(this.getEFeatureAttribute());
        g1.getETypeArguments().add(g2);
        EGenericType g3 = createEGenericType(t1);
        g2.getETypeArguments().add(g3);
        initEOperation(op, g1);

        op = addEOperation(eFeatureEClass, null, "getGeometryList", 1, 1, IS_UNIQUE, IS_ORDERED);
        t1 = addETypeParameter(op, "V");
View Full Code Here

    ETypeParameter ohtfDeviceEClass_IDS = addETypeParameter(ohtfDeviceEClass, "IDS");
    ETypeParameter ohtfSubDeviceAdminDeviceEClass_TFC = addETypeParameter(ohtfSubDeviceAdminDeviceEClass, "TFC");
    ETypeParameter ohtfSubDeviceAdminDeviceEClass_IDS = addETypeParameter(ohtfSubDeviceAdminDeviceEClass, "IDS");

    // Set bounds for type parameters
    EGenericType g1 = createEGenericType(this.getMTinkerforgeDevice());
    mDeviceEClass_TF.getEBounds().add(g1);
    g1 = createEGenericType(this.getMSubDevice());
    EGenericType g2 = createEGenericType();
    g1.getETypeArguments().add(g2);
    mSubDeviceHolderEClass_S.getEBounds().add(g1);
    g1 = createEGenericType(this.getMSubDeviceHolder());
    g2 = createEGenericType();
    g1.getETypeArguments().add(g2);
View Full Code Here

    // Create type parameters
    ETypeParameter containerElementEClass_T = addETypeParameter(containerElementEClass, "T");

    // Set bounds for type parameters
    EGenericType g1 = createEGenericType(this.getFXGElement());
    containerElementEClass_T.getEBounds().add(g1);

    // Add supertypes to classes
    g1 = createEGenericType(this.getContainerElement());
    EGenericType g2 = createEGenericType(this.getFXGElement());
    g1.getETypeArguments().add(g2);
    graphicEClass.getEGenericSuperTypes().add(g1);
    g1 = createEGenericType(this.getContainerElement());
    g2 = createEGenericType(this.getDefinition());
    g1.getETypeArguments().add(g2);
View Full Code Here

    initEClass(fileEClass, File.class, "File", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

    EOperation op = addEOperation(fileEClass, this.getInputStream(), "getContent", 0, 1, IS_UNIQUE, IS_ORDERED);
    addEParameter(op, this.getIProgressMonitor(), "progressMonitor", 0, 1, IS_UNIQUE, IS_ORDERED);
    EGenericType g1 = createEGenericType(ecorePackage.getEMap());
    EGenericType g2 = createEGenericType(ecorePackage.getEString());
    g1.getETypeArguments().add(g2);
    g2 = createEGenericType(ecorePackage.getEJavaObject());
    g1.getETypeArguments().add(g2);
    addEParameter(op, g1, "data", 0, 1, IS_UNIQUE, IS_ORDERED);
    addEException(op, this.getIOException());
View Full Code Here

    // Create type parameters
    ETypeParameter contentElementEClass_T = addETypeParameter(contentElementEClass, "T");
    ETypeParameter containerElementEClass_T = addETypeParameter(containerElementEClass, "T");

    // Set bounds for type parameters
    EGenericType g1 = createEGenericType(this.getSvgElement());
    contentElementEClass_T.getEBounds().add(g1);
    g1 = createEGenericType(this.getSvgElement());
    containerElementEClass_T.getEBounds().add(g1);

    // Add supertypes to classes
    g1 = createEGenericType(this.getContentElement());
    EGenericType g2 = createEGenericType(containerElementEClass_T);
    g1.getETypeArguments().add(g2);
    containerElementEClass.getEGenericSuperTypes().add(g1);
    g1 = createEGenericType(this.getSvgElement());
    svgSvgElementEClass.getEGenericSuperTypes().add(g1);
    g1 = createEGenericType(this.getContainerElement());
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.EGenericType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.