Examples of containsKey()


Examples of com.vaadin.terminal.gwt.client.ValueMap.containsKey()

                        oldWidgets.remove(vCaption);
                    }
                }

                add((Widget) child);
                if (mapAttribute != null && mapAttribute.containsKey(r.getId())) {
                    String css = null;
                    try {
                        Style style = ((Widget) child).getElement().getStyle();
                        css = mapAttribute.getString(r.getId());
                        String[] cssRules = css.split(";");
View Full Code Here

Examples of com.webobjects.foundation.NSDictionary.containsKey()

  public void takeValuesFromRequest(WORequest request, WOContext context) {
    boolean shouldTakeValuesFromRequest = true;
    if (!request.isMultipartFormData() && ERXAjaxApplication.isAjaxRequest(request)) {
      NSDictionary formValues = request.formValues();
      int formValuesCount = formValues.count();
      if (formValuesCount == 2 && (formValues.containsKey(ERXAjaxApplication.KEY_UPDATE_CONTAINER_ID) ||
                               formValues.containsKey(ERXAjaxApplication.KEY_REPLACED)) &&
                               formValues.containsKey(WORequest._IsmapCoords)) {
        shouldTakeValuesFromRequest = false;
      }
    }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary.containsKey()

    // Classname for the class that will create the lucene index
    String className = (String) indexDef.objectForKey("index");
    NSMutableDictionary dict = indexDef.mutableClone();
   
    // If index store not defined, default to index named the dsame as the indexModel file in the indexRoot directory
    if(!dict.containsKey("store")) {
      try {
        dict.setObjectForKey(new File(indexRoot(), key).toURI().toURL().toString(), "store");
      } catch (MalformedURLException e) {
        throw NSForwardException._runtimeExceptionForThrowable(e);
      }
View Full Code Here

Examples of de.anomic.server.serverObjects.containsKey()

            if (path.length() > 0 && path.charAt(0) != '/' && path.charAt(0) != '\\') path = "/" + path; // attach leading slash
            if (path.endsWith("index.html")) path = path.substring(0, path.length() - 10);

            // a different language can be desired (by i.e. ConfigBasic.html) than the one stored in the locale.language
            String localeSelection = switchboard.getConfig("locale.language","default");
            if (args != null && (args.containsKey("language"))) {
                // TODO 9.11.06 Bost: a class with information about available languages is needed.
                // the indexOf(".") is just a workaround because there from ConfigLanguage.html commes "de.lng" and
                // from ConfigBasic.html comes just "de" in the "language" parameter
                localeSelection = args.get("language", localeSelection);
                if (localeSelection.indexOf('.') != -1)
View Full Code Here

Examples of de.anomic.server.servletProperties.containsKey()

                                templatePatterns = (servletProperties) tmp;
                            } else {
                                templatePatterns = new servletProperties((serverObjects) tmp);
                            }
                            // check if the servlets requests authentication
                            if (templatePatterns.containsKey(servletProperties.ACTION_AUTHENTICATE)) {
                                // handle brute-force protection
                                if (realmProp != null) {
                                    Log.logInfo("HTTPD", "dynamic log-in for account 'admin' in http file handler for path '" + path + "' from host '" + clientIP + "'");
                                    final Integer attempts = serverCore.bfHost.get(clientIP);
                                    if (attempts == null)
View Full Code Here

Examples of de.danet.an.util.SegmentedMap.containsKey()

  // everybody uses danet
  assertTrue(segmap.get("danet.oss.an.danet").equals("Danet GmbH"));
  boolean notFound = false;
  Object value = segmap.get("telekom.poolPKW");
  if ( (value == null)
       && !segmap.containsKey("telekom.poolPKW") ) {
      notFound = true;
  }
  assertTrue(notFound);
    }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.ProcessData.containsKey()

    private boolean invoke(WfActivity a) throws Exception {
  assertTrue(a.state() != null);
  ProcessData processData = a.processContext();
  // Check data field has been read correctly.
  processData.containsKey("emailAddress");
  processData.containsValue("account@bank.com");
  a.complete();
  Thread.sleep (1000);
  return true;
    }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.ProcessDataInfo.containsKey()

    public void contextSignature() throws Exception {
  Basic.importProcessDefinitions("/procdef/initialProcesses.xml");
  // create the process
  ProcessMgr processMgr = getProcessMgr("ut-procdef", "jut1");
  ProcessDataInfo procDataInfo = processMgr.contextSignature ();
  assertTrue (procDataInfo.containsKey("packageTestValue1"));
  assertTrue (procDataInfo.get("packageTestValue1")
        .equals (java.lang.String.class));
  assertTrue (procDataInfo.containsKey("packageTestValue2"));
  assertTrue (procDataInfo.get("packageTestValue2")
        .equals (java.lang.Double.class));
View Full Code Here

Examples of de.odysseus.calyxo.forms.view.ListModel.containsKey()

  /* (non-Javadoc)
   * @see de.odysseus.calyxo.forms.Converter#parse(javax.servlet.http.HttpServletRequest, java.lang.String)
   */
  public Object parse(HttpServletRequest request, String key) throws ParseException {
    ListModel listModel = getListModel(request);
    if (!listModel.containsKey(key)) {
      if (key == null || key.length() == 0) {
        if (listModel.getKey(null) != null) {
          throw new ParseException("Cannot parse empty/null input", 0);
        }
        return null;
View Full Code Here

Examples of de.sciss.meloncillo.util.MapManager.containsKey()

      AbstractCompoundEdit  edit  = new BasicCompoundEdit();

      for( int i = 0; i < collObjects.size(); i++ ) {
        so  = (SessionObject) collObjects.get( i );
        map = so.getMap();
        if( map.containsKey( key )) {
          edit.addPerform( new EditPutMapValue( SessionObjectTable.this, map, key, value ));
          addEdit = true;
        }
      }
      if( addEdit ) {
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.