01: package org.incava.qualog;
02:
03: import java.util.*;
04:
05: /**
06: * Wraps Enumerations for output.
07: */
08: public class QlEnumeration {
09: public static boolean stack(QlLevel level, ANSIColor[] msgColors,
10: String name, Enumeration en, ANSIColor fileColor,
11: ANSIColor classColor, ANSIColor methodColor, int numFrames) {
12: Collection ary = new ArrayList();
13: while (en.hasMoreElements()) {
14: ary.add(en.nextElement());
15: }
16:
17: return QlCollection.stack(level, msgColors, name, ary,
18: fileColor, classColor, methodColor, numFrames);
19: }
20: }
|