Examples of OConstantExpression


Examples of org.apache.ode.bpel.o.OConstantExpression

    throw new TypeCastException(TypeCastException.TYPE_NUMBER, konst.getVal().toString());
  }

  public List evaluate(OExpression cexp, EvaluationContext ctx)
          throws FaultException, EvaluationException {
    OConstantExpression konst = (OConstantExpression) cexp;
    if (konst.getVal() instanceof List)
      return (List) konst.getVal();
    throw new TypeCastException(TypeCastException.TYPE_NODELIST, konst.getVal().toString());
  }
View Full Code Here

Examples of org.apache.ode.bpel.o.OConstantExpression

      return (List) konst.getVal();
    throw new TypeCastException(TypeCastException.TYPE_NODELIST, konst.getVal().toString());
  }

  public Node evaluateNode(OExpression cexp, EvaluationContext context) throws FaultException, EvaluationException {
    OConstantExpression konst = (OConstantExpression) cexp;
    if (konst.getVal() instanceof Node)
      return (Node) konst.getVal();
    throw new TypeCastException(TypeCastException.TYPE_NODE, konst.getVal().toString());
  }
View Full Code Here

Examples of org.apache.ode.bpel.o.OConstantExpression

    throw new TypeCastException(TypeCastException.TYPE_NODE, konst.getVal().toString());
  }

  public Calendar evaluateAsDate(OExpression cexp, EvaluationContext context)
          throws FaultException , EvaluationException {
    OConstantExpression konst = (OConstantExpression) cexp;

    if (konst.getVal() instanceof Calendar)
      return (Calendar) konst.getVal();

    throw new TypeCastException(TypeCastException.TYPE_DATE, konst.getVal().toString());

  }
View Full Code Here

Examples of org.apache.ode.bpel.o.OConstantExpression

  }

  public Duration evaluateAsDuration(OExpression cexp, EvaluationContext context)
          throws FaultException, EvaluationException {

    OConstantExpression konst = (OConstantExpression) cexp;

    if (konst.getVal() instanceof Duration)
      return (Duration) konst.getVal();

    throw new TypeCastException(TypeCastException.TYPE_DURATION, konst.getVal().toString());
  }
View Full Code Here

Examples of org.apache.ode.bpel.o.OConstantExpression

     * @param value
     *            constant value to return
     * @return {@link OExpression} returning a constant value.
     */
    public OExpression constantExpr(boolean value) {
        OConstantExpression ce = new OConstantExpression(_oprocess, value ? Boolean.TRUE : Boolean.FALSE);
        ce.debugInfo = createDebugInfo(_processDef, "Constant Boolean Expression: " + value);
        ce.expressionLanguage = _konstExprLang;
        return ce;
    }
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v1.OConstantExpression

     * @param value
     *            constant value to return
     * @return {@link OExpression} returning a constant value.
     */
    public OExpression constantExpr(boolean value) {
        OConstantExpression ce = new OConstantExpression(_oprocess, value ? Boolean.TRUE : Boolean.FALSE);
        ce.debugInfo = createDebugInfo(_processDef, "Constant Boolean Expression: " + value);
        ce.expressionLanguage = _konstExprLang;
        return ce;
    }
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OConstantExpression

     * @param value
     *            constant value to return
     * @return {@link OExpression} returning a constant value.
     */
    public OExpression constantExpr(boolean value) {
        OConstantExpression ce = new OConstantExpression(_oprocess, value ? Boolean.TRUE : Boolean.FALSE);
        ce.debugInfo = createDebugInfo(_processDef, "Constant Boolean Expression: " + value);
        ce.expressionLanguage = _konstExprLang;
        return ce;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.