Examples of containsKey()


Examples of org.mortbay.util.MultiMap.containsKey()

                        while (iter.hasNext())
                        {
                            Map.Entry entry = (Map.Entry)iter.next();
                            String name=(String)entry.getKey();

                            if (parameters.containsKey(name))
                                rewrite_old_query = true;
                            Object values=entry.getValue();
                            for (int i=0;i<LazyList.size(values);i++)
                                parameters.add(name, LazyList.get(values, i));
                        }
View Full Code Here

Examples of org.moxie.maxml.MaxmlMap.containsKey()

            String prop = sub.getPropertyName();
            MaxmlMap keyMap = dataMap;
            // recursively create/find the destination map
            while (prop.indexOf('.') > -1) {
              String m = prop.substring(0, prop.indexOf('.'));
              if (!keyMap.containsKey(m)) {
                keyMap.put(m, new MaxmlMap());
              }
              keyMap = keyMap.getMap(m);
              prop = prop.substring(m.length() + 1);
            }
View Full Code Here

Examples of org.mozilla.javascript.NativeObject.containsKey()

        try
        {

            NativeObject result = (NativeObject) executor.invokeFunction("compileCoffeeScriptSource", content, source.toString());

            if (result.containsKey("exception"))
            {
                throw new RuntimeException(getString(result, "exception"));
            }

            return IOUtils.toInputStream(getString(result, "output"), UTF8);
View Full Code Here

Examples of org.mule.util.CaseInsensitiveHashMap.containsKey()

            {
                putCookieHeaderInMapAsAClient(headersMap, header, uri);
            }
            else
            {
                if (headersMap.containsKey(header.getName()))
                {
                    if (headersMap.get(header.getName()) instanceof String)
                    {
                        // concat
                        headersMap.put(header.getName(),
View Full Code Here

Examples of org.netbeans.spi.project.support.ant.EditableProperties.containsKey()

                                propName = name + ".dir";    //NOI18N
                            }

                            int rootIndex = 1;
                            EditableProperties props = h[0].getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);
                            while (props.containsKey(propName)) {
                                rootIndex++;
                                propName = name + rootIndex + ".dir";   //NOI18N
                            }
                            String srcReference = refHelper.createForeignFileReference(sourceFolders[i], JavaProjectConstants.SOURCES_TYPE_JAVA);
                            Element root = doc.createElementNS (J2SEProjectType.PROJECT_CONFIGURATION_NAMESPACE,"root");   //NOI18N
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EOModelMap.containsKey()

        _databaseDataSource = ds;
      }

      if (_entityName == null) {
        // XXX Invalid display group
        if (dataSourceMap.containsKey("fetchSpecification")) {
          EOModelMap fetchSpecMap = new EOModelMap(dataSourceMap.getMap("fetchSpecification"));
          _entityName = fetchSpecMap.getString("entityName", true);
        }
        else if (dataSourceMap.containsKey("masterClassDescription")) {
          _entityName = dataSourceMap.getString("masterClassDescription", true);
View Full Code Here

Examples of org.objectweb.celtix.tools.common.ProcessorEnvironment.containsKey()

                env.setParameters(getParametersMap(getArrayKeys()));
                if (env.get(ToolConstants.CFG_OUTPUTDIR) == null) {
                    env.put(ToolConstants.CFG_OUTPUTDIR, ".");
                }

                if (env.containsKey(ToolConstants.CFG_ANT)) {
                    setAntProperties(env);
                    setLibraryReferences(env);
                }

                if (isVerboseOn()) {
View Full Code Here

Examples of org.ofbiz.entity.GenericPK.containsKey()

            BigDecimal quantityUsed = entry.getValue();
            if (quantityUsed != null) {
                // must be in the same rule and be a condition
                if (productPromoId.equals(productPromoCondActionPK.getString("productPromoId")) &&
                        productPromoRuleId.equals(productPromoCondActionPK.getString("productPromoRuleId")) &&
                        productPromoCondActionPK.containsKey("productPromoCondSeqId")) {
                    totalUse = totalUse.add(quantityUsed);
                }
            }
        }
View Full Code Here

Examples of org.ofbiz.entity.GenericValue.containsKey()

            templateContext = FastMap.newInstance();
        }

        Writer outWriter = new StringWriter();
        GenericValue view = (GenericValue)context.get("subContentDataResourceView");
        if (view != null && view.containsKey("contentId")) {
            contentId = view.getString("contentId");
        }

        try {
            ContentWorker.renderContentAsText(dispatcher, delegator, contentId, outWriter, templateContext, locale, mimeTypeId, null, null, true);
View Full Code Here

Examples of org.omnaest.utils.propertyfile.content.PropertyMap.containsKey()

          {
            //
            String[] values = value.split( Pattern.quote( FileGroupToPropertiesAdapter.MULTILINE_VALUES_SEPARATOR ) );
           
            //
            Property property = propertyMap.containsKey( propertyKey ) ? property = propertyMap.get( propertyKey )
                                                                      : new Property();
           
            //
            property.setKey( propertyKey );
            property.clearValues();
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.