Package java.util

Examples of java.util.Map.entrySet()


      final String[] attrExprNamespaces = e.attributeExpressions.getNameSpaces();
      for (int i = 0; i < attrExprNamespaces.length; i++)
      {
        final String namespace = attrExprNamespaces[i];
        final Map attrsNs = attributeExpressions.getAttributes(namespace);
        final Iterator it = attrsNs.entrySet().iterator();
        while (it.hasNext())
        {
          final Map.Entry entry = (Map.Entry) it.next();
          final Expression exp = (Expression) entry.getValue();
          e.attributeExpressions.setAttribute(namespace, (String) entry.getKey(), exp.getInstance());
View Full Code Here


    {
      return false;
    }
    boolean retval = false;
    final ElementStyleSheet style = e.getStyle();
    final Iterator entries = styleExpressions.entrySet().iterator();
    while (entries.hasNext())
    {
      final Map.Entry entry = (Map.Entry) entries.next();
      final StyleKey key = (StyleKey) entry.getKey();
      final Expression ex = (Expression) entry.getValue();
View Full Code Here

                  }
                  catch (Throwable ex) {
                     log.warning("An exception occured when parsing '" + defVal + "' as a log level");
                  }
               }
               Iterator iter = map.entrySet().iterator();

               Logger defLogger = logManager.getLogger("");
               // Handler[] tmpHandlers = defLogger.getHandlers();
               // Handler[] refHandlers = new Handler[tmpHandlers.length];
               Handler[] refHandlers = defLogger.getHandlers();
View Full Code Here

         // this.description.setAttribute(new ClientProperty(VERSION_ATTR, null, null, version));
        
         if (transformer != null && queryRs != null) {
            Map attr = transformer.transform(queryRs, -1);
            if (attr != null) {
               Iterator iter = attr.entrySet().iterator();
               while (iter.hasNext()) {
                  Map.Entry entry = (Map.Entry)iter.next();
                  ClientProperty prop = new ClientProperty((String)entry.getKey(), null, null, entry.getValue().toString());
                  description.setAttribute(prop);
               }
View Full Code Here

      }

      if (transformer != null) {
         Map attr = transformer.transform(rs, -1);
         if (attr != null) {
            Iterator iter = attr.entrySet().iterator();
            while (iter.hasNext()) {
               Map.Entry entry = (Map.Entry)iter.next();
               ClientProperty prop = new ClientProperty((String)entry.getKey(), null, null, entry.getValue().toString());
               description.setAttribute(prop);
            }
View Full Code Here

               row.setColumn(prop);
            }
            if (transformer != null) {
               Map attr = transformer.transform(rs, count);
               if (attr != null) {
                  Iterator iter = attr.entrySet().iterator();
                  while (iter.hasNext()) {
                     Map.Entry entry = (Map.Entry)iter.next();
                     ClientProperty prop = new ClientProperty((String)entry.getKey(), null, null, entry.getValue().toString());
                     row.setAttribute(prop);
                  }
View Full Code Here

    public static String pluralize(String word)
    {
        if (word == null) return null;

        final Map rules = EnglishInflector.getPluralRules();
        for (Iterator ruleIterator = rules.entrySet().iterator(); ruleIterator.hasNext();)
        {
            final Map.Entry rule = (Map.Entry)ruleIterator.next();
            final String pattern = rule.getKey().toString();
            final String replace = rule.getValue().toString();
            if (word.matches(pattern))
View Full Code Here

    public static String singularize(String word)
    {
        if (word == null) return null;

        final Map rules = EnglishInflector.getSingularRules();
        for (Iterator ruleIterator = rules.entrySet().iterator(); ruleIterator.hasNext();)
        {
            final Map.Entry rule = (Map.Entry)ruleIterator.next();
            final String pattern = rule.getKey().toString();
            final String replace = rule.getValue().toString();
            if (word.matches(pattern))
View Full Code Here

         colsToChange.put(cols[i], newCol);
         log.fine("Renaming '" + cols[i] + "' to '" + newCol + "'");
      }
      if (colsToChange.size() < 1)
         return 0;
      Iterator iter = colsToChange.entrySet().iterator();
      while (iter.hasNext()) {
         Map.Entry entry = (Map.Entry)iter.next();
         row.renameColumn((String)entry.getKey(), (String)entry.getValue());
      }
      return colsToChange.size();
View Full Code Here

         else
            log.warning("Authentication method '" + authMethod + "' not recognized, will switch to 'basic'");
         log.info("Authentication Method is '" + this.authMethod + "'");
         Map users = InfoHelper.getPropertiesStartingWith("replication.monitor.user.", this, null);
         if (users != null && users.size() > 0) {
            Iterator iter = users.entrySet().iterator();
            while (iter.hasNext()) {
               Map.Entry entry = (Map.Entry)iter.next();
               String name = (String)entry.getKey();
               String val = (String)entry.getValue();
               log.fine("name='" + name + "' value='" + val + "'");
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.