

/**
 * $Id: Collections.js,v 1.1.2.2 2008/06/30 15:55:15 tsauer Exp $
 */
 
function Map(){
	
	this.arrData = new Array();
	
	/** set a data by param */
	this.put = function (sParam, sValue) {
        this.arrData[sParam] = sValue;
	}
	
	/** get data over the param */
	this.get = function (sParam) {
		return this.arrData[sParam];
	}
	
	/** get the data array */
	this.getArray = function () {
		return this.arrData;
	}
	
	/** get all keys */
	this.keySet = function () {
		arrDataNames = new Array();
		for (i in this.arrData) {
			if (this.arrData.hasOwnProperty(i))
                arrDataNames[arrDataNames.length] = i;
		}
		return arrDataNames;
	}
	
	/** get all values */
	this.entrySet = function () {
        arrDataValue = new Array();
        for (i in this.arrData) {
            if (this.arrData.hasOwnProperty(i))
                arrDataValue[arrDataValue.length] = this.arrData[i];
        }
		return arrDataValue;
	}
	
	this.hasValue = function (sParam) {
		return this.arrData[sParam]!=null;
	}
	
}



