Examples of keys()


Examples of org.jetbrains.osgi.jps.util.OrderedProperties.keys()

  @Test
  public void testRead() throws IOException {
    OrderedProperties props = new OrderedProperties();
    props.load(new StringReader("Foo: Bar,\\\nnaf\nBar: naf\nBaz=naf\n"));

    Enumeration<Object> keys = props.keys();
    assertThat((String)keys.nextElement(), equalTo("Foo"));
    assertThat((String)keys.nextElement(), equalTo("Bar"));
    assertThat((String)keys.nextElement(), equalTo("Baz"));

    Enumeration<?> propertyNames = props.propertyNames();
View Full Code Here

Examples of org.jfree.util.HashNMap.keys()

        }

        // at this point, the keys of 'classMap' represent all required
        // multiplexers, while the values assigned to these keys define the
        // possible childs
        final Iterator keys = classMap.keys();
        while (keys.hasNext()) {
            final Class base = (Class) keys.next();
            final Class[] childs = (Class[]) classMap.toArray(base, new Class[0]);
            if (childs.length < 2) {
                continue;
View Full Code Here

Examples of org.jredis.JRedis.keys()

    public void dropIndex(final String indexName) {
        String idxName = RedisIndex.normalizeName(indexName);
        JRedis db = this.graph.getDatabase();

        try {
            List<String> keyList = db.keys(RedisIndexKeys.AUTO + idxName + ":*");
            for(String key : keyList){
                    db.del(key);
            }

            keyList = db.keys(RedisIndexKeys.META_AUTO + idxName + ":*");
 
View Full Code Here

Examples of org.jruby.RubyHash.keys()

        File f = new File(directory + File.separator + string);

        runtime.loadFile(f, false);
        // runtime.loadFile(f, false);
        RubyHash rubyObject = (RubyHash) runtime.evalScript("init");
        for (Object s : rubyObject.keys().getList()) {
          System.out.println(s);
          map.put(s.toString(), rubyObject.get(s).toString());
        }
        // map.put(rubyObject.get(0).toString(), rubyObject.get(1)
        // .toString());
View Full Code Here

Examples of org.json.JSONArray.keys()

                    return true;
                }
            }
        } else if (obj instanceof JSONObject) {
            JSONObject _obj = (JSONObject)obj;
            Iterator keys = _obj.keys();
            while (keys.hasNext()) {
                String key = (String)keys.next();
                Object v;
                try {
                    v = _obj.get(key);
View Full Code Here

Examples of org.json.JSONObject.keys()

    if (match == 0) {
      throw new UnmarshallException("bean has no matches");
    }

    ObjectMatch m = null, tmp;
    i = jso.keys();
    while (i.hasNext()) {
      String field = (String) i.next();
      Method setMethod = bd.writableProps.get(field);
      if (setMethod != null) {
        try {
View Full Code Here

Examples of org.json.me.JSONObject.keys()

        if (jsonArray != null && jsonArray.length() > 0) {
          // determine the total pattern array size
          int jsonItems = 0;
          for (int i = 0; i < jsonArray.length(); i++) {
            jsonObj = jsonArray.getJSONObject(i);
            jsonKeys = jsonObj.keys();
            while (jsonKeys.hasMoreElements()) {
              tmp = (String)jsonKeys.nextElement();
              jsonItems++;
            }
          }
View Full Code Here

Examples of org.json_voltpatches.JSONObject.keys()

            Map<String, Map<Integer, Pair<Long, Long>>> exportSequenceNumbers = null;
            final JSONObject exportSequenceJSON = jsonObj.getJSONObject("exportSequenceNumbers");
            final ImmutableMap.Builder<String, Map<Integer, Pair<Long, Long>>> builder =
                    ImmutableMap.builder();
            @SuppressWarnings("unchecked")
            final Iterator<String> tableKeys = exportSequenceJSON.keys();
            while (tableKeys.hasNext()) {
                final String tableName = tableKeys.next();
                final JSONObject tableSequenceNumbers = exportSequenceJSON.getJSONObject(tableName);
                ImmutableMap.Builder<Integer, Pair<Long, Long>> tableBuilder = ImmutableMap.builder();
                @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.luaj.vm2.LuaTable.keys()

            return wgScript + "?title="+page.checkstring()+"&"+query.checkjstring();
        } else if (query.istable()) {
            LuaTable params = query.checktable();

            String base = wgScript + "?title="+page.checkstring()+"&";
            for (LuaValue key : params.keys()) {
                base += (key.tojstring() + "=" + params.get(key).tojstring());
            }
            return base;
        } else {
            throw new AssertionError("unexpected type: "+query);
View Full Code Here

Examples of org.mapfish.print.wrapper.PObject.keys()

        if (table != null) {
            final PArray oldTableRows = table.optArray("data", new PJsonArray(table, new JSONArray(), "data"));

            for (int i = 0; i < oldTableRows.size(); i++) {
                final PObject oldRow = oldTableRows.getObject(i);
                if (!oldRow.keys().hasNext()) {
                    // row is empty, skip
                    continue;
                }

                // copy the values for each column
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.