Examples of evaluate()


Examples of org.openrdf.repository.http.HTTPTupleQuery.evaluate()

      HTTPTupleQuery query = (HTTPTupleQuery)conn.prepareTupleQuery(qInfo.getQueryLanguage(),
          qInfo.getQueryString());
      query.setIncludeInferred(qInfo.isIncludeInferred());
      try {
        queryResult = query.evaluate();
      }
      catch (HTTPQueryEvaluationException e) {
        if (e.isCausedByMalformedQueryException()) {
          throw e.getCauseAsMalformedQueryException();
        }

Examples of org.openrdf.sail.SailConnection.evaluate()

    con.addStatement(foo, RDF.TYPE, bar);

    TupleQueryModel query = QueryParserUtil.parseTupleQuery(QueryLanguage.SERQL,
        "SELECT X, P, Y FROM {X} P {Y}", null);

    Cursor<? extends BindingSet> iter = con.evaluate(query,
        EmptyBindingSet.getInstance(), false);

    BindingSet bindingSet = iter.next();

    assertEquals(bindingSet.getValue("X"), foo);

Examples of org.opensaml.ws.security.SecurityPolicy.evaluate()

            throw new SOAPClientException("Unable to resolve security policy for inbound SOAP response", e);
        }

        try {
            log.debug("Evaluating security policy for inbound SOAP response");
            policy.evaluate(messageContext);
        } catch (SecurityException e) {
            throw new SOAPClientException("Inbound SOAP response does not meet security policy", e);
        }
    }
}

Examples of org.outerj.expression.Expression.evaluate()

    public Object evaluate(ExpressionContext context) throws ExpressionException {
        BigDecimal result = new BigDecimal("0");
        for(int i = 0; i < arguments.size(); i++) {
            Expression function = (Expression)arguments.get(i);
            Object ret = function.evaluate(context);
            if (ret instanceof Collection) {
                ret = ((Collection)ret).iterator();
            }
            if (ret instanceof Iterator) {
               Iterator iter = (Iterator)ret;

Examples of org.pdf4j.saxon.xpath.XPathEvaluator.evaluate()

            }
            public Iterator getPrefixes(String namespaceURI) {
                return null;
            }
        });
        NodeList isList = (NodeList)xpe.evaluate(exp, doc, XPathConstants.NODESET);
        System.err.println("length " + isList.getLength());
    }

    /**
     * Sample extension function

Examples of org.pentaho.reporting.libraries.css.resolver.function.ContentFunction.evaluate()

    {
      return null;
    }
    try
    {
      return styleFunction.evaluate(process, element, function);
    }
    catch (FunctionEvaluationException e)
    {
      DebugLog.log("Evaluation failed " + e);
      return null;

Examples of org.pentaho.reporting.libraries.css.resolver.function.StyleValueFunction.evaluate()

  {
    final StyleValueFunction styleFunction =
            FunctionFactory.getInstance().getStyleFunction(function.getFunctionName());
    try
    {
      final CSSValue value = styleFunction.evaluate(process, element, function);
      if (value instanceof CSSResourceValue)
      {
        final CSSResourceValue refValue = (CSSResourceValue) value;
        return new ResourceContentToken(refValue.getValue());
      }

Examples of org.pentaho.reporting.libraries.formula.Formula.evaluate()


      final String formula = computeFormula(configIndicator);
      final Formula compiledFormula = new Formula(formula);
      compiledFormula.initialize(new ReportFormulaContext(formulaContext, expressionRuntime));
      final Object o = compiledFormula.evaluate();
      if (o instanceof ErrorValue)
      {
        throw EvaluationException.getInstance((ErrorValue) o);
      }
      if (o == null)

Examples of org.pentaho.reporting.libraries.formula.lvalues.LValue.evaluate()

      final Sequence sequence = typeRegistry.convertToSequence(type, value);

      while (sequence.hasNext())
      {
        final LValue lValue = sequence.nextRawValue();
        final TypeValuePair pair = lValue.evaluate();
        final Type type1 = pair.getType();
        final Object o = pair.getValue();
        final String str = typeRegistry.convertToText(type1, o);
        computedResult.append(str);
      }

Examples of org.pentaho.reporting.libraries.formula.operators.EqualOperator.evaluate()

        {
          needles.remove(i);
        }
        else if (o != null)
        {
          final TypeValuePair evaluate = equalOperator.evaluate(context, sequenceValue, needle);
          if (Boolean.TRUE.equals(evaluate.getValue()))
          {
            needles.remove(i);
          }
        }
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.