Examples of containsKey()


Examples of org.openengsb.core.edb.api.EDBObject.containsKey()

        List<EDBObject> result = db.query(QueryRequest.create());
        EDBObject result1 = getEDBObjectOutOfList(result, "/test/querynew3");
        EDBObject result2 = getEDBObjectOutOfList(result, "/test/querynew4");
        assertThat(result.size(), is(2));
        assertThat(result1.containsKey("K"), is(false));
        assertThat(result2.containsKey("Dog"), is(true));
    }

    @Test
    public void testQueryOfLastKnownVersion_shouldWork() throws Exception {
        Map<String, EDBObjectEntry> data1v1 = new HashMap<String, EDBObjectEntry>();
View Full Code Here

Examples of org.opengis.feature.type.Schema.containsKey()

    private Class mapTypeName(String typeName) {
        //try xs simple type
        Schema xsTypeMappingProfile = XS.getInstance().getTypeMappingProfile();
        NameImpl name = new NameImpl(XS.NAMESPACE, typeName);
        if (xsTypeMappingProfile.containsKey(name)) {
            AttributeType type = xsTypeMappingProfile.get(name);
            if (type.getBinding() != null) {
                return type.getBinding();
            }
        }
View Full Code Here

Examples of org.openhab.binding.http.internal.HttpGenericBindingProvider.HttpBindingConfig.containsKey()

   
    // method under test
    HttpBindingConfig config = provider.parseBindingConfig(testItem, bindingConfig);
   
    // asserts
    Assert.assertEquals(true, config.containsKey(HttpGenericBindingProvider.IN_BINDING_KEY));
    Assert.assertEquals(null, config.get(HttpGenericBindingProvider.IN_BINDING_KEY).httpMethod);
    Assert.assertEquals("http://www.google.com:1234/ig/api?weather=Krefeld+Germany&hl=de", config.get(HttpGenericBindingProvider.IN_BINDING_KEY).url);
    Assert.assertEquals(60000, config.get(HttpGenericBindingProvider.IN_BINDING_KEY).refreshInterval);
    Assert.assertEquals("REGEX(.*?<current_conditions>.*?<temp_c data=\"(.*?)\".*)", config.get(HttpGenericBindingProvider.IN_BINDING_KEY).transformation);
   
View Full Code Here

Examples of org.openntf.domino.Document.containsKey()

      }
    }
    sb.append(Integer.toString(count) + " documents contained a value 'Aurora'");
    sb.append("..............");
    Document testDoc = contacts.getFirstDocument();
    if (testDoc.containsKey("Form")) {
      sb.append("First doc contains key Form");
    } else {
      sb.append("First doc does not contain key Form");
    }
    ExtLibUtil.getViewScope().put("javaTest", sb.toString());
View Full Code Here

Examples of org.openstreetmap.josm.data.gpx.Extensions.containsKey()

            // Otherwise, for a group of markers with the same Link-URI (e.g. an
            // audio file) calculate the offset relative to the first marker of
            // that group. This way the user can jump to the corresponding
            // playback positions in a long audio track.
            Extensions exts = (Extensions) wpt.get(GpxConstants.META_EXTENSIONS);
            if (exts != null && exts.containsKey("offset")) {
                try {
                    offset = Double.parseDouble(exts.get("offset"));
                } catch (NumberFormatException nfe) {
                    Main.warn(nfe);
                }
View Full Code Here

Examples of org.openstreetmap.josm.plugins.graphview.core.data.TagGroup.containsKey()

 
  @Override
  protected void applyToWaySegment(MapWaySegment line) {

    TagGroup tags = line.getTags();
    if (!tags.containsKey("barrier")) return; //fast exit for common case
   
    if (Wall.fits(tags)) {
      line.addRepresentation(new Wall(line));
    } else if (CityWall.fits(tags)) {
      line.addRepresentation(new CityWall(line));
View Full Code Here

Examples of org.pdfclown.documents.contents.FontResources.containsKey()

    {
      // Insert the font within the resources!
      int fontIndex = fonts.size();
      do
      {name = new PdfName(String.valueOf(++fontIndex));}
      while(fonts.containsKey(name));
      fonts.put(name,value); fonts.update();
    }

    return name;
  }
View Full Code Here

Examples of org.pdfclown.documents.contents.XObjectResources.containsKey()

    {
      // Insert the external object within the resources!
      int xObjectIndex = xObjects.size();
      do
      {name = new PdfName(String.valueOf(++xObjectIndex));}
      while(xObjects.containsKey(name));
      xObjects.put(name,value); xObjects.update();
    }

    return name;
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDictionary.containsKey()

      return null;

    PdfDictionary dataObject = (PdfDictionary)File.resolve(baseObject);
    PdfName actionType = (PdfName)dataObject.get(PdfName.S);
    if(actionType == null
      || (dataObject.containsKey(PdfName.Type)
          && !dataObject.get(PdfName.Type).equals(PdfName.Action)))
      return null;

    if(actionType.equals(PdfName.GoTo))
      return new GoToLocal(baseObject,container);
View Full Code Here

Examples of org.quartz.JobDataMap.containsKey()

        String operationName = jobDataMap.getString(OperationJob.DATAMAP_STRING_OPERATION_NAME);
        String displayName = jobDataMap.getString(OperationJob.DATAMAP_STRING_OPERATION_DISPLAY_NAME);
        int subjectId = jobDataMap.getIntFromString(OperationJob.DATAMAP_INT_SUBJECT_ID);
        Configuration parameters = null;

        if (jobDataMap.containsKey(OperationJob.DATAMAP_INT_PARAMETERS_ID)) {
            int configId = jobDataMap.getIntFromString(OperationJob.DATAMAP_INT_PARAMETERS_ID);
            parameters = entityManager.find(Configuration.class, configId);
        }

        int resourceId = jobDataMap.getIntFromString(ResourceOperationJob.DATAMAP_INT_RESOURCE_ID);
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.