public void testMetamodel() throws Exception {
   AbstractRule rule =
       GrammarUtil.findRuleForName(getGrammarAccess().getGrammar(), "OverridableParserRule2");
   assertNotNull("rule", rule);
   TypeRef ref = rule.getType();
   assertNotNull("ref", ref);
   final EClass clazz = (EClass) ref.getClassifier();
   assertNotNull("class", clazz);
   assertEquals("AType2", clazz.getName());
   assertEquals(2, clazz.getESuperTypes().size());
   Set<String> expectedNames =
       new HashSet<String>(Arrays.asList(new String[] {"AType", "RootRule"}));
   Iterator<String> iter =
       Iterables.transform(
               clazz.getESuperTypes(),
               new Function<EClass, String>() {
                 public String apply(EClass param) {
                   return param.getName();
                 }
               })
           .iterator();
   while (iter.hasNext()) {
     String name = iter.next();
     assertTrue("name = '" + name + "'", expectedNames.remove(name));
   }
   assertTrue(expectedNames.toString(), expectedNames.isEmpty());
 }
Beispiel #2
0
  public void testGetAllSuperTypesWithCycle() {
    EClass a = createEClass("a");
    EClass b = createEClass("b");
    b.getESuperTypes().add(a);
    a.getESuperTypes().add(b);

    // inconsistent and quasi-unpredictable in complex scenarios due to caching
    assertTrue(a.getEAllSuperTypes().contains(a));
    assertFalse(b.getEAllSuperTypes().contains(b));

    // always stable
    assertTrue(EcoreUtil2.getAllSuperTypes(a).contains(a));
    assertTrue(EcoreUtil2.getAllSuperTypes(b).contains(b));
  }
 public String getClassGeneralizations(EClass eClass) {
   StringBuilder sb = new StringBuilder();
   sb.append("\\subsubsection*{Generalizations}\n");
   sb.append("\\begin{itemize}\n");
   if (eClass.getESuperTypes().size() > 0) {
     for (EClass superclass : eClass.getESuperTypes()) {
       sb.append("\\item \\nameref{").append(superclass.getName()).append("}\n");
     }
   } else {
     sb.append("\\item None\n");
   }
   sb.append("\\end{itemize}");
   return sb.toString();
 }
Beispiel #4
0
 /**
  * Collecting all properties from a EMF object, if contansReferences is TRUE, all features should
  * be contained, otherwise, only EAttrubutes will be returned.
  */
 public static List<EStructuralFeature> collectProperties(
     EClass eClass,
     boolean containsSupers,
     boolean containsReferences,
     boolean containsUnsettables) {
   if (eClass == null) {
     return Collections.emptyList();
   }
   List<EStructuralFeature> properties = new ArrayList<EStructuralFeature>();
   List<EStructuralFeature> features = null;
   if (containsReferences) {
     features = eClass.getEStructuralFeatures();
   } else {
     features = new ArrayList<EStructuralFeature>(eClass.getEAttributes());
   }
   for (EStructuralFeature sf : features) {
     try {
       if (containsUnsettables || eClass.eIsSet(sf)) {
         properties.add(sf);
       }
     } catch (Exception e) {
     }
   }
   if (containsSupers) {
     EList<EClass> eSuperTypes = eClass.getESuperTypes();
     for (EClass eSuperClass : eSuperTypes) {
       properties.addAll(
           collectProperties(
               eSuperClass, containsSupers, containsReferences, containsUnsettables));
     }
   }
   return properties;
 }
  @Override
  public EClass eClass() {
    if (eClass == null) {
      ePackage = EcoreFactory.eINSTANCE.createEPackage();
      eClass = EcoreFactory.eINSTANCE.createEClass();
      ePackage.getEClassifiers().add(eClass);

      eClass.setName("StringWrapper"); // $NON-NLS-1$
      eClass.getESuperTypes().add(XMLTypePackage.eINSTANCE.getAnyType());
      ExtendedMetaData.INSTANCE.setName(eClass, ""); // $NON-NLS-1$
      eClass.setInstanceClass(AnyType.class);

      EAttribute eAttribute = EcoreFactory.eINSTANCE.createEAttribute();
      eAttribute.setName("value"); // $NON-NLS-1$
      eAttribute.setChangeable(true);
      eAttribute.setUnsettable(true);
      eAttribute.setEType(EcorePackage.eINSTANCE.getEClassifier("EString")); // $NON-NLS-1$
      eClass.getEStructuralFeatures().add(eAttribute);

      //			ExtendedMetaData.INSTANCE.setNamespace(eAttribute, ePackage.getNsURI());
      ExtendedMetaData.INSTANCE.setFeatureKind(eAttribute, ExtendedMetaData.ATTRIBUTE_FEATURE);
      ExtendedMetaData.INSTANCE.setName(eAttribute, "value"); // $NON-NLS-1$
    }
    return eClass;
  }
 private static void getAllSuperClasses(EClass eClass, Set<EClass> result) {
   EList superTypes = eClass.getESuperTypes();
   for (Iterator it = superTypes.iterator(); it.hasNext(); ) {
     EClass element = (EClass) it.next();
     result.add(element);
     getAllSuperClasses(element, result);
   }
 }
 private void addSuperclassesToMap(EClass eClass) {
   for (EClass superType : eClass.getESuperTypes()) {
     Class_ superType_ = (Class_) this.conversionResult.getFUMLElement(superType);
     if (superType_ != null) {
       map.addMapping(superType_, superType);
     }
   }
 }
Beispiel #8
0
 /**
  * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it
  * yields that result.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @return the first non-null result returned by a <code>caseXXX</code> call.
  * @generated
  */
 protected T doSwitch(EClass theEClass, EObject theEObject) {
   if (theEClass.eContainer() == modelPackage) {
     return doSwitch(theEClass.getClassifierID(), theEObject);
   } else {
     List<EClass> eSuperTypes = theEClass.getESuperTypes();
     return eSuperTypes.isEmpty()
         ? defaultCase(theEObject)
         : doSwitch(eSuperTypes.get(0), theEObject);
   }
 }
Beispiel #9
0
  public void testCommonCompatibleType02() {
    EClass a = createEClass("a");
    EClass b = createEClass("b");
    EClass c = createEClass("c");
    EClass d = createEClass("d");
    EClass e = createEClass("e");

    b.getESuperTypes().add(a);
    c.getESuperTypes().add(a);
    d.getESuperTypes().add(b);
    d.getESuperTypes().add(c);
    e.getESuperTypes().add(b);
    e.getESuperTypes().add(c);

    assertSame(a, EcoreUtil2.getCompatibleType(a, a));

    assertSame(a, EcoreUtil2.getCompatibleType(b, c));
    assertSame(b, EcoreUtil2.getCompatibleType(b, d));
    assertSame(a, EcoreUtil2.getCompatibleType(d, e));
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    Bpmn2Package theBpmn2Package =
        (Bpmn2Package) EPackage.Registry.INSTANCE.getEPackage(Bpmn2Package.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    documentRootEClass.getESuperTypes().add(theBpmn2Package.getDocumentRoot());

    // Initialize classes and features; add operations and parameters
    initEClass(
        documentRootEClass,
        DocumentRoot.class,
        "DocumentRoot",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getDocumentRoot_SampleCustomTaskId(),
        ecorePackage.getEString(),
        "sampleCustomTaskId",
        null,
        0,
        1,
        null,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);

    // Create annotations
    // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
    createExtendedMetaDataAnnotations();
  }
Beispiel #11
0
  public void testClone() throws Exception {
    Resource.Factory.Registry.INSTANCE
        .getExtensionToFactoryMap()
        .put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl());
    EPackage.Registry.INSTANCE.put(EcorePackage.eINSTANCE.getNsURI(), EcorePackage.eINSTANCE);

    ResourceSetImpl rs = new ResourceSetImpl();
    Resource r1 =
        rs.createResource(URI.createURI("foo.xmi"), ContentHandler.UNSPECIFIED_CONTENT_TYPE);
    Resource r2 =
        rs.createResource(URI.createURI("bar.xmi"), ContentHandler.UNSPECIFIED_CONTENT_TYPE);
    EClass a = EcoreFactory.eINSTANCE.createEClass();
    a.setName("a");
    EClass b = EcoreFactory.eINSTANCE.createEClass();
    r1.getContents().add(a);
    b.setName("b");
    b.getESuperTypes().add(a);
    r2.getContents().add(b);

    ResourceSetImpl clone = EcoreUtil2.clone(new ResourceSetImpl(), rs);
    EList<Resource> list = clone.getResources();

    Resource resA = list.get(0);
    assertEquals(URI.createURI("foo.xmi"), resA.getURI());
    assertNotSame(resA, r1);

    Resource resB = list.get(1);
    assertEquals(URI.createURI("bar.xmi"), resB.getURI());
    assertNotSame(resB, r2);

    EClass a1 = (EClass) resA.getContents().get(0);
    EClass b1 = (EClass) resB.getContents().get(0);
    assertEquals("a", a1.getName());
    assertNotSame(a, a1);
    assertEquals("b", b1.getName());
    assertNotSame(b, b1);
    assertSame(b1.getESuperTypes().get(0), a1);
    assertSame(b.getESuperTypes().get(0), a);
  }
