List of usage examples for org.apache.commons.collections.iterators IteratorEnumeration IteratorEnumeration
public IteratorEnumeration()
IteratorEnumeration
that will not function until #setIterator(Iterator) setIterator is invoked. From source file:org.apache.cocoon.components.flow.WebContinuation.java
/** * Enumerate the attributes of this continuation. * /*from w ww . j av a 2 s . c o m*/ * @return an enumeration of strings */ public Enumeration getAttributeNames() { if (this.attributes == null) return new IteratorEnumeration(); ArrayList keys = new ArrayList(this.attributes.keySet()); return new IteratorEnumeration(keys.iterator()); }