Examples of asMap()


Examples of org.mapfish.print.output.Values.asMap()

        value.attributesValues = new Map[pValue.size()];
        for (int i = 0; i < pValue.size(); i++) {
            PObject rowData = pValue.getObject(i);
            final Values valuesForParsing = new Values();
            valuesForParsing.populateFromAttributes(template, parser, this.attributes, rowData);
            value.attributesValues[i] = valuesForParsing.asMap();
        }

        return value;
    }
View Full Code Here

Examples of org.neo4j.rest.graphdb.query.CypherResult.asMap()

        return new RestTraverser((Collection) col,restNode.getRestApi());
    }

    public QueryResult<Map<String, Object>> query(String statement, Map<String, Object> params, ResultConverter resultConverter) {
        final CypherResult result = query(statement, params);
        if (RestResultException.isExceptionResult(result.asMap())) throw new RestResultException(result.asMap());
        return RestQueryResult.toQueryResult(result, this, resultConverter);
    }

    @Override
    public RestEntity createRestEntity(Map data) {
View Full Code Here

Examples of org.openqa.selenium.Capabilities.asMap()

  public IOSCapabilities getCapabilities() {
    Capabilities cap = super.getCapabilities();
    if (cap == null) {
      return null;
    }
    IOSCapabilities ioscap = new IOSCapabilities(cap.asMap());
    return ioscap;
  }

  @Override
  protected WebElement findElement(String by, String using) {
View Full Code Here

Examples of org.openrdf.result.NamespaceResult.asMap()

      if (result == null) {
        assert namespaces != null;
        namespaces.refreshed(now, client.getMaxAge());
      }
      else {
        namespaces = new CachedNamespaceResult(result.asMap(), client.getETag());
      }
    }
    return namespaces.getNamespaces();
  }
}
View Full Code Here

Examples of org.platformlayer.service.zookeeper.ops.ZookeeperUtils.ZookeeperResponse.asMap()

      {
        ZookeeperResponse response;
        try {
          response = ZookeeperUtils.sendCommand(target, socketAddress, "srvr");

          Map<String, String> responseMap = response.asMap();
          String mode = responseMap.get("Mode");

          Deviations.assertIn(Arrays.asList("follower", "leader"), mode, "Zookeeper mode");
        } catch (OpsException e) {
          Deviations.fail("Unable to connect to zookeeper", e);
View Full Code Here

Examples of org.sonatype.nexus.proxy.attributes.DefaultAttributes.asMap()

    final ByteArrayOutputStream bos = new ByteArrayOutputStream();
    marshaller.marshal(attributes1, bos);
    final ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
    final Attributes attributes2 = marshaller.unmarshal(bis);
    // size same
    assertThat(attributes2.asMap().size(), equalTo(attributes1.asMap().size()));
    // as maps are equal
    assertThat(attributes2.asMap(), equalTo(attributes1.asMap()));
    // but we deal with two different instances
    assertThat(System.identityHashCode(attributes2), not(equalTo(System.identityHashCode(attributes1))));
  }
View Full Code Here

Examples of org.sonatype.nexus.yum.internal.capabilities.GenerateMetadataCapabilityConfiguration.asMap()

    try {
      capabilityRegistry.update(
          capabilityReference.context().id(),
          capabilityReference.context().isEnabled(),
          capabilityReference.context().notes(),
          newConfiguration.asMap()
      );
    }
    catch (CapabilityNotFoundException e) {
      throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND, e.getMessage());
    }
View Full Code Here

Examples of org.springframework.binding.collection.MapAdaptable.asMap()

    }
  }

  private Map adapt(Object base) {
    MapAdaptable adaptable = (MapAdaptable) base;
    return adaptable.asMap();
  }

}
View Full Code Here

Examples of org.springframework.ui.ExtendedModelMap.asMap()

        verify(widgetService);
        assertThat(view, is(equalTo(ViewNames.STORE)));
        assertThat(model.containsAttribute(ModelKeys.WIDGETS), is(true));
        assertThat(model.containsAttribute(ModelKeys.WIDGETS_STATISTICS), is(true));
        assertThat((String) model.asMap().get(ModelKeys.REFERRING_PAGE_ID), is(equalTo(REFERRER_ID)));
        assertThat(widgets, is(sameInstance(emptyResult.getResultSet())));
        assertThat(model.containsAttribute(ModelKeys.TAGS), is(true));
        assertThat(model.containsAttribute(ModelKeys.CATEGORIES), is(true));

    }
View Full Code Here

Examples of org.springframework.ui.ExtendedModelMap.asMap()

        verify(widgetService);
        assertThat(view, is(equalTo(ViewNames.STORE)));
        assertThat(model.containsAttribute(ModelKeys.WIDGETS), is(true));
        assertThat(model.containsAttribute(ModelKeys.WIDGETS_STATISTICS), is(true));
        assertThat((String) model.asMap().get(ModelKeys.REFERRING_PAGE_ID), is(equalTo(REFERRER_ID)));
        assertThat(widgets, is(sameInstance(emptyResult.getResultSet())));
        assertThat(model.containsAttribute(ModelKeys.TAGS), is(true));
        assertThat(model.containsAttribute(ModelKeys.CATEGORIES), is(true));

    }
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.