Package org.exolab.castor.util

Examples of org.exolab.castor.util.IteratorEnumeration


            /**
             * {@inheritDoc}
             */
            public Object getValue(final Object object) throws IllegalStateException {
                List list = (java.util.List) object;
                return new IteratorEnumeration(list.iterator());
            }

            /**
             * {@inheritDoc}
             */
 
View Full Code Here


            } else if (_enumMethod != null) {
                // If there is an enumeration method supplied, return the enumeration.
                value = _enumMethod.invoke(object, (Object[]) null);
            } else if (_iterMethod != null ) {
                // If there is an iterator method supplied, wrap it in an enumeration.
                value = new IteratorEnumeration((Iterator) _iterMethod.invoke(object, (Object[]) null));
            } else if (_getMethod != null) {
                if (_getSequence != null) {
                    for (int i = 0; i < _getSequence.length; i++) {
                        object = _getSequence[i].invoke(object, (Object[]) null);
                        if (object == null) {
View Full Code Here

TOP

Related Classes of org.exolab.castor.util.IteratorEnumeration

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.