Examples of OConstantExpression


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.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.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.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.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.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.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.o.OConstantExpression

  public void initialize(Map properties) throws ConfigurationException {
  }

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

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

      return (String) konst.getVal();
    throw new TypeCastException(TypeCastException.TYPE_STRING, konst.getVal().toString());
  }

  public boolean evaluateAsBoolean(OExpression cexp, EvaluationContext ctx) throws FaultException, EvaluationException {
    OConstantExpression konst = (OConstantExpression) cexp;
    if (konst.getVal() instanceof Boolean)
      return ((Boolean)konst.getVal()).booleanValue();
    throw new TypeCastException(TypeCastException.TYPE_BOOLEAN, konst.getVal().toString());
  }
View Full Code Here

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

      return ((Boolean)konst.getVal()).booleanValue();
    throw new TypeCastException(TypeCastException.TYPE_BOOLEAN, konst.getVal().toString());
  }

  public Number evaluateAsNumber(OExpression cexp, EvaluationContext ctx) throws FaultException, EvaluationException {
    OConstantExpression konst = (OConstantExpression) cexp;
    if (konst.getVal() instanceof Number)
      return (Number)konst.getVal();
    throw new TypeCastException(TypeCastException.TYPE_NUMBER, konst.getVal().toString());
  }
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.