package innovimax.mixthem.arguments;

/**
* <p>This is a detailed enumeration of additional rule parameters.</p>
* @author Innovimax
* @version 1.0
*/
public enum RuleParam { 
	_RANDOM_SEED("seed", ParamType._INTEGER),
	_JOIN_COL1("col1", ParamType._INTEGER),
	_JOIN_COL2("col2", ParamType._INTEGER),
	_ZIP_SEP("sep", ParamType._STRING);

	private final String name;
	private final ParamType type;

	private RuleParam(String name, ParamType type) {
		this.name = name;
		this.type = type;
	}

	/**
	* Returns the alias name of this parameter.
	* @return The alias name of this parameter
	*/
	public String getName() {
		return this.name;
	}

	/**
 	* Returns the {@link ParamValue} representation of the parameter value.
 	* @param value The value of the parameter on command line
 	* @return The {@link ParamValue} representation of the parameter value
 	*/
	ParamValue createValue(String value) throws NumberFormatException {
		ParamValue pv = null;
		switch (this.type) {
			case _INTEGER:				
            			pv = ParamValue.createInt(Integer.parseInt(value));
            			break;
            		default:
            			pv = ParamValue.createString(value);
		}
		return pv;
	}

}

@@ -170,17 +170,16 @@
 ram %7B %0A%09
-_
 RANDOM_S
@@ -204,33 +204,32 @@
 ype._INTEGER),%0A%09
-_
 JOIN_COL1(%22col1%22
@@ -252,17 +252,16 @@
 EGER),%0A%09
-_
 JOIN_COL
@@ -292,17 +292,16 @@
 EGER),%0A%09
-_
 ZIP_SEP(

Update RuleParam.java