Package java.util

Examples of java.util.Hashtable.keySet()


      try
      {
         // Obtain the environment naming context.
         Context initCtx = new InitialContext();
         Hashtable env = initCtx.getEnvironment();
         Iterator keys = env.keySet().iterator();
         log.info("InitialContext.env:");
         while( keys.hasNext() )
         {
            Object key = keys.next();
            log.info("Key: "+key+", value: "+env.get(key));
View Full Code Here


        olatScoCmi.remove(cmi);
        olatScoCmi.put(cmi,ins.get(cmi));
      }
    }
    if(mod.size() > 0){
      Set set = mod.keySet();
      for(Iterator it = set.iterator();it.hasNext();){
        String cmi = (String)it.next();
        olatScoCmi.remove(cmi);
        olatScoCmi.put(cmi,mod.get(cmi));
      }
View Full Code Here

            }
            contextProps.put(key.substring(end + 1),
                             conf.getString(key));
            contextPropsList.put(contextName, contextProps);
        }
        for (Iterator contextPropsKeys = contextPropsList.keySet().iterator();
                contextPropsKeys.hasNext();)
        {
            String key = (String) contextPropsKeys.next();
            Properties contextProps = (Properties) contextPropsList.get(key);
            InitialContext context = new InitialContext(contextProps);
View Full Code Here

     */
    public static ObjectName createObjectName(Map nameMap) {
        Hashtable objectNameMap = new Hashtable(nameMap);
        String type = (String) nameMap.get(J2EE_TYPE);
        if ("JVM".equals(type)) {
            objectNameMap.keySet().retainAll(Arrays.asList(new String[] {J2EE_TYPE, J2EE_NAME, "J2EEServer"}));
            objectNameMap.put("J2EEServer", DEFAULT_SERVER_NAME);
        } else if ("J2EEDomain".equals(type)) {
            //special case J2EEDomain gbean
            objectNameMap.clear();
            objectNameMap.put(J2EE_TYPE, "J2EEDomain");
View Full Code Here

    {
        super.setContextProperties(file);

        // Map the torque.xxx elements from the env to the contextProperties
        Hashtable env = super.getProject().getProperties();
        for (Iterator i = env.keySet().iterator(); i.hasNext();)
        {
            String key = (String) i.next();
            if (key.startsWith("torque."))
            {
                String newKey = key.substring("torque.".length());
View Full Code Here

public abstract class CollectionHelper {

    public static Hashtable parameterMapToHashtable(Map m) {
        Hashtable ret = new Hashtable();
        ret.putAll(m);
        for (Iterator i = ret.keySet().iterator(); i.hasNext();) {
            Object key = i.next();
            String[] value = (String[]) ret.get(key);
            try {
                ret.put(key, value[0]);
            } catch (ArrayIndexOutOfBoundsException e) {
View Full Code Here

  protected void setZoneDetectorService(EndPointService refEndPointService) {
    printMessage(LogService.LOG_DEBUG, this.getClass().getName()
        + "________________________Dectecteur");

    Hashtable clusters = refEndPointService.getServerSideClusters();
    for (Iterator it = clusters.keySet().iterator(); it.hasNext();) {
      // System.out.println("cluster key = " + it.next());
      ClusterService cs = refEndPointService
          .getServerSideCluster((Integer) it.next());

      // A revoir !!!!!!!!!!!!!!!!!!!!!!
View Full Code Here

     * Load the initial user files extension point and copy the files to the projects root
     */

          
         Hashtable eclipseConfig = EclipseProjectUtil.getEclipseConfig(projectName);
         Iterator keys = eclipseConfig.keySet().iterator();
         while(keys.hasNext()){
            Object key = keys.next();
             String filePath = (String)key;
             String xml = (String)eclipseConfig.get(key);
             IPath resourcePath = new Path(project.getPath()).append(filePath);
View Full Code Here

      if((value instanceof Hashtable) == false)
         throw new IllegalArgumentException("PropertiesMetaType requires a java.lang.Properties value, value.class: "+value.getClass());

      Hashtable pvalue = (Hashtable) value;
      PropertiesMetaValue pmv = new PropertiesMetaValue();
      for(Object key : pvalue.keySet())
      {
         if ((key instanceof String) == false)
            throw new IllegalArgumentException("key("+key+") is not a String");
         String skey = (String) key;
         Object ovalue = pvalue.get(skey);
View Full Code Here

      if((value instanceof Hashtable) == false)
         throw new IllegalArgumentException("PropertiesMetaType requires a java.lang.Properties value, value.class: "+value.getClass());

      Hashtable pvalue = (Hashtable) value;
      PropertiesMetaValue pmv = new PropertiesMetaValue();
      for(Object key : pvalue.keySet())
      {
         if ((key instanceof String) == false)
            throw new IllegalArgumentException("key("+key+") is not a String");
         String skey = (String) key;
         Object ovalue = pvalue.get(skey);
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.