Examples of toList()


Examples of org.geotools.feature.visitor.CalcResult.toList()

                featureCollection.accepts(uniqueVisit, progress);
          if (progress.isCanceled()) return null;
       
            CalcResult calcResult = uniqueVisit.getResult();
            if (calcResult == null) return null;
            List result = calcResult.toList();
            //sort the results and put them in an array
            Collections.sort(result, new Comparator() {
                public int compare(Object o1, Object o2) {
                    if (o1 == null) {
                        if (o2 == null) {
View Full Code Here

Examples of org.openntf.formula.ValueHolder.toList()

      } catch (FormulaReturnException e) {
        vh = e.getValue();
      }
      if (vh.dataType == DataType.ERROR)
        throw vh.getError();
      return vh.toList();
    } catch (EvaluateException ev) {
      throw ev;
    }
  }
View Full Code Here

Examples of org.vertx.java.core.json.JsonArray.toList()

      String sdata = map.get(key);
      if (sdata == null) {
        return null;
      }
      JsonArray data = new JsonArray(sdata);
      return data.toList();
    }

    @Override
    public LocalMultiMapStats getLocalMultiMapStats() {
      throw new UnsupportedOperationException("getLocalMultiMapStats not supported.");
View Full Code Here

Examples of org.vertx.java.core.json.JsonArray.toList()

        String sdata = map.remove(key);
        if (sdata == null) {
          return null;
        }
        JsonArray data = new JsonArray(sdata);
        return data.toList();
      }
    }

    @Override
    @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.webharvest.runtime.variables.ListVariable.toList()

                    bodyProcessor.setProperty("Name", externalParamName);
                    bodyProcessor.setProperty("Type", externalParamType);
                    ListVariable listVar = (ListVariable) bodyProcessor.run(scraper, context);
                    debug(externalParamDef, scraper, listVar);
                   
                    Iterator it = listVar.toList().iterator();
                    List paramList = new ArrayList();
                    while (it.hasNext()) {
                        Variable currVar =  (Variable) it.next();
                        paramList.add( castSimpleValue(externalParamType, currVar, sqc) );
                    }
View Full Code Here

Examples of org.webharvest.runtime.variables.Variable.toList()

        Pattern pattern = Pattern.compile(patternVar.toString(), flags);
       
        List resultList = new ArrayList();
       
        List bodyList = source.toList();
        Iterator it = bodyList.iterator();
        while (it.hasNext()) {
          Variable currVar = (Variable) it.next();
          String text = currVar.toString();
           
View Full Code Here

Examples of org.webharvest.runtime.variables.Variable.toList()

        Variable loopValue = new BodyProcessor(loopValueDef).run(scraper, context);
        debug(loopValueDef, scraper, loopValue);

        List resultList = new ArrayList();

        List list = loopValue != null ? loopValue.toList() : null;
        if (list != null) {
            Variable itemBeforeLoop = (Variable) context.get(item);
            Variable indexBeforeLoop = (Variable) context.get(index);

            List filteredList = filter != null ? createFilteredList(list, filter) : list;
View Full Code Here

Examples of org.webharvest.runtime.variables.Variable.toList()

                // execute the loop body
                BaseElementDef bodyDef = loopDef.getLoopBodyDef();
                Variable loopResult = bodyDef != null ? new BodyProcessor(bodyDef).run(scraper, context) : new EmptyVariable();
                debug(bodyDef, scraper, loopResult);
                if (!isEmpty) {
                    resultList.addAll( loopResult.toList() );
                }
            }

            // restores previous value of item variable
            if (item != null && itemBeforeLoop != null) {
View Full Code Here

Examples of railo.runtime.util.Cast.toList()

    else if(raw instanceof List) {
      return (List) raw;
    }
   
    Cast caster = CFMLEngineFactory.getInstance().getCastUtil();
    return caster.toList(raw,null);
  }
 
  private Object getKeysWithExpiryCheckRaw(String cacheName) throws MalformedURLException, RemoteException, ServiceException {
    Service  service = new Service();
    Call     call    = (Call) service.createCall();
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.