Beispiel #12
0
  public void testCommonCompatibleType01() {
    EClass a = createEClass("a");
    EClass b = createEClass("b");
    EClass c = createEClass("c");
    EClass d = createEClass("d");
    EClass e = createEClass("e");
    EClass f = createEClass("f");

    c.getESuperTypes().add(a);
    d.getESuperTypes().add(c);
    d.getESuperTypes().add(b);
    e.getESuperTypes().add(c);
    f.getESuperTypes().add(a);
    f.getESuperTypes().add(b);
    f.getESuperTypes().add(e);

    assertSame(a, EcoreUtil2.getCompatibleType(a, a));
    assertSame(EOBJECT, EcoreUtil2.getCompatibleType(d, f));
    assertSame(c, EcoreUtil2.getCompatibleType(d, e));
    assertSame(b, EcoreUtil2.getCompatibleType(b, f));
    assertSame(EOBJECT, EcoreUtil2.getCompatibleType(b, c));
  }
Beispiel #13
0
 public static Attribution getAttribution(EObject eObject) {
   if (eObject == null) {
     logger.warn("getAttribution for null");
     return null;
   }
   if (eObject.eIsProxy()) { // Shouldn't happen, but certainly does during development
     logger.warn("getAttribution for proxy " + eObject);
     return null;
   }
   EClass eClass = eObject.eClass();
   Attribution attribution = Attribution.REGISTRY.get(eClass);
   if (attribution == null) {
     for (EClass superClass = eClass; superClass.getESuperTypes().size() > 0; ) {
       superClass = superClass.getESuperTypes().get(0);
       attribution = Attribution.REGISTRY.get(superClass);
       if (attribution != null) {
         Attribution.REGISTRY.put(eClass, attribution);
         break;
       }
     }
   }
   return attribution;
 }
Beispiel #14
0
 public static @NonNull Attribution getAttribution(@NonNull EObject eObject) {
   if (eObject.eIsProxy()) { // Shouldn't happen, but certainly does during development
     logger.warn("getAttribution for proxy " + eObject);
     return NullAttribution.INSTANCE;
   } else {
     EClass eClass = eObject.eClass();
     Attribution attribution = Attribution.REGISTRY.get(eClass);
     if (attribution == null) {
       for (EClass superClass = eClass; superClass.getESuperTypes().size() > 0; ) {
         superClass = superClass.getESuperTypes().get(0);
         attribution = Attribution.REGISTRY.get(superClass);
         if (attribution != null) {
           break;
         }
       }
       if (attribution == null) {
         attribution = NullAttribution.INSTANCE;
       }
       Attribution.REGISTRY.put(eClass, attribution);
     }
     return attribution;
   }
 }
