Examples of values()


Examples of org.infinispan.container.DataContainer.values()

      DataContainer dc = flagCache.getDataContainer();
      assertFalse("Data Container should not have all keys", numKeys == dc.size());
      Collection<Object> values = flagCache.values();
      assertEquals(dc.size(), values.size());

      Collection<Object> dcValues = dc.values();
      for (Object dcValue : dcValues) {
         assertTrue("Value: " + dcValue + " was not found!", values.contains(dcValue));
      }
   }
}
View Full Code Here

Examples of org.internna.iwebmvc.metadata.ui.EntityFilter.values()

            String[] parts = path.split("\\.");
            for (int index = 0; index < parts.length - 1; index++) type = getType(type, parts[index]);
            if (logger.isDebugEnabled()) logger.debug("Obtained super type [" + type + "] for enum at [" + entityClass + "." + path + "]");
            Field field = ClassUtils.getField(type, parts[parts.length - 1]);
            EntityFilter filter = field.getAnnotation(EntityFilter.class);
            String[] values = filter == null ? null : filter.values();
            if ((values == null) || (values.length <= 0)) {
              Class<?> enumType = field.getType();
              if (enumType.isEnum()) {
                    Object[] constants = enumType.getEnumConstants();
                    values = new String[constants.length];
View Full Code Here

Examples of org.jamesii.core.experiments.optimization.parameter.Configuration.values()

    } catch (CloneNotSupportedException e) {
      SimSystem.report(e);
      return null;
    }

    for (BaseVariable<?> factor : config.values()) {
      BaseVariable<?> temp =
          (BaseVariable<?>) simConfig.getParameters().get(factor.getName());
      config.put(factor.getName(), temp);
    }
View Full Code Here

Examples of org.jbehave.core.steps.Parameters.values()

        String tableAsString = "|one|\n|11|\n|22|";
        ExamplesTable examplesTable = factory.createExamplesTable(tableAsString).withDefaults(defaults);

        // Then
        Parameters firstRow = examplesTable.getRowAsParameters(0);
        Map<String, String> firstRowValues = firstRow.values();
        assertThat(firstRowValues.containsKey("one"), is(true));
        assertThat(firstRow.valueAs("one", String.class), is("11"));
        assertThat(firstRow.valueAs("one", Integer.class), is(11));
        assertThat(firstRowValues.containsKey("three"), is(true));
        assertThat(firstRow.valueAs("three", String.class), is("99"));
View Full Code Here

Examples of org.jboss.jandex.AnnotationInstance.values()

            return;
        }
        validate(annotationsOnBean, dependsOnAnnotations, singletonComponentDescription.getEJBName());
        final AnnotationInstance dependsOnAnnotation = dependsOnAnnotations.get(0);
        // Add the dependencies
        final List<AnnotationValue> annotationValues = dependsOnAnnotation.values();
        for (AnnotationValue annotationValue : annotationValues) {
            componentDescription.addDependency(createServiceName(deploymentUnit, annotationValue.asString(), null),
                    DependencyType.REQUIRED);
        }
        logger.info(singletonComponentDescription.getEJBName() + " bean has @DependsOn");
View Full Code Here

Examples of org.jboss.metatype.api.values.CompositeValue.values()

      log.info("serviceBindings: " + prop);
      val = prop.getValue();
      assertNotNull("property serviceBindings has no value", val);
      assertTrue("property serviceBindings value is CompositeValue", val instanceof CompositeValue);
      CompositeValue compVal = (CompositeValue) val;
      assertEquals("correct number of standard bindings", offsets.size(), compVal.values().size());
      for (String bindingSetName : offsets.keySet())
      {
         MetaValue mv = compVal.get(bindingSetName);
         assertTrue(mv instanceof CollectionValue);
         CollectionValue colVal = (CollectionValue) mv;
View Full Code Here

Examples of org.jboss.metatype.api.values.CompositeValueSupport.values()

    MetaType metaType = pValue.getMetaType();
    if (metaType.isCollection()) {
      for (MetaValue value : ((CollectionValueSupport) pValue)
          .getElements()) {
        CompositeValueSupport compValue = ((CompositeValueSupport) value);
        for (MetaValue propValue : compValue.values()) {
          String propertyName = ((CompositeValueSupport) propValue)
              .get("name").toString();
          String propertyValue = ((CompositeValueSupport) propValue)
              .get("value").toString();
          map.put("name", propertyName);
View Full Code Here

Examples of org.jboss.metatype.api.values.TableValueSupport.values()

    {
        // Not important at this moment to implement as there sin't a need for this mapping yet.
        if (metaValue != null)
        {
            TableValueSupport valueSupport = (TableValueSupport)metaValue;
            Collection<CompositeValue> values = valueSupport.values();
            for (CompositeValue value : values)
            {
                CompositeValueSupport support = (CompositeValueSupport)value;
            }
        }
View Full Code Here

Examples of org.jclouds.blobstore.BlobMap.values()

         BlobMap map = createMap(view, bucketName);

         putFiveStrings(map);
         putFiveStringsUnderPath(map);

         Collection<Blob> blobs = map.values();
         assertConsistencyAwareMapSize(map, 5);
         Set<String> blobsAsString = Sets.newLinkedHashSet();
         for (Blob blob : blobs) {
            blobsAsString.add(getContentAsStringOrNullAndClose(blob));
         }
View Full Code Here

Examples of org.jclouds.trmk.vcloud_0_8.domain.Catalog.values()

   @Test
   public void testGetConfigCustomizationOptions() throws Exception {
      for (Org org : orgs) {
         for (ReferenceType catalog : org.getCatalogs().values()) {
            Catalog response = api.getCatalog(catalog.getHref());
            for (ReferenceType resource : response.values()) {
               if (resource.getType().equals(TerremarkVCloudMediaType.CATALOGITEM_XML)) {
                  CatalogItem item = api.findCatalogItemInOrgCatalogNamed(org.getName(), catalog.getName(),
                        resource.getName());
                  assert api.getCustomizationOptions(item.getCustomizationOptions().getHref()) != null;
               }
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.