// Path: framework/src/com/ibm/datapower/er/Analytics/MappedCondition.java
// public enum MAPPED_TABLE_POSITION {
// 	NO_SET(-2),
// 	AUTO_SET(-1);
// 		
// 	private final int type;
//     private MAPPED_TABLE_POSITION(int type) {
//         this.type = type;
//     }
// 
//     public int getType() {
//         return type;
//     }
// }


import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import com.ibm.datapower.er.Analytics.MappedCondition.MAPPED_TABLE_POSITION;
	public void appendURI(String attrib) {
		if (uriArguments.length() > 0)
			uriArguments += "&";
		uriArguments += attrib;
	};

	public String getURIAttributes() {
		return uriArguments;
	}

	public void setPopupFileName(String popup) {
		mPopupFileName = popup;
	}

	public String getPopupFileName() {
		return mPopupFileName;
	}

	public void addCondition(String condName, String value, int forcePosition) {
		// instead of bothering to check if it exists, just remove if its there
		// or not
		// we overwrite entries instead of adding the same name
		synchronized(mMappedConditions) {
			mMappedConditions.remove(condName);
		}
		
		// -1 = passed as 'set me'
		// -2 = passed as 'dont use me for pipe tables in AnalyticsResults'
		
		int posToSet = forcePosition;
// Path: framework/src/com/ibm/datapower/er/Analytics/MappedCondition.java
// public enum MAPPED_TABLE_POSITION {
// 	NO_SET(-2),
// 	AUTO_SET(-1);
// 		
// 	private final int type;
//     private MAPPED_TABLE_POSITION(int type) {
//         this.type = type;
//     }
// 
//     public int getType() {
//         return type;
//     }
// }


// Path: framework/src/com/ibm/datapower/er/Analytics/ConditionsNode.java
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import com.ibm.datapower.er.Analytics.MappedCondition.MAPPED_TABLE_POSITION;

	public void appendURI(String attrib) {
		if (uriArguments.length() > 0)
			uriArguments += "&";
		uriArguments += attrib;
	};

	public String getURIAttributes() {
		return uriArguments;
	}

	public void setPopupFileName(String popup) {
		mPopupFileName = popup;
	}

	public String getPopupFileName() {
		return mPopupFileName;
	}

	public void addCondition(String condName, String value, int forcePosition) {
		// instead of bothering to check if it exists, just remove if its there
		// or not
		// we overwrite entries instead of adding the same name
		synchronized(mMappedConditions) {
			mMappedConditions.remove(condName);
		}
		
		// -1 = passed as 'set me'
		// -2 = passed as 'dont use me for pipe tables in AnalyticsResults'
		
		int posToSet = forcePosition;
		if ( posToSet == MAPPED_TABLE_POSITION.AUTO_SET.getType() )