Examples of keys()


Examples of com.amazonaws.util.json.JSONObject.keys()

        if(descriptionJSONString == null) {
            return null;
        }
        try {
            JSONObject descriptionJSON = new JSONObject(descriptionJSONString);
            Iterator<String> keysIterator = descriptionJSON.keys();
            Map<String, String> materialsDescription = new HashMap<String, String>();   
            while(keysIterator.hasNext()) {
                String key = keysIterator.next();
                materialsDescription.put(key, descriptionJSON.getString(key));
            }
View Full Code Here

Examples of com.baidu.disconf.client.common.annotations.DisconfUpdateService.keys()

                .getDisconfUpdateService();
        for (Class<?> disconfUpdateServiceClass : disconfUpdateServiceSet) {

            DisconfUpdateService disconfUpdateService = disconfUpdateServiceClass
                    .getAnnotation(DisconfUpdateService.class);
            List<String> keysList = Arrays.asList(disconfUpdateService.keys());

            //
            // 校验是否有继承正确,是否继承IDisconfUpdate
            //
            if (!ScanVerify.hasIDisconfUpdate(disconfUpdateServiceClass)) {
View Full Code Here

Examples of com.basho.riak.client.bucket.Bucket.keys()

            for (int index = fromHoursSince1970.intValue(); index <= toHoursSince1970.intValue(); index++) {
                int keys = 0;
                Bucket hourBucket = riakClient.fetchBucket(accountName + ";" + index).execute();
                try {
                    for (String key : hourBucket.keys()) {
                        hourBucket.delete(key);
                        keys++;
                    }
                } catch (RiakException e) {
                    e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
View Full Code Here

Examples of com.boundlessgeo.geoserver.json.JSONObj.keys()

                if("connection".equals(prop)){
                    JSONObj connection = obj.object(prop);
                    if(!connection.has("raster") && connection.str("raster") != null){
                        throw new IllegalArgumentException("Property connection.raster required for coverage store");
                    }
                    for( String param : connection.keys()){
                        if("raster".equals(param)){
                            String url = connection.str(param);
                            reconnect = reconnect || url == null || !url.equals(info.getURL());
                            info.setURL(url);
                        }
View Full Code Here

Examples of com.caucho.loader.JarMap.keys()

  {
    JarMap jarMap = new JarMap();

    jarMap.scan(jarPath);

    Iterator<String> keyIter = jarMap.keys();
    while (keyIter.hasNext()) {
      String key = keyIter.next();

      if (! key.endsWith("/pom.xml"))
        continue;
View Full Code Here

Examples of com.dotcms.repackage.org.apache.commons.collections.ExtendedProperties.keys()

        {
              throw new VelocityException("Error reading properties from '"
                + fileName + "'", e);
        }
       
        Enumeration en = props.keys();
        while (en.hasMoreElements())
        {
            String key = en.nextElement().toString();
            setProperty(key, props.get(key));
        }
View Full Code Here

Examples of com.dotcms.repackage.org.codehaus.jettison.json.JSONObject.keys()

  @SuppressWarnings("unchecked")
  protected void processJSON(Contentlet contentlet, InputStream input) throws JSONException, IOException {
    HashMap<String,Object> map=new HashMap<String,Object>();
    JSONObject obj=new JSONObject(IOUtils.toString(input));
    Iterator<String> keys = obj.keys();
    while(keys.hasNext()) {
      String key=keys.next();
      Object value=obj.get(key);
      map.put(key, value.toString());
    }
View Full Code Here

Examples of com.dotmarketing.util.json.JSONObject.keys()

            try {
              String payload = IOUtils.toString(request.getInputStream());
              JSONObject obj = new JSONObject(payload);

              Iterator<String> keys = obj.keys();
              while(keys.hasNext()) {
                  String key=keys.next();
                  Object value=obj.get(key);
                  map.put(key, value.toString());
              }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangMap.keys()

            }
            if (Map.class.isAssignableFrom(cls)) {
                if (obj instanceof OtpErlangMap) {
                    final Map<Object, Object> result = Maps.newHashMap();
                    final OtpErlangMap map = (OtpErlangMap) obj;
                    for (final OtpErlangObject key : map.keys()) {
                        final OtpErlangObject value = map.get(key);
                        result.put(erlang2java(key, key.getClass()),
                                erlang2java(value, value.getClass()));
                    }
                    return result;
View Full Code Here

Examples of com.google.api.explorer.client.base.dynamicjso.DynamicJso.keys()

   * Inspects the headers object of the given JS object and constructs a
   * {@link Map} of its keys and values.
   */
  private static Map<String, HeaderValue> createHeadersMap(DynamicJso data) {
    DynamicJso headers = data.get("headers");
    JsArrayString keys = headers.keys();
    Map<String, HeaderValue> headersMap = Maps.newHashMapWithExpectedSize(keys.length());

    for (int i = 0; i < keys.length(); i++) {
      String key = keys.get(i);
      String value = "";
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.