Package org.apache.velocity.util

Examples of org.apache.velocity.util.EnumerationIterator


            {
                this.iterator = (Iterator)wrapped;
            }
            else if (wrapped instanceof Enumeration)
            {
                this.iterator = new EnumerationIterator((Enumeration)wrapped);
            }
            else
            {
                /* Don't know what is the object.
                 * Should we put it in a one-item array? */
 
View Full Code Here


                          + getLine() + "," + getColumn() + "]"
                          + " in template " + context.getCurrentTemplateName()
                          + ". Because it's not resetable,"
                          + " if used in more than once, this may lead to"
                          + " unexpected results.");
            return new EnumerationIterator( (EnumerationlistObject );      

        case INFO_ARRAY:
            return new ArrayIterator( (Object [] )  listObject );

        case INFO_MAP:         
View Full Code Here

            {
                this.iterator = (Iterator)wrapped;
            }
            else if (wrapped instanceof Enumeration)
            {
                this.iterator = new EnumerationIterator((Enumeration)wrapped);
            }
            else
            {
                /* Don't know what is the object.
                 * Should we put it in a one-item array? */
 
View Full Code Here

        {
            return ((Iterable)obj).iterator();
        }
        else if (obj instanceof Enumeration)
        {
            return new EnumerationIterator((Enumeration) obj);
        }
        else
        {
            // look for an iterator() method to support
            // any user tools/DTOs that want to work in
View Full Code Here

            {
                this.iterator = (Iterator)wrapped;
            }
            else if (wrapped instanceof Enumeration)
            {
                this.iterator = new EnumerationIterator((Enumeration)wrapped);
            }
            else
            {
                /* Don't know what is the object.
                 * Should we put it in a one-item array? */
 
View Full Code Here

            {
                this.iterator = (Iterator)wrapped;
            }
            else if (wrapped instanceof Enumeration)
            {
                this.iterator = new EnumerationIterator((Enumeration)wrapped);
            }
            else
            {
                /* Don't know what is the object.
                 * Should we put it in a one-item array? */
 
View Full Code Here

        {
            return ((Iterable)obj).iterator();
        }
        else if (obj instanceof Enumeration)
        {
            return new EnumerationIterator((Enumeration) obj);
        }
        else
        {
            // look for an iterator() method to support
            // any user tools/DTOs that want to work in
View Full Code Here

                          + getLine() + "," + getColumn() + "]"
                          + " in template " + context.getCurrentTemplateName()
                          + ". Because it's not resetable,"
                          + " if used in more than once, this may lead to"
                          + " unexpected results.");
            return new EnumerationIterator( (EnumerationlistObject );      

        case INFO_ARRAY:
            return new ArrayIterator( (Object [] )  listObject );

        case INFO_MAP:         
View Full Code Here

                log.debug("The iterative object in the #foreach() loop at " +
                           i + " is of type java.util.Enumeration.  Because " +
                           "it is not resettable, if used in more than once it " +
                           "may lead to unexpected results.");
            }
            return new EnumerationIterator((Enumeration) obj);
        }
        else
        {
            // look for an iterator() method to support the JDK5 Iterable
            // interface or any user tools/DTOs that want to work in
View Full Code Here

                log.debug("The iterative object in the #foreach() loop at " +
                           i + " is of type java.util.Enumeration.  Because " +
                           "it is not resettable, if used in more than once it " +
                           "may lead to unexpected results.");
            }
            return new EnumerationIterator((Enumeration) obj);
        }
        else
        {
            // look for an iterator() method to support the JDK5 Iterable
            // interface or any user tools/DTOs that want to work in
View Full Code Here

TOP

Related Classes of org.apache.velocity.util.EnumerationIterator

Copyright © 2018 www.massapicom. 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.