Examples of EnumerationIterator


Examples of org.apache.commons.collections.iterators.EnumerationIterator

    public String getId() {
        return httpSession.getId();
    }

    public Iterator getAttributeNames() {
        return new EnumerationIterator(httpSession.getAttributeNames());
    }
View Full Code Here

Examples of org.apache.commons.collections.iterators.EnumerationIterator

    @SuppressWarnings("unchecked")
    public List<Locale> getLocales(final boolean allowMixLanguages)
            throws JahiaException {

        return getLocales(allowMixLanguages,
                getRequest() != null ? new EnumerationIterator(getRequest().getLocales()) : null);
    }
View Full Code Here

Examples of org.apache.commons.collections.iterators.EnumerationIterator

        getRequest().removeAttribute(attributeName);
    }

    @SuppressWarnings("unchecked")
    public Iterator<String> getAttributeNames() {
        return new EnumerationIterator(getRequest().getAttributeNames());
    }
View Full Code Here

Examples of org.apache.commons.collections.iterators.EnumerationIterator

        //userProperties.put("firstname", StringUtils.defaultString(request.getParameter("firstname")));
        //userProperties.put("lastname", StringUtils.defaultString(request.getParameter("lastname")));
        //userProperties.put("email", StringUtils.defaultString(request.getParameter("email")));
        //userProperties.put("organization", StringUtils.defaultString(request.getParameter("organization")));
        Iterator names = new EnumerationIterator(request.getParameterNames ());
        while (names.hasNext()) {
            String name = (String) names.next();
            if (name != null && name.startsWith(USER_PROPERTY_PREFIX)) {
                String newValue = request.getParameter(name);
                int index = name.indexOf(SEPARATOR);
                String key = name.substring(index + 1);
                String currentValue = userProperties.get(key);
View Full Code Here

Examples of org.apache.commons.collections.iterators.EnumerationIterator

                return false;
            }
        }
        Properties userProps = new Properties();

        Iterator names = new EnumerationIterator(request.getParameterNames());
        while (names.hasNext()) {
            String name = (String) names.next();
            if (name != null && name.startsWith(USER_PROPERTY_PREFIX)) {
                String newValue = request.getParameter(name);
                int index = name.indexOf(SEPARATOR);
                String key = name.substring(index + 1);
                String currentValue = (String) userProps.get(key);
View Full Code Here

Examples of org.apache.commons.collections15.iterators.EnumerationIterator

      if (object == null)
         return EmptyIterator.getInstance();
      else if (object instanceof Iterator)
         return (Iterator) object;
      else if (object instanceof Enumeration)
         return new EnumerationIterator( (Enumeration) object);
      else if (object instanceof Collection)
         return ((Collection)object).iterator();
      else if (object.getClass().isArray())
         return new ArrayIterator(object);
      else
View Full Code Here

Examples of org.apache.commons.jexl.util.EnumerationIterator

        } else if (obj instanceof Enumeration) {
            rlog.warn("Warning! The iterative " + " is an Enumeration in the #foreach() loop at [" + i.getLine() + ","
                + i.getColumn() + "]" + " in template " + i.getTemplateName() + ". Because it's not resetable,"
                + " if used in more than once, this may lead to" + " unexpected results.");

            return new EnumerationIterator((Enumeration) obj);
        }

        /* we have no clue what this is */
        rlog.warn("Could not determine type of iterator in " + "#foreach loop " + " at [" + i.getLine() + ","
            + i.getColumn() + "]" + " in template " + i.getTemplateName());
View Full Code Here

Examples of org.apache.flex.forks.velocity.util.EnumerationIterator

                          + " in template " + i.getTemplateName()
                          + ". Because it's not resetable,"
                          + " if used in more than once, this may lead to"
                          + " unexpected results.");

            return new EnumerationIterator((Enumeration) obj);
        }

        /*  we have no clue what this is  */
        rlog.warn ("Could not determine type of iterator in "
                      "#foreach loop "
View Full Code Here

Examples of org.apache.myfaces.util.EnumerationIterator

    @Override
    @SuppressWarnings("unchecked")
    public Iterator<String> getRequestParameterNames()
    {
        return new EnumerationIterator(_servletRequest.getParameterNames());
    }
View Full Code Here

Examples of org.apache.myfaces.util.EnumerationIterator

    @Override
    @SuppressWarnings("unchecked")
    public Iterator<Locale> getRequestLocales()
    {
        checkHttpServletRequest();
        return new EnumerationIterator(_httpServletRequest.getLocales());
    }
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.