Examples of EnumerationIterator


Examples of com.alibaba.toolkit.util.collection.EnumerationIterator

        Iterator iterator = null;

        if (value instanceof Iterator) {
            iterator = (Iterator) value;
        } else if (value instanceof Enumeration) {
            iterator = new EnumerationIterator((Enumeration) value);
        }

        if (iterator != null) {
            List           convertedValueList = new ArrayList();
            ConvertManager manager = chain.getConvertManager();
View Full Code Here

Examples of com.sun.appserv.management.util.misc.EnumerationIterator

    A null pattern matches anything.
   */
    boolean
  match( Hashtable properties, Pattern propertyPattern, Pattern valuePattern )
  {
    final Iterator  keys  = new EnumerationIterator( properties.keys() );
    boolean  matches  = false;
   
    while ( keys.hasNext() )
    {
      final String  key  = (String)keys.next();
     
      if ( propertyPattern == null || propertyPattern.matcher( key ).matches() )
      {
        if ( valuePattern == null )
        {
View Full Code Here

Examples of com.sun.cli.util.EnumerationIterator

    A null pattern matches anything.
   */
    boolean
  match( Hashtable properties, Pattern propertyPattern, Pattern valuePattern )
  {
    final Iterator  keys  = new EnumerationIterator( properties.keys() );
    boolean  matches  = false;
   
    while ( keys.hasNext() )
    {
      final String  key  = (String)keys.next();
     
      if ( propertyPattern == null || propertyPattern.matcher( key ).matches() )
      {
        if ( valuePattern == null )
        {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.EnumerationIterator

      // Bug 2942351 (Program doesn't launch)
      // looking at the source for StdXMLBuilder, it appears that parser.parse() could possibly return
      // null.  So check for null here and skip if necessary.
      if (element != null)
      {
        Iterator it = new EnumerationIterator(element.enumerateChildren());
        while (it.hasNext())
        {
          final IXMLElement elem = (IXMLElement) it.next();
          if (isBeanElement(elem))
          {
            _beanColl.add(loadBean(elem));
          }
        }
View Full Code Here

Examples of org.apache.beehive.netui.util.iterator.EnumerationIterator

        return prev;
    }

    protected Iterator getKeys() {
        return new EnumerationIterator(_session.getAttributeNames());
    }
View Full Code Here

Examples of org.apache.commons.collections.EnumerationIterator

        }
        else if ( value.getClass().isArray() ) {
            return new ArrayIterator( value );
        }
        else if ( value instanceof Enumeration ) {
            return new EnumerationIterator((Enumeration ) value);
        }
        else if ( value instanceof Collection ) {
          Collection collection = (Collection) value;
          return collection.iterator();
        }
View Full Code Here

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

        return value;
    }

    public Iterator getKeys()
    {
        return new EnumerationIterator(config.getInitParameterNames());
    }
View Full Code Here

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

            Map map = (Map) value;
            return map.entrySet().iterator();
           
        } else if ( value instanceof Enumeration ) {
            // if it's an enumeration, wrap it in an EnumerationIterator
            return new EnumerationIterator( (Enumeration) value );
           
        } else if ( value != null ) {
            // if we have an array return an ArrayIterator
            Class type = value.getClass();
            if ( type.isArray() ) {
View Full Code Here

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

        }
    }

    public Iterator getKeys()
    {
        return new EnumerationIterator(request.getParameterNames());
    }
View Full Code Here

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

        return value;
    }

    public Iterator getKeys()
    {
        return new EnumerationIterator(config.getInitParameterNames());
    }
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.