
package influent.server.configuration;

import java.util.HashMap;
import java.util.Map;

public class DataTableProperty {
	String _key;
	Map<String, String> _memberKeyMap = new HashMap<String, String>();



	String getKey() {
		return _key;
	}




	void setKey(String key) {
		_key = key;
	}




	void setMemberKey(String memberKey) {
		setMemberKey(null, memberKey);
	}




	void setMemberKey(String type, String memberKey) {
		_memberKeyMap.put(type, memberKey);
	}




	String getMemberKey() {
		return getMemberKey(null);
	}




	String getMemberKey(String type) {

		if (_memberKeyMap.keySet().size() == 1 && _memberKeyMap.containsKey(null)) {
			return _memberKeyMap.get(null);
		}

		return _memberKeyMap.get(type);
	}
}