Examples of ETypeParameter


Examples of org.eclipse.emf.ecore.ETypeParameter

          }
        }
        public EGenericType resolve(EGenericType eGenericType)
        {
          ETypeParameter eTypeParameter = eGenericType.getETypeParameter();
          if (eTypeParameter != null)
          {
            EObject eContainer = eTypeParameter.eContainer();
            EGenericType [] eGenericTypes  = (EGenericType[])data;
            for (int i = 0; i < size; ++i)
            {
              EGenericType otherEGenericType = eGenericTypes[i];
              if (otherEGenericType.getEClassifier() == eContainer)
              {
                EList<EGenericType> eTypeArguments = otherEGenericType.getETypeArguments();
                int index = ((List<?>)eContainer.eGet(eTypeParameter.eContainmentFeature())).indexOf(eTypeParameter);
                if (index < eTypeArguments.size())
                {
                  return resolve(eTypeArguments.get(index));
                }
              }
View Full Code Here

Examples of org.eclipse.emf.ecore.ETypeParameter

          }
        }
      }
      else if (eContainer instanceof ETypeParameter)
      {
        ETypeParameter eTypeParameter = (ETypeParameter)eContainer;
        synchronized (eTypeParameter)
        {
          @SuppressWarnings("unchecked")
          Set<EGenericTypeImpl> eGenericTypes = (Set<EGenericTypeImpl>)(Set<?>)((ETypeParameterImpl)eTypeParameter).getEGenericTypes();
          for (EGenericTypeImpl eGenericType : eGenericTypes)
View Full Code Here

Examples of org.eclipse.emf.ecore.ETypeParameter

   * <!-- end-user-doc -->
   * @generated NOT
   */
  public NotificationChain basicSetETypeParameter(ETypeParameter newETypeParameter, NotificationChain msgs)
  {
    ETypeParameter oldETypeParameter = eTypeParameter;
    eTypeParameter = newETypeParameter;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EcorePackage.EGENERIC_TYPE__ETYPE_PARAMETER, oldETypeParameter, newETypeParameter);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of org.eclipse.emf.ecore.ETypeParameter

        // Obtain other dependent packages
        EFeaturePackage theEFeaturePackage = (EFeaturePackage)EPackage.Registry.INSTANCE.getEPackage(EFeaturePackage.eNS_URI);

        // Create type parameters
        ETypeParameter eFeatureDataEClass_A = addETypeParameter(eFeatureDataEClass, "A"); //$NON-NLS-1$
        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
        eFeatureDataEClass.getESuperTypes().add(theEFeaturePackage.getEFeature());

        // Initialize classes and features; add operations and parameters
View Full Code Here

Examples of org.eclipse.emf.ecore.ETypeParameter

        setNsURI(eNS_URI);

        // Create type parameters
        addETypeParameter(listEDataType, "T");
        addETypeParameter(eFeaturePropertyEDataType, "V");
        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");
        g1 = createEGenericType(this.getGeometry());
        t1.getEBounds().add(g1);
        g1 = createEGenericType(ecorePackage.getEJavaClass());
        g2 = createEGenericType(t1);
        g1.getETypeArguments().add(g2);
        addEParameter(op, g1, "valueType", 0, 1, IS_UNIQUE, IS_ORDERED);
        g1 = createEGenericType(this.getList());
View Full Code Here

Examples of org.eclipse.emf.ecore.ETypeParameter

    // Obtain other dependent packages
    EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);

    // Create type parameters
    ETypeParameter mtfConfigConsumerEClass_TFC = addETypeParameter(mtfConfigConsumerEClass, "TFC");
    ETypeParameter mDeviceEClass_TF = addETypeParameter(mDeviceEClass, "TF");
    ETypeParameter mSubDeviceHolderEClass_S = addETypeParameter(mSubDeviceHolderEClass, "S");
    ETypeParameter mSubDeviceEClass_B = addETypeParameter(mSubDeviceEClass, "B");
    ETypeParameter mSensorEClass_DeviceValue = addETypeParameter(mSensorEClass, "DeviceValue");
    ETypeParameter ohtfDeviceEClass_TFC = addETypeParameter(ohtfDeviceEClass, "TFC");
    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);
    mSubDeviceEClass_B.getEBounds().add(g1);
    g1 = createEGenericType(this.getMTinkerforgeValue());
    mSensorEClass_DeviceValue.getEBounds().add(g1);
    g1 = createEGenericType(this.getTFConfig());
    ohtfDeviceEClass_TFC.getEBounds().add(g1);
    g1 = createEGenericType(this.getEnum());
    ohtfDeviceEClass_IDS.getEBounds().add(g1);
    g1 = createEGenericType(this.getTFConfig());
    ohtfSubDeviceAdminDeviceEClass_TFC.getEBounds().add(g1);
    g1 = createEGenericType(this.getEnum());
    ohtfSubDeviceAdminDeviceEClass_IDS.getEBounds().add(g1);

    // Add supertypes to classes
    mDeviceEClass.getESuperTypes().add(this.getMBaseDevice());
    mOutSwitchActorEClass.getESuperTypes().add(this.getMSwitchActor());
    mInSwitchActorEClass.getESuperTypes().add(this.getMSwitchActor());
View Full Code Here

Examples of org.eclipse.emf.ecore.ETypeParameter

    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // 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);
View Full Code Here

Examples of org.eclipse.emf.ecore.ETypeParameter

    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // 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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.