Examples of JSONMap


Examples of com.dropbox.client2.jsonextract.JsonMap

            this.cursor = cursor;
            this.hasMore = hasMore;
        }

        public static <MD> DeltaPage<MD> extractFromJson(JsonThing j, JsonExtractor<MD> entryExtractor) throws JsonExtractionException {
            JsonMap m = j.expectMap();
            boolean reset = m.get("reset").expectBoolean();
            String cursor = m.get("cursor").expectString();
            boolean hasMore = m.get("has_more").expectBoolean();
            List<DeltaEntry<MD>> entries = m.get("entries").expectList().extract(new DeltaEntry.JsonExtractor<MD>(entryExtractor));

            return new DeltaPage<MD>(reset, entries, cursor, hasMore);
        }
View Full Code Here

Examples of com.dropbox.client2.jsonextract.JsonMap

            this.copyRef = copyRef;
            this.expiration = expiration;
        }

        public static CreatedCopyRef extractFromJson(JsonThing j) throws JsonExtractionException {
            JsonMap m = j.expectMap();
            String string = m.get("copy_ref").expectString();
            String expiration = m.get("expires").expectString();
            return new CreatedCopyRef(string, expiration);
        }
View Full Code Here

Examples of com.haulmont.yarg.loaders.impl.json.JsonMap

        return null;
    }

    protected Map<String, Object> createMap(JSONObject jsonObject) {
        return new JsonMap(jsonObject);
    }
View Full Code Here

Examples of com.jdroid.java.json.JsonMap

   * @see com.jdroid.java.marshaller.Marshaller#marshall(java.lang.Object, com.jdroid.java.marshaller.MarshallerMode,
   *      java.util.Map)
   */
  @Override
  public JsonMap marshall(PagedResult<?> pagedResult, MarshallerMode mode, Map<String, String> extras) {
    JsonMap map = new JsonMap(mode, extras);
    if (CollectionUtils.isNotEmpty(pagedResult.getResults())) {
      map.put(LAST_PAGE, pagedResult.isLastPage());
      map.put(LIST, pagedResult.getResults());
    }
    return map;
  }
View Full Code Here

Examples of org.jboss.errai.ui.shared.JSONMap

   * Registers the bundle with the translation service.
   *
   * @param jsonData
   */
  protected void registerBundle(String jsonData, String locale) {
    JSONMap data = JSONMap.create(jsonData);
    register(data, locale);
  }
View Full Code Here

Examples of org.jboss.errai.ui.shared.JSONMap

  /**
   * Registers the bundle with the translation service.
   * @param jsonData
   */
  protected void registerBundle(String jsonData, String locale) {
    JSONMap data = JSONMap.create(jsonData);
    register(data, locale);
  }
View Full Code Here

Examples of org.jboss.errai.ui.shared.JSONMap

   * Registers the bundle with the translation service.
   *
   * @param jsonData
   */
  protected void registerBundle(String jsonData, String locale) {
    JSONMap data = JSONMap.create(jsonData);
    registerJSON(data, locale);
  }
View Full Code Here

Examples of org.jboss.errai.ui.shared.JSONMap

   * Registers the bundle with the translation service.
   *
   * @param jsonData
   */
  protected void registerBundle(String jsonData, String locale) {
    JSONMap data = JSONMap.create(jsonData);
    registerJSON(data, locale);
  }
View Full Code Here

Examples of org.jtester.json.helper.JSONMap

    }
    if (!(json instanceof JSONMap)) {
      throw new JSONException("illegal type for JavaBeanDecoder. the json[" + json.toString()
          + "] isn't a JSONMap");
    }
    JSONMap map = (JSONMap) json;
    String referenceID = map.getReferFromJSONProp();
    if (referenceID != null) {
      Object o = references.get(referenceID);
      return (T) o;
    } else {
      T target = this.newInstance(map, references);
View Full Code Here

Examples of org.richfaces.json.JSONMap

            String s = (String) value;
            if (!s.startsWith("{")) {
                s = "{" + s + "}";
            }
            try {
                return new HashMap<String, Object>(new JSONMap(s));
            } catch (JSONException e) {
                throw new FacesException(e);
            }
        } else {
            throw new FacesException("Attribute visualOptions of component ["
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.