01: /*
02: * TigerConfiguration.java
03: */
04:
05: package pnuts.lang;
06:
07: import java.util.Enumeration;
08: import java.util.Iterator;
09: import java.math.BigDecimal;
10:
11: /**
12: *
13: */
14: class TigerConfiguration extends MerlinConfiguration {
15:
16: /**
17: * Constructor
18: */
19: TigerConfiguration() {
20: }
21:
22: TigerConfiguration(Class stopClass) {
23: super (stopClass);
24: }
25:
26: BigDecimal longToBigDecimal(long lval) {
27: return new BigDecimal(lval);
28: }
29:
30: public Enumeration toEnumeration(Object obj) {
31: Enumeration en = super .toEnumeration(obj);
32: if (en == null)
33: if (obj instanceof Iterable) {
34: Iterator itr = ((Iterable) obj).iterator();
35: en = new Java2Configuration.ItrEnum(itr);
36: }
37: return en;
38: }
39: }
|