Examples of toMap()


Examples of org.jboss.netty.channel.ChannelPipeline.toMap()

    public Map<String, ChannelHandler> getPipelineAsMap() {
        ChannelPipeline pipeline = this.pipeline;
        if (pipeline == null) {
            throw new IllegalStateException("pipelineFactory in use");
        }
        return pipeline.toMap();
    }

    /**
     * Convenience method for {@link #setPipeline} which sets the default
     * pipeline of this bootstrap from an ordered map.
View Full Code Here

Examples of org.jetbrains.osgi.jps.util.OrderedProperties.toMap()

  @NotNull
  public Map<String, String> getAdditionalPropertiesAsMap() {
    try {
      OrderedProperties p = new OrderedProperties();
      p.load(new StringReader(getAdditionalProperties()));
      return p.toMap();
    }
    catch (IOException e) {
      LOG.warn(e);
      return Collections.emptyMap();
    }
View Full Code Here

Examples of org.magicbox.core.model.CenterUser.toMap()

        CenterUser user = getSecondFakeUser();
        repo.insertCenterUser(user);
        assertTrue(datastore.getDB().getLastError().get("err") == null);
        user = repo.getFirstCenterUser();
        assertNotNull(user);
        Map fields = new HashMap(user.toMap());
        fields.put("user-name", "max");
        CenterUser updateUser = getCenterUserFactory().createUser(fields);
        repo.updateCenterUser(updateUser);
        assertTrue(datastore.getDB().getLastError().get("err") == null);
        CenterUser retrieve = repo.getFirstCenterUser();;
View Full Code Here

Examples of org.nutz.dao.Chain.toMap()

  public void test_chain_from_object() {
    Worker w = new Worker();
    w.age = 20;
    w.name = "zzh";
    Chain c = Chain.from(w, FieldMatcher.make("age|name", null, true));
    Map<String, Object> map = c.toMap();
    assertEquals(2, map.size());
    assertEquals("zzh", map.get("name"));
    assertEquals(20, ((Short) map.get("age")).intValue());
  }
View Full Code Here

Examples of org.nutz.dao.Chain.toMap()

   */
  @Test
  public void test_chain_from_map() {
    Map<?, ?> map = Lang.map("{a:12,b:true,c:'haha'}");
    Chain c = Chain.from(map);
    Map<String, Object> map2 = c.toMap();
    assertTrue(Lang.equals(map, map2));
  }

  /**
   * Issue 93
View Full Code Here

Examples of org.nutz.dao.cache.Cache.toMap()

    String className=msg.getCacheStrategy().getClassNameByTableName(tableName);
     removeRelationObjByClassName(msg, className);
  }
  public static void removeRelationObjByClassName(ObsArgClass msg, String className) {
    Cache cache=msg.getCache();
    Map<Object, Object> cacheMap=cache.toMap();
    Set<Object> keySet=cacheMap.keySet();
    for (Object key : keySet) {//这里暂时假设key是字符串
      if(key.toString().startsWith(className)){
        cache.remove(key);
      }
View Full Code Here

Examples of org.nuxeo.ecm.rating.api.LikeStatus.toMap()

    private Map<String, Serializable> getLikeStatus(Serializable id) {
        String activityObject = ActivityHelper.createActivityObject(id);
        LikeStatus likeStatus = likeService.getLikeStatus(
                session.getPrincipal().getName(), activityObject);
        return likeStatus.toMap();
    }

}
View Full Code Here

Examples of org.ol4jsf.util.WKTFeaturesCollection.toMap()

    public String getWkts() {
        WKTFeaturesCollection features = new WKTFeaturesCollection();
        features.addAllFeatures(wkts);
       
        return features.toMap();
    }
}
View Full Code Here

Examples of org.rhq.core.domain.common.composite.SystemSettings.toMap()

        } finally {
            MCCHelper.safeClose(mcc);
        }

        SystemSettings systemSettings=systemManager.getSystemSettings(caller);
        Map<String,String> settingsMap = systemSettings.toMap();
        // Don't use putAll(), as we need to filter out passwords
        for (Map.Entry<String,String> detail : settingsMap.entrySet()) {
            String key = detail.getKey();
            if (key.equals(SystemSetting.LDAP_BIND_PW.getInternalName())
                || key.toLowerCase().contains("passw")
View Full Code Here

Examples of org.sonatype.nexus.component.source.api.http.AuthenticationConfigMarshaller.toMap()

                                   final String prefix)
  {
    if (authenticationConfig != null) {
      AuthenticationConfigMarshaller marshaller = authenticationConfigMarshallers.get(authenticationConfig.getType());
      if (marshaller != null) {
        Map<String, Object> authMap = checkNotNull(marshaller.toMap(authenticationConfig), "configuration map");
        putIfNotNull(configMap, prefix + ".authentication.type", authenticationConfig.getType());
        for (Entry<String, Object> entry : authMap.entrySet()) {
          putIfNotNull(configMap, prefix + ".authentication." + entry.getKey(), entry.getValue());
        }
      }
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.