Examples of containsKey()


Examples of org.jdesktop.wonderland.server.security.ActionMap.containsKey()

            // get the binding for the session listener
            WonderlandSessionListener listener = (WonderlandSessionListener)
                    AppContext.getDataManager().getBinding(bindingName);

            if (am.containsKey(ConnectAction.getInstance().getName())) {
                // request was accepted -- continue processing
                listener.finishAttach(messageID, type, properties, ref);
            } else {
                logger.fine("Session " + listener.getSession().getName() +
                        " permission denied for client type " + type);
View Full Code Here

Examples of org.jets3t.service.Jets3tProperties.containsKey()

                System.exit(2);                       
            }
        }
               
        // Ensure the Synchronize properties file contains everything we need.
        if (!properties.containsKey("accesskey")) {
            System.err.println("ERROR: The properties file " + propertiesFileName + " must contain the property: accesskey");
            System.exit(2);           
        } else if (!properties.containsKey("secretkey")) {
            System.err.println("ERROR: The properties file " + propertiesFileName + " must contain the property: secretkey");
            System.exit(2);                       
View Full Code Here

Examples of org.jgroups.util.RspList.containsKey()

    public void testConstructor() {
        Collection<Rsp> c=new LinkedList<Rsp>();
        c.add(rsp1); c.add(rsp2); c.add(rsp3);
        RspList tmp=new RspList(c);
        Assert.assertEquals(c.size(), tmp.size());
        assert tmp.containsKey(a1);
        assert tmp.containsKey(a2);
        assert tmp.containsKey(a3);
        assert tmp.containsValue(rsp1);
        assert tmp.containsValue(rsp2);
        assert tmp.containsValue(rsp3);
View Full Code Here

Examples of org.jibeframework.core.app.config.ConfigMap.containsKey()

  @SuppressWarnings("unchecked")
  public void fireEvent(Object source, String id, String event, Object... data) {
    ConfigMap handlers = (ConfigMap) configService.getConfig("core.binding");
    Event eventData = new Event(source, data);
    if (handlers.containsKey(id)) {
      Map map = (Map) handlers.get(id);
      if (map.containsKey(event)) {
        invoke((String) map.get(event), eventData);
      }
    }
View Full Code Here

Examples of org.jitterbit.collections.StringKeyValuePairs.containsKey()

        StringKeyValuePairs keyValues = getPropertiesForDeploy();

        // Make sure the Id and name are set.
        keyValues.put(getIdKey(), getID().toString());
        String nameKey = getNameKey();
        if (!keyValues.containsKey(nameKey)) {
            keyValues.put(nameKey, getName());
        }
        for (int i = 0; i < N; ++i) {
            String value = keyValues.get(keys[i]);
            values[i] = value;
View Full Code Here

Examples of org.joget.apps.form.model.FormRow.containsKey()

                                String uploadPath = getUploadPath(element, id);

                                String newFileName = validateFileName(fileName, uploadPath, existedFileName);
                                existedFileName.add(newFileName);

                                if (row.containsKey(fieldId)) {
                                    row.put(fieldId, newFileName);
                                }

                                if (!newFileName.equals(file.getName())) {
                                    String newPath = path.replace(file.getName(), newFileName);
View Full Code Here

Examples of org.jruby.RubyHash.containsKey()

      // remove unused
      for (int i = 1, l = aro.size(); i < l; i++) {
        int nid = (Integer) aro.get(i).getObject().getInstanceVariable("@id").toJava(Integer.class);
        RubyFixnum rid = (RubyFixnum) aro.get(i).getObject().getInstanceVariable("@id");
        if (mapinfos.containsKey(rid) && !idCache.containsKey(nid)) {
          mapinfos.remove(mapinfos.get(rid));
        }
      }

      // save it
View Full Code Here

Examples of org.jruby.RubyObject.containsKey()

      // build the list
      ArrayList<SystemGObject> ro = new ArrayList<SystemGObject>();
      for (int i = 0; i <= max; i++) {
        // add it
        if (o.containsKey(i)) {
          ro.add(new SystemGObject(o.get(i)));
        } else {
          // build filler
          RubyObject no = (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet("return RPG::Map.new(20,15)");
          no.setInstanceVariable("@name", RubyString.newString(r.getRuntime(), "Fill " + i));
View Full Code Here

Examples of org.json.simple.JSONObject.containsKey()

 
  public ViewBean(byte[] buffer) throws ParseException {
    JSONParser parser = new JSONParser();
    try {
      JSONObject json = (JSONObject) parser.parse(new String(buffer));
      if(json.containsKey("description")) {
        this.description = (String) json.get("description");
      } else {
        this.description = "";
      }
      this.owner= (String) json.get("owner");
View Full Code Here

Examples of org.lealone.constant.DbSettings.containsKey()

        ci.removeProperty("SERVER_TYPE", false);
        session.setAllowLiterals(true);
        DbSettings defaultSettings = DbSettings.getInstance();
        for (String setting : ci.getKeys()) {
            if (defaultSettings.containsKey(setting)) {
                // database setting are only used when opening the database
                continue;
            }
            String value = ci.getProperty(setting);
            try {
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.