Hello,

I'm new to the list, but I've been using Axis for quite awhile.

The following is relates to the classes generated by wsdl2java for enumerated types specified in WSDL. My problem is that there is no convenient way to iterate over all of the values in the type at runtime.

The generated source code presently stores the values for the enumerated type in a private HashMap, called '_table_'.

Because enum classes represent an immutable set of values, it does not make sense to implement the whole java.util.Collection interface -- BUT I would like access to the number of values in the enum via a size() method, and to an iterator created by an iterator() method which returns the values in the enum.

The iterator() method on the generated class would simply return _table_.iterator() and the size() method would simply return _table_.size().

Does this sound like a worthwhile addition? If so, where should I log the request and who would I submit the patch to?

--

Jason A. Guild
Analyst / Programmer IV
State of Alaska Dept. Of Natural Resources
Division of Support Services
Land Records Information Section
550 W. 7th Ave. Suite 706
Anchorage, AK 99501
(907) 269-8695
[EMAIL PROTECTED]

Reply via email to