Examples of accumulate()


Examples of org.apache.sling.commons.json.JSONObject.accumulate()

            throws JSONResponseException {
        try {
            JSONObject change = new JSONObject();
            change.put(PROP_TYPE, type);
            for (String argument : arguments) {
                change.accumulate(PROP_ARGUMENT, argument);
            }
            changes.put(change);
        } catch (JSONException e) {
            throw new JSONResponseException(e);
        }
View Full Code Here

Examples of org.apache.sling.commons.json.JSONObject.accumulate()

            if (currentBatch != null) {
                json.put(BulkWorkflowEngine.KEY_CURRENT_BATCH, currentBatch.getPath());

                for (final Resource child : currentBatch.getChildren()) {
                    json.accumulate("currentBatchItems", new JSONObject(child.adaptTo(ValueMap.class)));
                }

                final ValueMap currentBatchProperties = currentBatch.adaptTo(ValueMap.class);

                json.put(BulkWorkflowEngine.KEY_BATCH_TIMEOUT_COUNT, currentBatchProperties.get(BulkWorkflowEngine
View Full Code Here

Examples of org.apache.sling.commons.json.JSONObject.accumulate()

        JSONObject parent = new JSONObject();
        parent.put("xtype", "dialogfieldset");
        parent.put("border", false);
        parent.put("padding", 0);
        parent.put("style", "padding: 0px");
        parent.accumulate("items", widget);
        parent.write(response.getWriter());
    }

}
View Full Code Here

Examples of org.apache.sling.commons.json.JSONObject.accumulate()

        JSONObject parent = new JSONObject();
        parent.put("xtype", "dialogfieldset");
        parent.put("border", false);
        parent.put("padding", 0);
        parent.accumulate("items", widget);
        parent.write(response.getWriter());
    }

    @Activate
    protected void activate(Map<String, Object> props) {
View Full Code Here

Examples of org.apache.solr.handler.component.StatsValues.accumulate()

      if (stats_fields != null) {
        for (int i = 0; i < stats_fields.size(); i++) {
          String field = stats_fields.getName(i);
          StatsValues stv = si.statsFields.get(field);
          NamedList shardStv = (NamedList) stats_fields.get(field);
          stv.accumulate(shardStv);
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.solr.handler.component.StatsValues.accumulate()

      int docID = iter.nextDoc();
      String raw = si.lookup[si.order[docID]];
      String v;
      if( raw != null ) {
        v = ft.indexedToReadable(raw);
        allstats.accumulate(v);
      } else {
        v = null;
        allstats.missing();
      }
View Full Code Here

Examples of org.apache.tapestry.json.JSONObject.accumulate()

       
        JSONObject cons = profile.getJSONObject(ValidationConstants.CONSTRAINTS);
       
        DecimalFormat format = getDecimalFormat(context.getLocale());
       
        cons.accumulate(field.getClientId(),
                new JSONLiteral("[dojo.validate.isRealNumber,{"
                        + ((format.getMaximumFractionDigits() > 0)
                        ? "" : "places:" + format.getMaximumFractionDigits() + ",")
                        + "decimal:"
                        + JSONObject.quote(format.getDecimalFormatSymbols().getDecimalSeparator()) + ","
View Full Code Here

Examples of org.apache.tapestry5.json.JSONObject.accumulate()

        if (resources.isBound("tokens"))
        {
            for (int i = 0; i < tokens.length(); i++)
            {
                config.accumulate("tokens", tokens.substring(i, i + 1));
            }
        }

        // Let subclasses do more.
        configure(config);
View Full Code Here

Examples of org.apache.tapestry5.json.JSONObject.accumulate()

        if (resources.isBound("tokens"))
        {
            for (int i = 0; i < tokens.length(); i++)
            {
                config.accumulate("tokens", tokens.substring(i, i + 1));
            }
        }

        // Let subclasses do more.
        configure(config);
View Full Code Here

Examples of org.apache.tapestry5.json.JSONObject.accumulate()

        if (resources.isBound("tokens"))
        {
            for (int i = 0; i < tokens.length(); i++)
            {
                config.accumulate("tokens", tokens.substring(i, i + 1));
            }
        }

        // Let subclasses do more.
        configure(config);
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.