Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Expression


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
    Expression oldExpression = expression;
    expression = newExpression;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.FROM__EXPRESSION, oldExpression, newExpression);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


        if (result == null) result = caseWSDLElement(onMessage);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.EXPRESSION: {
        Expression expression = (Expression)theEObject;
        Object result = caseExpression(expression);
        if (result == null) result = caseExtensibilityElement(expression);
        if (result == null) result = caseWSDLElement(expression);
        if (result == null) result = caseIExtensibilityElement(expression);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

      }
    }

   
    if (from.getExpression() != null) {
      Expression expression = from.getExpression();
     
      if (expression.getExpressionLanguage() != null) {
        fromElement.setAttribute("expressionLanguage", expression.getExpressionLanguage());
      }
      if (expression.getBody() != null) {
        CDATASection cdata = BPELUtils.createCDATASection(document, (String)expression.getBody());
        fromElement.appendChild(cdata);
      }     
    }
   
    if (from.getType() != null) {
View Full Code Here

        scan(arg);
        ASTNodeData argData = nodeDataStack.peek();
       
        From from = BPELFactory.eINSTANCE.createFrom();
        if (argData.xpathLiteralExpr != null){
          Expression expr = BPELFactory.eINSTANCE.createExpression();
          expr.setBody(argData.xpathLiteralExpr.evaluate());
          from.setExpression(expr);       
        } else if (argData.variable != null && argData.xpathExpr != null){
          Query query = BPELFactory.eINSTANCE.createQuery();
          query.setQueryLanguage(XPATH_NAMESPACE);
          query.setValue(argData.xpathExpr.evaluate());
View Full Code Here

          toQuery.setValue(lhsData.xpathExpr.evaluate());
          to.setQuery(toQuery);
          to.setVariable(lhsData.variable);
         
          From from = BPELFactory.eINSTANCE.createFrom();
          Expression expr = BPELFactory.eINSTANCE.createExpression();
          expr.setBody(rhsData.xpathLiteralExpr.evaluate());
          from.setExpression(expr);
          //from.setLiteral(rhsData.xpathLiteralExpr.evaluate());
          from.setVariable(rhsData.variable);
         
          Copy copy = BPELFactory.eINSTANCE.createCopy();
          copy.setTo(to);
          copy.setFrom(from);
          assign.getCopy().add(copy);
          assignmentData.activity = assign;
        } else if (rhsData.variable != null && rhsData.xpathExpr != null){
          Assign assign = BPELFactory.eINSTANCE.createAssign();
          assignmentData.activity = assign;         
         
          To to = BPELFactory.eINSTANCE.createTo();   
          Query toQuery = BPELFactory.eINSTANCE.createQuery();
          toQuery.setQueryLanguage(XPATH_NAMESPACE);
          toQuery.setValue(lhsData.xpathExpr.evaluate());
          to.setQuery(toQuery);
          to.setVariable(lhsData.variable);
         
          From from = BPELFactory.eINSTANCE.createFrom();
          if (rhsData.variable != null){
            from.setVariable(rhsData.variable);
            Query fromQuery = BPELFactory.eINSTANCE.createQuery();
            fromQuery.setQueryLanguage(XPATH_NAMESPACE);
            fromQuery.setValue(rhsData.xpathExpr.evaluate());
            from.setQuery(fromQuery);
          } else {
            Expression expr = BPELFactory.eINSTANCE.createExpression();         
            expr.setBody(rhsData.xpathExpr.evaluate());
            from.setExpression(expr);
          }
          //from.setLiteral(rhsData.xpathExpr.evaluate());         
         
          Copy copy = BPELFactory.eINSTANCE.createCopy();
View Full Code Here

          scan(invocation.getArguments().get(0));
          ASTNodeData argData = nodeDataStack.peek();
          if (argData.xpathExpr != null){
            From from = BPELFactory.eINSTANCE.createFrom();
            if (argData.xpathLiteralExpr != null){
              Expression expr = BPELFactory.eINSTANCE.createExpression();         
              expr.setBody(argData.xpathLiteralExpr.evaluate());
              from.setExpression(expr);
              //from.setLiteral(argData.xpathExpr.evaluate());
            } else if (argData.variable != null){
              from.setVariable(argData.variable);
              Query fromQuery = BPELFactory.eINSTANCE.createQuery();
              fromQuery.setValue(argData.xpathExpr.evaluate());
              fromQuery.setQueryLanguage(XPATH_NAMESPACE);
              from.setQuery(fromQuery);
            } else {
              Expression expr = BPELFactory.eINSTANCE.createExpression();         
              expr.setBody(argData.xpathExpr.evaluate());
              from.setExpression(expr);
            }
            //from.setLiteral(argData.xpathExpr.evaluate());
           
            To to = BPELFactory.eINSTANCE.createTo();   
View Full Code Here

        To to = BPELFactory.eINSTANCE.createTo();
        Copy copy = BPELFactory.eINSTANCE.createCopy();
        Assign assign = BPELFactory.eINSTANCE.createAssign();
       
        if (defExprData.xpathLiteralExpr != null){
          Expression expr = BPELFactory.eINSTANCE.createExpression();
          expr.setBody(defExprData.xpathLiteralExpr.evaluate());
          from.setExpression(expr);       
        } else if (defExprData.variable != null && defExprData.xpathExpr != null){
          Query query = BPELFactory.eINSTANCE.createQuery();
          query.setQueryLanguage(XPATH_NAMESPACE);
          query.setValue(defExprData.xpathExpr.evaluate());
View Full Code Here

          Query fromQuery = BPELFactory.eINSTANCE.createQuery();
          fromQuery.setQueryLanguage(XPATH_NAMESPACE);
          fromQuery.setValue(argNodeData.xpathExpr.evaluate());
          from.setQuery(fromQuery);
        } else if (argNodeData.xpathLiteralExpr != null){
          Expression expr = BPELFactory.eINSTANCE.createExpression();         
          expr.setBody(argNodeData.xpathLiteralExpr.evaluate());
          from.setExpression(expr);
        }
       
        To to = BPELFactory.eINSTANCE.createTo();
        to.setVariable(tmp);
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFor(Expression newFor, NotificationChain msgs) {
    Expression oldFor = for_;
    for_ = newFor;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.ON_ALARM__FOR, oldFor, newFor);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetUntil(Expression newUntil, NotificationChain msgs) {
    Expression oldUntil = until;
    until = newUntil;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BPELPackage.ON_ALARM__UNTIL, oldUntil, newUntil);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.bpel.model.Expression

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.