Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EOperation$Internal


        initEAttribute(getEFeature_Data(), this.getFeature(), "data", null, 1, 1, EFeature.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
        initEAttribute(getEFeature_SRID(), ecorePackage.getEString(), "SRID", "EPSG:4326", 1, 1, EFeature.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
        initEAttribute(getEFeature_Default(), ecorePackage.getEString(), "default", "geom", 1, 1, EFeature.class, !IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
        initEAttribute(getEFeature_Structure(), this.getEFeatureInfo(), "structure", null, 1, 1, EFeature.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);

        EOperation op = addEOperation(eFeatureEClass, null, "getAttributeList", 1, 1, IS_UNIQUE, IS_ORDERED);
        ETypeParameter t1 = addETypeParameter(op, "V");
        g1 = createEGenericType(ecorePackage.getEJavaClass());
        EGenericType g2 = createEGenericType(t1);
        g1.getETypeArguments().add(g2);
        addEParameter(op, g1, "valueType", 0, 1, IS_UNIQUE, IS_ORDERED);
View Full Code Here


   * <!-- end-user-doc -->
   * @see org.jresearch.flexess.models.expression.OperationCall#getOperationName()
   */
  public void testGetOperationName() {
    OperationCall call = getFixture();
    EOperation operation = StdLib.OR;   
    String operationName = operation.getName();     
    call.setOperation(operation);   
    assertEquals( operationName,  call.getOperationName());

  }
View Full Code Here

  }

  private static EOperation getOperation(EClass container, String name) {
    EList list = container.getEOperations();
    for (Object obj : list) {
      EOperation curr = (EOperation) obj;
      if (name.equals(curr.getName())) {
        return curr;
      }
    }
    return null;
  }
View Full Code Here

  public static boolean isOr(OperationCall call) {
    return StdLib.equal(StdLib.OR, call.getOperation()) && call.getSource() == null;
  }

  public static boolean isBoolean(OperationCall call) {
    EOperation operation = call.getOperation();
    return call.getSource() == null && (StdLib.equal(StdLib.OR, operation) || StdLib.equal(StdLib.AND, operation));
  }
View Full Code Here

    EOperation operation = call.getOperation();
    return call.getSource() == null && (StdLib.equal(StdLib.OR, operation) || StdLib.equal(StdLib.AND, operation));
  }
 
  public static boolean isBinary(OperationCall call) {
    EOperation operation = call.getOperation();
    return call.getSource() instanceof PropertyCall && (StdLib.equal(StdLib.EQUALS, operation) || StdLib.equal(StdLib.NOT_EQUALS, operation));
  }
View Full Code Here

    // Add supertypes to classes

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

    EOperation op = addEOperation(exprStdLibEClass, ecorePackage.getEBoolean(), "eq", 0, 1);
    addEParameter(op, ecorePackage.getEJavaObject(), "left", 1, 1);
    addEParameter(op, ecorePackage.getEJavaObject(), "right", 1, 1);

    op = addEOperation(exprStdLibEClass, ecorePackage.getEBoolean(), "or", 0, 1);
    addEParameter(op, ecorePackage.getEBoolean(), "args", 0, -1);
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setOperation(EOperation newOperation) {
    EOperation oldOperation = operation;
    operation = newOperation;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ExpressionPackage.OPERATION_CALL__OPERATION, oldOperation, operation));
  }
View Full Code Here

    for (Iterator<EAttribute> it = po.getEAttributes().iterator(); it.hasNext();) {
      EAttribute attr = it.next();
      createMetaAttribute(poMeta, attr);
    }
    for (Iterator<EOperation> it2 = po.getEOperations().iterator(); it2.hasNext();) {
      EOperation op = it2.next();
      if (op instanceof POperation) {
        createMetaOperation(poMeta, (POperation) op, withPermissions);
      }
    }
    for (Iterator<Permission> it3 = po.getPermission().iterator(); it3.hasNext();) {
View Full Code Here

    // Initialize classes, features, and operations; add parameters
    initEClass(ecosystemEClass, Ecosystem.class, "Ecosystem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getEcosystem_Logger(), this.getMLogger(), "logger", null, 0, 1, Ecosystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getEcosystem_Mbrickds(), this.getMBrickd(), this.getMBrickd_Ecosystem(), "mbrickds", null, 0, -1, Ecosystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    EOperation op = initEOperation(getEcosystem__GetBrickd__String_int(), this.getMBrickd(), "getBrickd", 0, 1, !IS_UNIQUE, IS_ORDERED);
    addEParameter(op, theEcorePackage.getEString(), "host", 0, 1, !IS_UNIQUE, IS_ORDERED);
    addEParameter(op, theEcorePackage.getEInt(), "port", 0, 1, !IS_UNIQUE, IS_ORDERED);

    op = initEOperation(getEcosystem__GetDevice__String_String(), this.getMBaseDevice(), "getDevice", 0, 1, !IS_UNIQUE, IS_ORDERED);
    addEParameter(op, theEcorePackage.getEString(), "uid", 0, 1, !IS_UNIQUE, IS_ORDERED);
View Full Code Here

        !IS_DERIVED, IS_ORDERED);
    initEAttribute(getLine_Session(), this.getIoSession(), "session", null,
        0, 1, Line.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
        !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

    EOperation op = addEOperation(lineEClass, ecorePackage.getEBoolean(),
        "isRulesMatch", 0, 1, IS_UNIQUE, IS_ORDERED);
    addEParameter(op, this.getTelex(), "telex", 0, 1, IS_UNIQUE, IS_ORDERED);

    // Initialize data types
    initEDataType(endpointEDataType, InetSocketAddress.class, "Endpoint",
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.EOperation$Internal

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