package com.c2kernel.utils; import java.util.HashMap; import java.util.Iterator; // This subclass of hashtable can be marshalled // and unmarshalled with Castor public class CastorHashMap extends HashMap { public CastorHashMap() { clear(); } public KeyValuePair[] getKeyValuePairs() { int numKeys = size(); KeyValuePair[] keyValuePairs = new KeyValuePair[numKeys]; Iterator keyIter = keySet().iterator(); int i = 0; for(i=0; i