Beispiel #15
0
 public static EActivityGroupDef getActivityGroupDef(EActivityGroup activityGroup) {
   EObject object = activityGroup.getData();
   if (object != null) {
     EClass eClass = object.eClass();
     if (eClass instanceof EActivityGroupDef) {
       return (EActivityGroupDef) eClass;
     }
     for (EClass eSupertype : eClass.getESuperTypes()) {
       if (eSupertype instanceof EActivityGroupDef) {
         return (EActivityGroupDef) eSupertype;
       }
     }
     return ActivityDictionary.getInstance().getActivityGroupDef();
   }
   return null;
 }
  @Override
  public Object caseEClass(EClass object) {
    Type type = getType(object);

    if (object.isInterface()) {
    } else { // class
      Class clazz = (Class) type;
      clazz.setAbstract(object.isAbstract());
    }

    Set<Type> assocAndGen = new HashSet<>();
    Set<Type> dependencies = new HashSet<>();

    for (EClass eSuperType : object.getESuperTypes()) {
      Type superType = getType(eSuperType);
      assocAndGen.add(superType);

      if (eSuperType.isInterface()) {
        type.addInterface((Interface) superType);
      } else {
        type.addSuperClass((Class) superType);
      }
    }

    for (EStructuralFeature eFeature : object.getEStructuralFeatures()) {
      Attribute attr = (Attribute) doSwitch(eFeature);
      type.addAttribute(attr);

      assocAndGen.add(attr.type);
    }
    for (EOperation eOperation : object.getEOperations()) {
      Operation op = (Operation) doSwitch(eOperation);
      type.addOperation(op);

      dependencies.add(op.type);
      for (TypedElement fpar : op.formalParameters()) {
        dependencies.add(fpar.type);
      }
    }
    dependencies.removeAll(assocAndGen);
    for (Type dep : dependencies) {
      type.addDependency(dep);
    }

    return type;
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    BehaviorsPackage theBehaviorsPackage =
        (BehaviorsPackage) EPackage.Registry.INSTANCE.getEPackage(BehaviorsPackage.eNS_URI);
    ColumnsPackage theColumnsPackage =
        (ColumnsPackage) EPackage.Registry.INSTANCE.getEPackage(ColumnsPackage.eNS_URI);
    RelationsPackage theRelationsPackage =
        (RelationsPackage) EPackage.Registry.INSTANCE.getEPackage(RelationsPackage.eNS_URI);
    OptionsPackage theOptionsPackage =
        (OptionsPackage) EPackage.Registry.INSTANCE.getEPackage(OptionsPackage.eNS_URI);
    ListenersPackage theListenersPackage =
        (ListenersPackage) EPackage.Registry.INSTANCE.getEPackage(ListenersPackage.eNS_URI);
    IndexesPackage theIndexesPackage =
        (IndexesPackage) EPackage.Registry.INSTANCE.getEPackage(IndexesPackage.eNS_URI);
    InheritancePackage theInheritancePackage =
        (InheritancePackage) EPackage.Registry.INSTANCE.getEPackage(InheritancePackage.eNS_URI);
    ChecksPackage theChecksPackage =
        (ChecksPackage) EPackage.Registry.INSTANCE.getEPackage(ChecksPackage.eNS_URI);
    CommonPackage theCommonPackage =
        (CommonPackage) EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
    ConnectionPackage theConnectionPackage =
        (ConnectionPackage) EPackage.Registry.INSTANCE.getEPackage(ConnectionPackage.eNS_URI);
    PackagePackage thePackagePackage =
        (PackagePackage) EPackage.Registry.INSTANCE.getEPackage(PackagePackage.eNS_URI);

    // Add subpackages
    getESubpackages().add(theBehaviorsPackage);
    getESubpackages().add(theColumnsPackage);
    getESubpackages().add(theRelationsPackage);
    getESubpackages().add(theOptionsPackage);
    getESubpackages().add(theListenersPackage);
    getESubpackages().add(theIndexesPackage);
    getESubpackages().add(theInheritancePackage);
    getESubpackages().add(theChecksPackage);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    classEClass.getESuperTypes().add(theCommonPackage.getNamedElement());
    classEClass.getESuperTypes().add(theConnectionPackage.getConnectableElement());

    // Initialize classes and features; add operations and parameters
    initEClass(
        classEClass,
        doctrine.Class.Class.class,
        "Class",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getClass_Behaviors(),
        theBehaviorsPackage.getBehaviors(),
        null,
        "behaviors",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_Columns(),
        theColumnsPackage.getColumns(),
        null,
        "columns",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getClass_TableName(),
        ecorePackage.getEString(),
        "tableName",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_Package(),
        thePackagePackage.getAbstractContainer(),
        thePackagePackage.getAbstractContainer_Classes(),
        "package",
        null,
        1,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_Options(),
        theOptionsPackage.getOptions(),
        null,
        "options",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_Listeners(),
        theListenersPackage.getListeners(),
        null,
        "listeners",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_Inheritance(),
        theInheritancePackage.getInheritance(),
        null,
        "inheritance",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_Indexes(),
        theIndexesPackage.getIndexes(),
        null,
        "indexes",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_ExtendedBy(),
        theInheritancePackage.getInheritance(),
        theInheritancePackage.getInheritance_Class(),
        "extendedBy",
        null,
        0,
        -1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_Checks(),
        theChecksPackage.getChecks(),
        null,
        "checks",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getClass_Relations(),
        theRelationsPackage.getRelations(),
        null,
        "relations",
        null,
        0,
        1,
        doctrine.Class.Class.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) {
      return;
    }
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

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

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    papyrusViewStyleEClass.getESuperTypes().add(theNotationPackage.getStyle());

    // Initialize classes, features, and operations; add parameters
    initEClass(
        papyrusViewStyleEClass,
        PapyrusViewStyle.class,
        "PapyrusViewStyle",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getPapyrusViewStyle_Owner(),
        theEcorePackage.getEObject(),
        null,
        "owner",
        null,
        1,
        1,
        PapyrusViewStyle.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getPapyrusViewStyle_Configuration(),
        theConfigurationPackage.getPapyrusView(),
        null,
        "configuration",
        null,
        1,
        1,
        PapyrusViewStyle.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage theEnvironmentPackage_1 =
        (org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage)
            EPackage.Registry.INSTANCE.getEPackage(
                org.eclipse.papyrus.infra.constraints.environment.EnvironmentPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    environmentEClass.getESuperTypes().add(theEnvironmentPackage_1.getConstraintEnvironment());
    propertyEditorTypeEClass.getESuperTypes().add(this.getWidgetType());
    compositeWidgetTypeEClass.getESuperTypes().add(this.getWidgetType());
    layoutTypeEClass.getESuperTypes().add(this.getWidgetType());
    standardWidgetTypeEClass.getESuperTypes().add(this.getWidgetType());

    // Initialize classes and features; add operations and parameters
    initEClass(
        environmentEClass,
        Environment.class,
        "Environment",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getEnvironment_ModelElementFactories(),
        this.getModelElementFactoryDescriptor(),
        null,
        "modelElementFactories",
        null,
        0,
        -1,
        Environment.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getEnvironment_WidgetTypes(),
        this.getStandardWidgetType(),
        null,
        "widgetTypes",
        null,
        0,
        -1,
        Environment.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getEnvironment_PropertyEditorTypes(),
        this.getPropertyEditorType(),
        null,
        "propertyEditorTypes",
        null,
        0,
        -1,
        Environment.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getEnvironment_CompositeWidgetTypes(),
        this.getCompositeWidgetType(),
        null,
        "compositeWidgetTypes",
        null,
        0,
        -1,
        Environment.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getEnvironment_LayoutTypes(),
        this.getLayoutType(),
        null,
        "layoutTypes",
        null,
        0,
        -1,
        Environment.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getEnvironment_Namespaces(),
        this.getNamespace(),
        null,
        "namespaces",
        null,
        0,
        -1,
        Environment.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getEnvironment_MiscClasses(),
        this.getMiscClass(),
        null,
        "miscClasses",
        null,
        0,
        -1,
        Environment.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        propertyEditorTypeEClass,
        PropertyEditorType.class,
        "PropertyEditorType",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getPropertyEditorType_Type(),
        this.getType(),
        "type",
        null,
        1,
        1,
        PropertyEditorType.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getPropertyEditorType_Multiplicity(),
        ecorePackage.getEInt(),
        "multiplicity",
        "1",
        1,
        1,
        PropertyEditorType.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        widgetTypeEClass,
        WidgetType.class,
        "WidgetType",
        IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getWidgetType_Label(),
        ecorePackage.getEString(),
        "label",
        null,
        1,
        1,
        WidgetType.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getWidgetType_WidgetClass(),
        ecorePackage.getEString(),
        "widgetClass",
        null,
        1,
        1,
        WidgetType.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getWidgetType_Namespace(),
        this.getNamespace(),
        null,
        "namespace",
        null,
        0,
        1,
        WidgetType.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        compositeWidgetTypeEClass,
        CompositeWidgetType.class,
        "CompositeWidgetType",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        layoutTypeEClass,
        LayoutType.class,
        "LayoutType",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        modelElementFactoryDescriptorEClass,
        ModelElementFactoryDescriptor.class,
        "ModelElementFactoryDescriptor",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getModelElementFactoryDescriptor_Name(),
        ecorePackage.getEString(),
        "name",
        null,
        1,
        1,
        ModelElementFactoryDescriptor.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getModelElementFactoryDescriptor_FactoryClass(),
        ecorePackage.getEString(),
        "factoryClass",
        null,
        1,
        1,
        ModelElementFactoryDescriptor.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        standardWidgetTypeEClass,
        StandardWidgetType.class,
        "StandardWidgetType",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        namespaceEClass,
        Namespace.class,
        "Namespace",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getNamespace_Prefix(),
        ecorePackage.getEString(),
        "prefix",
        "clr-namespace",
        0,
        1,
        Namespace.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getNamespace_Name(),
        ecorePackage.getEString(),
        "name",
        null,
        0,
        1,
        Namespace.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getNamespace_Value(),
        ecorePackage.getEString(),
        "value",
        null,
        1,
        1,
        Namespace.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        miscClassEClass,
        MiscClass.class,
        "MiscClass",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getMiscClass_Label(),
        ecorePackage.getEString(),
        "label",
        null,
        0,
        1,
        MiscClass.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getMiscClass_Class(),
        ecorePackage.getEString(),
        "class",
        null,
        1,
        1,
        MiscClass.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getMiscClass_Namespace(),
        this.getNamespace(),
        null,
        "namespace",
        null,
        0,
        1,
        MiscClass.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(typeEEnum, Type.class, "Type");
    addEEnumLiteral(typeEEnum, Type.STRING);
    addEEnumLiteral(typeEEnum, Type.BOOLEAN);
    addEEnumLiteral(typeEEnum, Type.INTEGER);
    addEEnumLiteral(typeEEnum, Type.REFERENCE);
    addEEnumLiteral(typeEEnum, Type.ENUMERATION);

    // Create resource
    createResource(eNS_URI);
  }
Beispiel #20
0
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

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

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    choiceElementEClass.getESuperTypes().add(this.getAbstractElement());
    reducibleElementEClass.getESuperTypes().add(this.getAbstractElement());
    terminalElementEClass.getESuperTypes().add(this.getReducibleElement());
    reducibleCompositeEClass.getESuperTypes().add(this.getReducibleElement());

    // Initialize classes and features; add operations and parameters
    initEClass(
        modelEClass,
        Model.class,
        "Model",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getModel_MultiFeature(),
        this.getAbstractElement(),
        null,
        "multiFeature",
        null,
        0,
        -1,
        Model.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        abstractElementEClass,
        AbstractElement.class,
        "AbstractElement",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        choiceElementEClass,
        ChoiceElement.class,
        "ChoiceElement",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getChoiceElement_OptionalKeyword(),
        theEcorePackage.getEBoolean(),
        "optionalKeyword",
        null,
        0,
        1,
        ChoiceElement.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getChoiceElement_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        ChoiceElement.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        reducibleElementEClass,
        ReducibleElement.class,
        "ReducibleElement",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        terminalElementEClass,
        TerminalElement.class,
        "TerminalElement",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getTerminalElement_StringFeature(),
        theEcorePackage.getEString(),
        "stringFeature",
        null,
        0,
        1,
        TerminalElement.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        reducibleCompositeEClass,
        ReducibleComposite.class,
        "ReducibleComposite",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getReducibleComposite_ActionFeature(),
        this.getTerminalElement(),
        null,
        "actionFeature",
        null,
        0,
        -1,
        ReducibleComposite.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    TimingPackage theTimingPackage =
        (TimingPackage) EPackage.Registry.INSTANCE.getEPackage(TimingPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    delayConstraintEClass.getESuperTypes().add(theTimingPackage.getTimingConstraint());
    ageTimingConstraintEClass.getESuperTypes().add(this.getDelayConstraint());
    eventConstraintEClass.getESuperTypes().add(theTimingPackage.getTimingConstraint());
    inputSynchronizationConstraintEClass.getESuperTypes().add(this.getAgeTimingConstraint());
    outputSynchronizationConstraintEClass.getESuperTypes().add(this.getReactionConstraint());
    reactionConstraintEClass.getESuperTypes().add(this.getDelayConstraint());
    sporadicEventConstraintEClass.getESuperTypes().add(this.getEventConstraint());
    periodicEventConstraintEClass.getESuperTypes().add(this.getEventConstraint());
    patternEventConstraintEClass.getESuperTypes().add(this.getEventConstraint());
    arbitraryEventConstraintEClass.getESuperTypes().add(this.getEventConstraint());

    // Initialize classes and features; add operations and parameters
    initEClass(
        delayConstraintEClass,
        DelayConstraint.class,
        "DelayConstraint",
        IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getDelayConstraint_Jitter(),
        theTimingPackage.getTimeDuration(),
        null,
        "jitter",
        null,
        0,
        1,
        DelayConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getDelayConstraint_Nominal(),
        theTimingPackage.getTimeDuration(),
        null,
        "nominal",
        null,
        0,
        1,
        DelayConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getDelayConstraint_Scope(),
        theTimingPackage.getEventChain(),
        null,
        "scope",
        null,
        0,
        1,
        DelayConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);

    initEClass(
        ageTimingConstraintEClass,
        AgeTimingConstraint.class,
        "AgeTimingConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        eventConstraintEClass,
        EventConstraint.class,
        "EventConstraint",
        IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getEventConstraint_Event(),
        theTimingPackage.getEvent(),
        null,
        "event",
        null,
        0,
        1,
        EventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getEventConstraint_Offset(),
        theTimingPackage.getTimeDuration(),
        null,
        "offset",
        null,
        0,
        1,
        EventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);

    initEClass(
        inputSynchronizationConstraintEClass,
        InputSynchronizationConstraint.class,
        "InputSynchronizationConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getInputSynchronizationConstraint_Width(),
        theTimingPackage.getTimeDuration(),
        null,
        "width",
        null,
        1,
        1,
        InputSynchronizationConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);

    initEClass(
        outputSynchronizationConstraintEClass,
        OutputSynchronizationConstraint.class,
        "OutputSynchronizationConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getOutputSynchronizationConstraint_Width(),
        theTimingPackage.getTimeDuration(),
        null,
        "width",
        null,
        1,
        1,
        OutputSynchronizationConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);

    initEClass(
        reactionConstraintEClass,
        ReactionConstraint.class,
        "ReactionConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        sporadicEventConstraintEClass,
        SporadicEventConstraint.class,
        "SporadicEventConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getSporadicEventConstraint_Jitter(),
        theTimingPackage.getTimeDuration(),
        null,
        "jitter",
        null,
        0,
        1,
        SporadicEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getSporadicEventConstraint_Period(),
        theTimingPackage.getTimeDuration(),
        null,
        "period",
        null,
        1,
        1,
        SporadicEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getSporadicEventConstraint_MaximumInterArrivalTime(),
        theTimingPackage.getTimeDuration(),
        null,
        "maximumInterArrivalTime",
        null,
        0,
        1,
        SporadicEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getSporadicEventConstraint_MinimumInterArrivalTime(),
        theTimingPackage.getTimeDuration(),
        null,
        "minimumInterArrivalTime",
        null,
        1,
        1,
        SporadicEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);

    initEClass(
        periodicEventConstraintEClass,
        PeriodicEventConstraint.class,
        "PeriodicEventConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getPeriodicEventConstraint_Jitter(),
        theTimingPackage.getTimeDuration(),
        null,
        "jitter",
        null,
        1,
        1,
        PeriodicEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getPeriodicEventConstraint_Period(),
        theTimingPackage.getTimeDuration(),
        null,
        "period",
        null,
        1,
        1,
        PeriodicEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getPeriodicEventConstraint_MinimumInterArrivalTime(),
        theTimingPackage.getTimeDuration(),
        null,
        "minimumInterArrivalTime",
        null,
        1,
        1,
        PeriodicEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);

    initEClass(
        patternEventConstraintEClass,
        PatternEventConstraint.class,
        "PatternEventConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getPatternEventConstraint_Period(),
        theTimingPackage.getTimeDuration(),
        null,
        "period",
        null,
        1,
        1,
        PatternEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getPatternEventConstraint_MinimumInterArrivalTime(),
        theTimingPackage.getTimeDuration(),
        null,
        "minimumInterArrivalTime",
        null,
        1,
        1,
        PatternEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getPatternEventConstraint_Occurence(),
        theTimingPackage.getTimeDuration(),
        null,
        "occurence",
        null,
        1,
        -1,
        PatternEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getPatternEventConstraint_Jitter(),
        theTimingPackage.getTimeDuration(),
        null,
        "jitter",
        null,
        1,
        1,
        PatternEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);

    initEClass(
        arbitraryEventConstraintEClass,
        ArbitraryEventConstraint.class,
        "ArbitraryEventConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getArbitraryEventConstraint_MinimumInterArrivalTime(),
        theTimingPackage.getTimeDuration(),
        null,
        "minimumInterArrivalTime",
        null,
        1,
        -1,
        ArbitraryEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
    initEReference(
        getArbitraryEventConstraint_MaximumInterArrivalTime(),
        theTimingPackage.getTimeDuration(),
        null,
        "maximumInterArrivalTime",
        null,
        1,
        -1,
        ArbitraryEventConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        !IS_UNIQUE,
        !IS_DERIVED,
        !IS_ORDERED);
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    TbasePackage theTbasePackage =
        (TbasePackage) EPackage.Registry.INSTANCE.getEPackage(TbasePackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    a2EClass.getESuperTypes().add(theTbasePackage.getA());
    b2EClass.getESuperTypes().add(theTbasePackage.getB());

    // Initialize classes, features, and operations; add parameters
    initEClass(
        a2EClass,
        example5.tderived.A2.class,
        "A2",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getA2_OwnsD(),
        this.getD(),
        null,
        "ownsD",
        null,
        0,
        -1,
        example5.tderived.A2.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        b2EClass,
        example5.tderived.B2.class,
        "B2",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getB2_AnotherName(),
        ecorePackage.getEString(),
        "anotherName",
        null,
        0,
        1,
        example5.tderived.B2.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        dEClass,
        example5.tderived.D.class,
        "D",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    // Create resource
    createResource(eNS_URI);

    // Create annotations
    // http://www.eclipse.org/emf/2002/Ecore
    createEcoreAnnotations();
  }
Beispiel #23
0
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

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

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    simpleEClass.getESuperTypes().add(this.getModel());
    ruleCallsEClass.getESuperTypes().add(this.getModel());
    ruleCallsSubEClass.getESuperTypes().add(this.getRuleCalls());
    optionalCallsEClass.getESuperTypes().add(this.getModel());
    recursionEClass.getESuperTypes().add(this.getModel());
    recursionSubEClass.getESuperTypes().add(this.getRecursion());
    loopEClass.getESuperTypes().add(this.getModel());
    expressionEClass.getESuperTypes().add(this.getModel());
    ruleCalls12EClass.getESuperTypes().add(this.getModel());
    parameterEClass.getESuperTypes().add(this.getField());
    nestedStartEClass.getESuperTypes().add(this.getModel());
    nestedStartSubEClass.getESuperTypes().add(this.getNestedStart());
    addEClass.getESuperTypes().add(this.getExpression());
    multEClass.getESuperTypes().add(this.getExpression());
    valueEClass.getESuperTypes().add(this.getExpression());
    functionEClass.getESuperTypes().add(this.getExpression());
    pointerEClass.getESuperTypes().add(this.getExpression());

    // Initialize classes and features; add operations and parameters
    initEClass(
        modelEClass,
        Model.class,
        "Model",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        simpleEClass,
        Simple.class,
        "Simple",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getSimple_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        Simple.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getSimple_Optional(),
        theEcorePackage.getEString(),
        "optional",
        null,
        0,
        1,
        Simple.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getSimple_Datatype(),
        theEcorePackage.getEString(),
        "datatype",
        null,
        0,
        1,
        Simple.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        ruleCallsEClass,
        RuleCalls.class,
        "RuleCalls",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        ruleCallsSubEClass,
        RuleCallsSub.class,
        "RuleCallsSub",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getRuleCallsSub_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        RuleCallsSub.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getRuleCallsSub_Call1(),
        this.getRuleCallsAss1(),
        null,
        "call1",
        null,
        0,
        1,
        RuleCallsSub.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getRuleCallsSub_Call2(),
        this.getRuleCallsAss2(),
        null,
        "call2",
        null,
        0,
        1,
        RuleCallsSub.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getRuleCallsSub_Sub(),
        theEcorePackage.getEString(),
        "sub",
        null,
        0,
        1,
        RuleCallsSub.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        ruleCallsAss1EClass,
        RuleCallsAss1.class,
        "RuleCallsAss1",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getRuleCallsAss1_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        RuleCallsAss1.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        ruleCallsAss2EClass,
        RuleCallsAss2.class,
        "RuleCallsAss2",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getRuleCallsAss2_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        RuleCallsAss2.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        optionalCallsEClass,
        OptionalCalls.class,
        "OptionalCalls",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getOptionalCalls_Opt1(),
        this.getOptionalCallsSub1(),
        null,
        "opt1",
        null,
        0,
        1,
        OptionalCalls.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getOptionalCalls_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        OptionalCalls.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        optionalCallsSub1EClass,
        OptionalCallsSub1.class,
        "OptionalCallsSub1",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getOptionalCallsSub1_Opt2(),
        this.getOptionalCallsSub2(),
        null,
        "opt2",
        null,
        0,
        1,
        OptionalCallsSub1.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getOptionalCallsSub1_Opt3(),
        this.getOptionalCallsSub3(),
        null,
        "opt3",
        null,
        0,
        1,
        OptionalCallsSub1.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        optionalCallsSub2EClass,
        OptionalCallsSub2.class,
        "OptionalCallsSub2",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getOptionalCallsSub2_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        OptionalCallsSub2.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        optionalCallsSub3EClass,
        OptionalCallsSub3.class,
        "OptionalCallsSub3",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getOptionalCallsSub3_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        OptionalCallsSub3.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        recursionEClass,
        Recursion.class,
        "Recursion",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        recursionSubEClass,
        RecursionSub.class,
        "RecursionSub",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getRecursionSub_Sub(),
        this.getRecursionSub(),
        null,
        "sub",
        null,
        0,
        -1,
        RecursionSub.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getRecursionSub_Vals(),
        theEcorePackage.getEString(),
        "vals",
        null,
        0,
        -1,
        RecursionSub.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        !IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getRecursionSub_Semi(),
        theEcorePackage.getEBoolean(),
        "semi",
        null,
        0,
        1,
        RecursionSub.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        loopEClass, Loop.class, "Loop", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getLoop_Names(),
        theEcorePackage.getEString(),
        "names",
        null,
        0,
        -1,
        Loop.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        !IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getLoop_Gr(),
        theEcorePackage.getEString(),
        "gr",
        null,
        0,
        -1,
        Loop.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        !IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getLoop_Ints(),
        theEcorePackage.getEInt(),
        "ints",
        null,
        0,
        -1,
        Loop.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        !IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getLoop_Strings(),
        theEcorePackage.getEString(),
        "strings",
        null,
        0,
        -1,
        Loop.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        !IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        expressionEClass,
        Expression.class,
        "Expression",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        ruleCalls12EClass,
        RuleCalls12.class,
        "RuleCalls12",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getRuleCalls12_Constructor(),
        this.getConstructor(),
        null,
        "constructor",
        null,
        0,
        1,
        RuleCalls12.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getRuleCalls12_Fields(),
        this.getField(),
        null,
        "fields",
        null,
        0,
        -1,
        RuleCalls12.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        constructorEClass,
        Constructor.class,
        "Constructor",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getConstructor_Kw1(),
        theEcorePackage.getEBoolean(),
        "kw1",
        null,
        0,
        1,
        Constructor.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        fieldEClass,
        Field.class,
        "Field",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        parameterEClass,
        Parameter.class,
        "Parameter",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getParameter_Kw2(),
        theEcorePackage.getEBoolean(),
        "kw2",
        null,
        0,
        1,
        Parameter.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        nestedStartEClass,
        NestedStart.class,
        "NestedStart",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        nestedStartSubEClass,
        NestedStartSub.class,
        "NestedStartSub",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getNestedStartSub_Name(),
        theEcorePackage.getEString(),
        "name",
        null,
        0,
        1,
        NestedStartSub.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        addEClass, Add.class, "Add", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getAdd_Left(),
        this.getExpression(),
        null,
        "left",
        null,
        0,
        1,
        Add.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getAdd_Right(),
        this.getExpression(),
        null,
        "right",
        null,
        0,
        1,
        Add.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        multEClass, Mult.class, "Mult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getMult_Left(),
        this.getExpression(),
        null,
        "left",
        null,
        0,
        1,
        Mult.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getMult_Right(),
        this.getExpression(),
        null,
        "right",
        null,
        0,
        1,
        Mult.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        valueEClass,
        Value.class,
        "Value",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getValue_Val(),
        theEcorePackage.getEInt(),
        "val",
        null,
        0,
        1,
        Value.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        functionEClass,
        Function.class,
        "Function",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getFunction_Func(),
        theEcorePackage.getEString(),
        "func",
        null,
        0,
        1,
        Function.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getFunction_Param(),
        this.getExpression(),
        null,
        "param",
        null,
        0,
        -1,
        Function.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        pointerEClass,
        Pointer.class,
        "Pointer",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getPointer_Target(),
        this.getExpression(),
        null,
        "target",
        null,
        0,
        1,
        Pointer.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    flowchartEClass.getESuperTypes().add(this.getNamedElement());
    nodeEClass.getESuperTypes().add(this.getNamedElement());
    actionEClass.getESuperTypes().add(this.getNode());
    decisionEClass.getESuperTypes().add(this.getNode());
    startEClass.getESuperTypes().add(this.getNode());
    endEClass.getESuperTypes().add(this.getNode());
    relationalConstraintEClass.getESuperTypes().add(this.getConstraint());
    literalEClass.getESuperTypes().add(this.getExpression());
    integerLitEClass.getESuperTypes().add(this.getLiteral());
    stringLitEClass.getESuperTypes().add(this.getLiteral());
    boolLitEClass.getESuperTypes().add(this.getLiteral());
    arithmeticExpressionEClass.getESuperTypes().add(this.getExpression());
    relationalExpressionEClass.getESuperTypes().add(this.getExpression());
    varReferenceEClass.getESuperTypes().add(this.getExpression());
    programEClass.getESuperTypes().add(this.getStatement());
    conditionalEClass.getESuperTypes().add(this.getStatement());
    loopEClass.getESuperTypes().add(this.getStatement());
    consoleOutputEClass.getESuperTypes().add(this.getStatement());
    printlnEClass.getESuperTypes().add(this.getConsoleOutput());
    printEClass.getESuperTypes().add(this.getConsoleOutput());
    assignationEClass.getESuperTypes().add(this.getStatement());
    waitEClass.getESuperTypes().add(this.getStatement());
    varDeclEClass.getESuperTypes().add(this.getStatement());

    // Initialize classes, features, and operations; add parameters
    initEClass(
        namedElementEClass,
        NamedElement.class,
        "NamedElement",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getNamedElement_Name(),
        ecorePackage.getEString(),
        "name",
        null,
        0,
        1,
        NamedElement.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        flowchartEClass,
        Flowchart.class,
        "Flowchart",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getFlowchart_Nodes(),
        this.getNode(),
        null,
        "nodes",
        null,
        0,
        -1,
        Flowchart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getFlowchart_Arcs(),
        this.getArc(),
        null,
        "arcs",
        null,
        0,
        -1,
        Flowchart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        nodeEClass, Node.class, "Node", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getNode_Outgoing(),
        this.getArc(),
        this.getArc_Source(),
        "outgoing",
        null,
        0,
        -1,
        Node.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getNode_Incoming(),
        this.getArc(),
        this.getArc_Target(),
        "incoming",
        null,
        0,
        -1,
        Node.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        arcEClass, Arc.class, "Arc", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getArc_Source(),
        this.getNode(),
        this.getNode_Outgoing(),
        "source",
        null,
        0,
        1,
        Arc.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getArc_Target(),
        this.getNode(),
        this.getNode_Incoming(),
        "target",
        null,
        0,
        1,
        Arc.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        actionEClass,
        Action.class,
        "Action",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getAction_DoProgram(),
        this.getProgram(),
        null,
        "doProgram",
        null,
        0,
        1,
        Action.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        decisionEClass,
        Decision.class,
        "Decision",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getDecision_Guard(),
        this.getConstraint(),
        null,
        "guard",
        null,
        1,
        1,
        Decision.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        startEClass,
        Start.class,
        "Start",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        endEClass, End.class, "End", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        constraintEClass,
        Constraint.class,
        "Constraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        relationalConstraintEClass,
        RelationalConstraint.class,
        "RelationalConstraint",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getRelationalConstraint_Expression(),
        this.getExpression(),
        null,
        "expression",
        null,
        1,
        1,
        RelationalConstraint.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        expressionEClass,
        Expression.class,
        "Expression",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        literalEClass,
        Literal.class,
        "Literal",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        integerLitEClass,
        IntegerLit.class,
        "IntegerLit",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getIntegerLit_Value(),
        ecorePackage.getEInt(),
        "value",
        null,
        0,
        1,
        IntegerLit.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        stringLitEClass,
        StringLit.class,
        "StringLit",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getStringLit_Value(),
        ecorePackage.getEString(),
        "value",
        null,
        0,
        1,
        StringLit.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        boolLitEClass,
        BoolLit.class,
        "BoolLit",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getBoolLit_Value(),
        ecorePackage.getEBoolean(),
        "value",
        null,
        0,
        1,
        BoolLit.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        arithmeticExpressionEClass,
        ArithmeticExpression.class,
        "ArithmeticExpression",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getArithmeticExpression_Left(),
        this.getExpression(),
        null,
        "left",
        null,
        1,
        1,
        ArithmeticExpression.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getArithmeticExpression_Right(),
        this.getExpression(),
        null,
        "right",
        null,
        1,
        1,
        ArithmeticExpression.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getArithmeticExpression_Operator(),
        this.getArithmeticOperator(),
        "operator",
        null,
        0,
        1,
        ArithmeticExpression.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        relationalExpressionEClass,
        RelationalExpression.class,
        "RelationalExpression",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getRelationalExpression_Operator(),
        this.getRelationalOperator(),
        "operator",
        null,
        0,
        1,
        RelationalExpression.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getRelationalExpression_Left(),
        this.getExpression(),
        null,
        "left",
        null,
        1,
        1,
        RelationalExpression.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getRelationalExpression_Right(),
        this.getExpression(),
        null,
        "right",
        null,
        1,
        1,
        RelationalExpression.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        varReferenceEClass,
        VarReference.class,
        "VarReference",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getVarReference_Key(),
        ecorePackage.getEString(),
        "key",
        null,
        0,
        1,
        VarReference.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        statementEClass,
        Statement.class,
        "Statement",
        IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        programEClass,
        Program.class,
        "Program",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getProgram_Statements(),
        this.getStatement(),
        null,
        "statements",
        null,
        0,
        -1,
        Program.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        conditionalEClass,
        Conditional.class,
        "Conditional",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getConditional_ThenInstructions(),
        this.getProgram(),
        null,
        "thenInstructions",
        null,
        0,
        1,
        Conditional.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getConditional_ElseInstructions(),
        this.getProgram(),
        null,
        "elseInstructions",
        null,
        0,
        1,
        Conditional.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getConditional_Condition(),
        this.getExpression(),
        null,
        "condition",
        null,
        1,
        1,
        Conditional.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        loopEClass, Loop.class, "Loop", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getLoop_Body(),
        this.getProgram(),
        null,
        "body",
        null,
        0,
        1,
        Loop.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getLoop_Guard(),
        this.getExpression(),
        null,
        "guard",
        null,
        1,
        1,
        Loop.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        consoleOutputEClass,
        ConsoleOutput.class,
        "ConsoleOutput",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getConsoleOutput_Input(),
        ecorePackage.getEString(),
        "input",
        null,
        0,
        1,
        ConsoleOutput.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        printlnEClass,
        Println.class,
        "Println",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        printEClass,
        Print.class,
        "Print",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        assignationEClass,
        Assignation.class,
        "Assignation",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getAssignation_VarRef(),
        this.getVarDecl(),
        null,
        "varRef",
        null,
        1,
        1,
        Assignation.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getAssignation_Expression(),
        this.getExpression(),
        null,
        "expression",
        null,
        1,
        1,
        Assignation.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        waitEClass, Wait.class, "Wait", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getWait_Miliseconds(),
        ecorePackage.getELong(),
        "miliseconds",
        null,
        0,
        1,
        Wait.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        varDeclEClass,
        VarDecl.class,
        "VarDecl",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getVarDecl_Key(),
        ecorePackage.getEString(),
        "key",
        null,
        0,
        1,
        VarDecl.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getVarDecl_Expression(),
        this.getExpression(),
        null,
        "expression",
        null,
        1,
        1,
        VarDecl.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(arithmeticOperatorEEnum, ArithmeticOperator.class, "ArithmeticOperator");
    addEEnumLiteral(arithmeticOperatorEEnum, ArithmeticOperator.PLUS);
    addEEnumLiteral(arithmeticOperatorEEnum, ArithmeticOperator.MINUS);
    addEEnumLiteral(arithmeticOperatorEEnum, ArithmeticOperator.MULT);
    addEEnumLiteral(arithmeticOperatorEEnum, ArithmeticOperator.DIV);

    initEEnum(relationalOperatorEEnum, RelationalOperator.class, "RelationalOperator");
    addEEnumLiteral(relationalOperatorEEnum, RelationalOperator.LESS_THAN);
    addEEnumLiteral(relationalOperatorEEnum, RelationalOperator.GREATER_THAN);
    addEEnumLiteral(relationalOperatorEEnum, RelationalOperator.EQUALS);
    addEEnumLiteral(relationalOperatorEEnum, RelationalOperator.NOT_EQUAL);
    addEEnumLiteral(relationalOperatorEEnum, RelationalOperator.LESS_THAN_OR_EQUAL_TO);
    addEEnumLiteral(relationalOperatorEEnum, RelationalOperator.GREATER_THAN_OR_EQUAL_TO);

    // Create resource
    createResource(eNS_URI);
  }
Beispiel #25
0
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    entityEClass.getESuperTypes().add(this.getDataType());
    builtInTypeEClass.getESuperTypes().add(this.getDataType());

    // Initialize classes and features; add operations and parameters
    initEClass(
        modelEClass,
        Model.class,
        "Model",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getModel_Name(),
        ecorePackage.getEString(),
        "name",
        null,
        0,
        1,
        Model.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getModel_Description(),
        ecorePackage.getEString(),
        "description",
        null,
        0,
        1,
        Model.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getModel_DataTypes(),
        this.getEntity(),
        null,
        "dataTypes",
        null,
        0,
        -1,
        Model.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getModel_BuiltInTypes(),
        this.getBuiltInType(),
        null,
        "builtInTypes",
        null,
        0,
        -1,
        Model.class,
        IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getModel_HiddenBuiltInTypes(),
        this.getBuiltInType(),
        null,
        "hiddenBuiltInTypes",
        null,
        0,
        -1,
        Model.class,
        IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        dataTypeEClass,
        DataType.class,
        "DataType",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getDataType_Name(),
        ecorePackage.getEString(),
        "name",
        null,
        0,
        1,
        DataType.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getDataType_Description(),
        ecorePackage.getEString(),
        "description",
        null,
        0,
        1,
        DataType.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        entityEClass,
        Entity.class,
        "Entity",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getEntity_Fields(),
        this.getField(),
        null,
        "fields",
        null,
        0,
        -1,
        Entity.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        builtInTypeEClass,
        BuiltInType.class,
        "BuiltInType",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        fieldEClass,
        Field.class,
        "Field",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getField_Name(),
        ecorePackage.getEString(),
        "name",
        null,
        0,
        1,
        Field.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getField_Type(),
        this.getDataType(),
        null,
        "type",
        null,
        0,
        1,
        Field.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getField_Description(),
        ecorePackage.getEString(),
        "description",
        null,
        0,
        1,
        Field.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getField_Lower(),
        ecorePackage.getEInt(),
        "lower",
        "1",
        0,
        1,
        Field.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getField_UpperUnlimited(),
        ecorePackage.getEBoolean(),
        "upperUnlimited",
        null,
        0,
        1,
        Field.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getField_Upper(),
        ecorePackage.getEInt(),
        "upper",
        "1",
        0,
        1,
        Field.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    CSTPackage theCSTPackage =
        (CSTPackage) EPackage.Registry.INSTANCE.getEPackage(CSTPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    identifiedCSEClass.getESuperTypes().add(theCSTPackage.getCSTNode());
    identifiedCSEClass.getESuperTypes().add(this.getIHasName());
    identifierCSEClass.getESuperTypes().add(theCSTPackage.getCSTNode());
    identifierCSEClass.getESuperTypes().add(this.getIHasName());

    // Initialize classes and features; add operations and parameters
    initEClass(
        errorNodeEClass,
        ErrorNode.class,
        "ErrorNode",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getErrorNode_Message(),
        ecorePackage.getEString(),
        "message",
        null,
        1,
        1,
        ErrorNode.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        identifiedCSEClass,
        IdentifiedCS.class,
        "IdentifiedCS",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getIdentifiedCS_Identifier(),
        this.getIdentifierCS(),
        null,
        "identifier",
        null,
        0,
        1,
        IdentifiedCS.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getIdentifiedCS_AstNode(),
        ecorePackage.getEObject(),
        null,
        "astNode",
        null,
        0,
        1,
        IdentifiedCS.class,
        IS_TRANSIENT,
        IS_VOLATILE,
        !IS_CHANGEABLE,
        !IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        IS_DERIVED,
        IS_ORDERED);

    initEClass(
        identifierCSEClass,
        IdentifierCS.class,
        "IdentifierCS",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getIdentifierCS_Value(),
        ecorePackage.getEString(),
        "value",
        null,
        0,
        1,
        IdentifierCS.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getIdentifierCS_AstNode(),
        ecorePackage.getEObject(),
        null,
        "astNode",
        null,
        0,
        1,
        IdentifierCS.class,
        IS_TRANSIENT,
        IS_VOLATILE,
        !IS_CHANGEABLE,
        !IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        IS_DERIVED,
        IS_ORDERED);

    initEClass(
        iHasNameEClass,
        IHasName.class,
        "IHasName",
        IS_ABSTRACT,
        IS_INTERFACE,
        !IS_GENERATED_INSTANCE_CLASS);

    // Create resource
    createResource(eNS_URI);
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    XbasePackage theXbasePackage =
        (XbasePackage) EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    deviceEClass.getESuperTypes().add(this.getDeclaration());
    ruleEClass.getESuperTypes().add(this.getDeclaration());

    // Initialize classes and features; add operations and parameters
    initEClass(
        modelEClass,
        Model.class,
        "Model",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getModel_Declarations(),
        this.getDeclaration(),
        null,
        "declarations",
        null,
        0,
        -1,
        Model.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        declarationEClass,
        Declaration.class,
        "Declaration",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        deviceEClass,
        Device.class,
        "Device",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getDevice_Name(),
        ecorePackage.getEString(),
        "name",
        null,
        0,
        1,
        Device.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getDevice_States(),
        this.getState(),
        null,
        "states",
        null,
        0,
        -1,
        Device.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        stateEClass,
        State.class,
        "State",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getState_Name(),
        ecorePackage.getEString(),
        "name",
        null,
        0,
        1,
        State.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        ruleEClass, Rule.class, "Rule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getRule_Description(),
        ecorePackage.getEString(),
        "description",
        null,
        0,
        1,
        Rule.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getRule_DeviceState(),
        this.getState(),
        null,
        "deviceState",
        null,
        0,
        1,
        Rule.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getRule_ThenPart(),
        theXbasePackage.getXExpression(),
        null,
        "thenPart",
        null,
        0,
        1,
        Rule.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }
Beispiel #28
0
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    ScenarioPackage theScenarioPackage =
        (ScenarioPackage) EPackage.Registry.INSTANCE.getEPackage(ScenarioPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    errorLogVerificationEClass.getESuperTypes().add(theScenarioPackage.getVerification());

    // Initialize classes and features; add operations and parameters
    initEClass(
        logEntryPredicateEClass,
        LogEntryPredicate.class,
        "LogEntryPredicate",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getLogEntryPredicate_SeverityMask(),
        ecorePackage.getEInt(),
        "severityMask",
        "7",
        0,
        1,
        LogEntryPredicate.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getLogEntryPredicate_Code(),
        ecorePackage.getEInt(),
        "code",
        "0",
        0,
        1,
        LogEntryPredicate.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getLogEntryPredicate_PluginPattern(),
        ecorePackage.getEString(),
        "pluginPattern",
        ".*",
        0,
        1,
        LogEntryPredicate.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getLogEntryPredicate_MessagePattern(),
        ecorePackage.getEString(),
        "messagePattern",
        ".*",
        0,
        1,
        LogEntryPredicate.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        errorLogVerificationEClass,
        ErrorLogVerification.class,
        "ErrorLogVerification",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getErrorLogVerification_Allowed(),
        this.getLogEntryPredicate(),
        null,
        "allowed",
        null,
        0,
        -1,
        ErrorLogVerification.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getErrorLogVerification_Denied(),
        this.getLogEntryPredicate(),
        null,
        "denied",
        null,
        0,
        -1,
        ErrorLogVerification.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getErrorLogVerification_Required(),
        this.getLogEntryPredicate(),
        null,
        "required",
        null,
        0,
        -1,
        ErrorLogVerification.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getErrorLogVerification_IncludeContexts(),
        ecorePackage.getEBoolean(),
        "includeContexts",
        "true",
        1,
        1,
        ErrorLogVerification.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }
Beispiel #29
0
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    TypesPackage theTypesPackage =
        (TypesPackage) EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    xFunctionTypeRefEClass.getESuperTypes().add(theTypesPackage.getJvmSpecializedTypeReference());
    xComputedTypeReferenceEClass
        .getESuperTypes()
        .add(theTypesPackage.getJvmSpecializedTypeReference());

    // Initialize classes and features; add operations and parameters
    initEClass(
        xFunctionTypeRefEClass,
        XFunctionTypeRef.class,
        "XFunctionTypeRef",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getXFunctionTypeRef_ParamTypes(),
        theTypesPackage.getJvmTypeReference(),
        null,
        "paramTypes",
        null,
        0,
        -1,
        XFunctionTypeRef.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getXFunctionTypeRef_ReturnType(),
        theTypesPackage.getJvmTypeReference(),
        null,
        "returnType",
        null,
        0,
        1,
        XFunctionTypeRef.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getXFunctionTypeRef_Type(),
        theTypesPackage.getJvmType(),
        null,
        "type",
        null,
        0,
        1,
        XFunctionTypeRef.class,
        IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getXFunctionTypeRef_InstanceContext(),
        ecorePackage.getEBoolean(),
        "instanceContext",
        null,
        0,
        1,
        XFunctionTypeRef.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        xComputedTypeReferenceEClass,
        XComputedTypeReference.class,
        "XComputedTypeReference",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(
        getXComputedTypeReference_TypeProvider(),
        this.getIJvmTypeReferenceProvider(),
        "typeProvider",
        null,
        0,
        1,
        XComputedTypeReference.class,
        IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Initialize data types
    initEDataType(
        iJvmTypeReferenceProviderEDataType,
        IJvmTypeReferenceProvider.class,
        "IJvmTypeReferenceProvider",
        !IS_SERIALIZABLE,
        !IS_GENERATED_INSTANCE_CLASS);

    // Create resource
    createResource(eNS_URI);
  }
  /**
   * 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 initializePackageContents() {
    if (isInitialized) return;
    isInitialized = true;

    // Initialize package
    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    Xtend2Package theXtend2Package =
        (Xtend2Package) EPackage.Registry.INSTANCE.getEPackage(Xtend2Package.eNS_URI);
    XbasePackage theXbasePackage =
        (XbasePackage) EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    literalEClass.getESuperTypes().add(this.getLinePart());
    lineBreakEClass.getESuperTypes().add(this.getLiteral());
    forLoopStartEClass.getESuperTypes().add(this.getLinePart());
    forLoopEndEClass.getESuperTypes().add(this.getLinePart());
    printedExpressionEClass.getESuperTypes().add(this.getLinePart());
    ifConditionStartEClass.getESuperTypes().add(this.getLinePart());
    elseIfConditionEClass.getESuperTypes().add(this.getLinePart());
    elseStartEClass.getESuperTypes().add(this.getLinePart());
    endIfEClass.getESuperTypes().add(this.getLinePart());

    // Initialize classes and features; add operations and parameters
    initEClass(
        processedRichStringEClass,
        ProcessedRichString.class,
        "ProcessedRichString",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getProcessedRichString_RichString(),
        theXtend2Package.getRichString(),
        null,
        "richString",
        null,
        0,
        1,
        ProcessedRichString.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getProcessedRichString_Lines(),
        this.getLine(),
        this.getLine_RichString(),
        "lines",
        null,
        0,
        -1,
        ProcessedRichString.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        lineEClass, Line.class, "Line", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getLine_Parts(),
        this.getLinePart(),
        this.getLinePart_Line(),
        "parts",
        null,
        0,
        -1,
        Line.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getLine_RichString(),
        this.getProcessedRichString(),
        this.getProcessedRichString_Lines(),
        "richString",
        null,
        0,
        1,
        Line.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        linePartEClass,
        LinePart.class,
        "LinePart",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getLinePart_Line(),
        this.getLine(),
        this.getLine_Parts(),
        "line",
        null,
        0,
        1,
        LinePart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        !IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        literalEClass,
        Literal.class,
        "Literal",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getLiteral_Literal(),
        theXtend2Package.getRichStringLiteral(),
        null,
        "literal",
        null,
        0,
        1,
        Literal.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getLiteral_Offset(),
        ecorePackage.getEInt(),
        "offset",
        null,
        0,
        1,
        Literal.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEAttribute(
        getLiteral_Length(),
        ecorePackage.getEInt(),
        "length",
        null,
        0,
        1,
        Literal.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_UNSETTABLE,
        !IS_ID,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        lineBreakEClass,
        LineBreak.class,
        "LineBreak",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);

    initEClass(
        forLoopStartEClass,
        ForLoopStart.class,
        "ForLoopStart",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getForLoopStart_Loop(),
        theXtend2Package.getRichStringForLoop(),
        null,
        "loop",
        null,
        0,
        1,
        ForLoopStart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getForLoopStart_End(),
        this.getForLoopEnd(),
        this.getForLoopEnd_Start(),
        "end",
        null,
        0,
        1,
        ForLoopStart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        forLoopEndEClass,
        ForLoopEnd.class,
        "ForLoopEnd",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getForLoopEnd_Start(),
        this.getForLoopStart(),
        this.getForLoopStart_End(),
        "start",
        null,
        0,
        1,
        ForLoopEnd.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        printedExpressionEClass,
        PrintedExpression.class,
        "PrintedExpression",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getPrintedExpression_Expression(),
        theXbasePackage.getXExpression(),
        null,
        "expression",
        null,
        0,
        1,
        PrintedExpression.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        ifConditionStartEClass,
        IfConditionStart.class,
        "IfConditionStart",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getIfConditionStart_RichStringIf(),
        theXtend2Package.getRichStringIf(),
        null,
        "richStringIf",
        null,
        0,
        1,
        IfConditionStart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getIfConditionStart_ElseStart(),
        this.getElseStart(),
        this.getElseStart_IfConditionStart(),
        "elseStart",
        null,
        0,
        1,
        IfConditionStart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getIfConditionStart_ElseIfConditions(),
        this.getElseIfCondition(),
        this.getElseIfCondition_IfConditionStart(),
        "elseIfConditions",
        null,
        0,
        -1,
        IfConditionStart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getIfConditionStart_EndIf(),
        this.getEndIf(),
        null,
        "endIf",
        null,
        0,
        1,
        IfConditionStart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        elseIfConditionEClass,
        ElseIfCondition.class,
        "ElseIfCondition",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getElseIfCondition_RichStringElseIf(),
        theXtend2Package.getRichStringElseIf(),
        null,
        "richStringElseIf",
        null,
        0,
        1,
        ElseIfCondition.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);
    initEReference(
        getElseIfCondition_IfConditionStart(),
        this.getIfConditionStart(),
        this.getIfConditionStart_ElseIfConditions(),
        "ifConditionStart",
        null,
        0,
        1,
        ElseIfCondition.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        elseStartEClass,
        ElseStart.class,
        "ElseStart",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getElseStart_IfConditionStart(),
        this.getIfConditionStart(),
        this.getIfConditionStart_ElseStart(),
        "ifConditionStart",
        null,
        0,
        1,
        ElseStart.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    initEClass(
        endIfEClass,
        EndIf.class,
        "EndIf",
        !IS_ABSTRACT,
        !IS_INTERFACE,
        IS_GENERATED_INSTANCE_CLASS);
    initEReference(
        getEndIf_IfConditionStart(),
        this.getIfConditionStart(),
        null,
        "ifConditionStart",
        null,
        0,
        1,
        EndIf.class,
        !IS_TRANSIENT,
        !IS_VOLATILE,
        IS_CHANGEABLE,
        !IS_COMPOSITE,
        IS_RESOLVE_PROXIES,
        !IS_UNSETTABLE,
        IS_UNIQUE,
        !IS_DERIVED,
        IS_ORDERED);

    // Create resource
    createResource(eNS_URI);
  }