Examples of containsKey()


Examples of org.eclipse.jdt.internal.compiler.util.HashtableOfObject.containsKey()

        FieldBinding fieldBinding = new FieldBinding(field, null, field.modifiers | ExtraCompilerModifiers.AccUnresolved, sourceType);
        fieldBinding.id = count;
        // field's type will be resolved when needed for top level types
        checkAndSetModifiersForField(fieldBinding, field);

        if (knownFieldNames.containsKey(field.name)) {
          FieldBinding previousBinding = (FieldBinding) knownFieldNames.get(field.name);
          if (previousBinding != null) {
            for (int f = 0; f < i; f++) {
              FieldDeclaration previousField = fields[f];
              if (previousField.binding == previousBinding) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.util.SimpleLookupTable.containsKey()

        char[][] qName = qNames[j];
        if (!internedQualifiedNames.containsKey(qName)) { // remember the names have been interned
          internedQualifiedNames.put(qName, new Integer(internedQualifiedNames.elementSize));
          for (int k = 0, n = qName.length; k < n; k++) {
            char[] sName = qName[k];
            if (!internedSimpleNames.containsKey(sName)) // remember the names have been interned
              internedSimpleNames.put(sName, new Integer(internedSimpleNames.elementSize));
          }
        }
      }
      char[][] sNames = collection.simpleNameReferences;
View Full Code Here

Examples of org.eclipse.jdt.internal.core.util.HashtableOfArrayToObject.containsKey()

              }
              String[] pkgName = pkgPath.segments();

              // if package name is in the cache, then it has already been validated
              // (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=133141)
              if (allPkgFragmentsCache != null && allPkgFragmentsCache.containsKey(pkgName))
                return root.getPackageFragment(pkgName);

              if (pkgName.length != 0 && JavaConventions.validatePackageName(Util.packageName(pkgPath, sourceLevel, complianceLevel), sourceLevel, complianceLevel).getSeverity() == IStatus.ERROR) {
                return null;
              }
View Full Code Here

Examples of org.eclipse.jetty.http.HttpFields.containsKey()

        }

        // If we are HTTP 1.1, add the Host header
        if (version.getVersion() > 10)
        {
            if (!headers.containsKey(HttpHeader.HOST.asString()))
                headers.put(getHttpDestination().getHostField());
        }

        // Add content headers
        if (content != null)
View Full Code Here

Examples of org.eclipse.persistence.internal.sessions.AbstractRecord.containsKey()

                 sourcekeys.hasMoreElements();) {
            DatabaseField sourceKey = (DatabaseField)sourcekeys.nextElement();

            // CR#2587.  Try first to get the source key from the original query.  If that fails try to get it from the object.
            Object referenceKey = null;
            if ((translationRow != null) && (translationRow.containsKey(sourceKey))) {
                referenceKey = translationRow.get(sourceKey);
            } else {
                referenceKey = getDescriptor().getObjectBuilder().extractValueFromObjectForField(query.getObject(), sourceKey, query.getSession());
            }
            referenceObjectKeys.addElement(referenceKey);
View Full Code Here

Examples of org.eclipse.php.internal.core.util.collections.IntHashtable.containsKey()

   *
   * @throws Exception
   */
  public static IDebugMessage getMessage(int type) throws Exception {
    IntHashtable messages = getInstance().getMessages();
    if (messages.containsKey(type)) {
      return (IDebugMessage) messages.get(type).getClass().newInstance();
    } else {
      throw new Exception("Can't find message for ID = " + type //$NON-NLS-1$
          + " in Debug messages registry!");//$NON-NLS-1$
    }
View Full Code Here

Examples of org.exoplatform.commons.utils.ExoProperties.containsKey()

{
   public TestValidation(InitParams params)
   {
      PropertiesParam pp = params.getPropertiesParam("properties-param");
      ExoProperties ep = pp.getProperties();
      check(ep.containsKey("p1"));
      check(ep.containsKey("p2"));
      check(ep.containsKey("p3"));
      pp = params.getPropertiesParam("properties-param2");
      ep = pp.getProperties();
      check(ep.containsKey("p1"));
View Full Code Here

Examples of org.exoplatform.portal.config.model.Properties.containsKey()

        }
        Properties properties = new Properties(attributes);
        Object showInfoBarKey = Site.AttributeKeys.SHOW_PORTLET_INFO_BAR.getName();
        String showInfoBar = properties.get(showInfoBarKey);
        if (showInfoBar == null) {
            if (properties.containsKey(showInfoBarKey)) {
                properties.remove(showInfoBarKey);
            }
        } else {
            properties.put(showInfoBar, Boolean.parseBoolean(showInfoBar) ? "1" : "0");
        }
View Full Code Here

Examples of org.geomajas.service.pipeline.PipelineContext.containsKey()

  @Test
  public void testcontainsKey() throws Exception {
    PipelineContext context = new PipelineContextImpl();
    context.put("text", "SomeText");
    context.put("int", null);
    Assert.assertTrue(context.containsKey("text"));
    Assert.assertTrue(context.containsKey("int"));
    Assert.assertFalse(context.containsKey("other"));
  }
}
View Full Code Here

Examples of org.geoserver.catalog.MetadataMap.containsKey()

            final CoverageInfo cInfo=queryLayerInfo.getCoverage();
            final LayerInfo layerInfo=queryLayerInfo.getLayerInfo();
           
            // is it a BANDS Layer?
            final MetadataMap metadata = layerInfo.getMetadata();
            if(metadata.containsKey(EoLayerType.KEY)&&metadata.get(EoLayerType.KEY).equals(EoLayerType.BAND_COVERAGE.name())){
               
                // check the MERGE_BEHAVIOR as flat (this is harmless anyway)
                Map<String, Serializable> params = cInfo.getParameters();
                for(Entry<String, Serializable> entry:params.entrySet()){
                    if(entry.getKey().equalsIgnoreCase(ImageMosaicFormat.MERGE_BEHAVIOR.getName().getCode())){
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.