package innovimax.mixthem;

/**
* <p>Rule additional parameters management.</p>
* @author Innovimax
* @version 1.0
*/
public class RuleParam {

	private String name;	
	private boolean required;

	/**
 	* Creates a rule parameter.
 	* @param name The name of the parameter
 	* @param required Equals true if this parameter is required
 	*/
	public RuleParam(String name, boolean required) {
		this.name = name;
		this.required = required;
	}

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

	/**
 	* Returns true if this parameter is required.
 	* @return Returns true if this parameter is required
 	*/
	public boolean isRequired() {
		return this.required;
	}

	// This is the unique optional parameter of rule _RANDOM_ALT_LINE
	public static RuleParam RANDOM_ALT_LINE_SEED = new RuleParam("seed", false);
	// This is the first optional parameter of rule _JOIN
	public static RuleParam JOIN_COL1 = new RuleParam("col1", false);
	// This is the second optional parameter of rule _JOIN
	public static RuleParam JOIN_COL2 = new RuleParam("col2", false);

}

@@ -146,16 +146,22 @@
 private 
+final 
 String n
@@ -175,16 +175,22 @@
 private 
+final 
 boolean 
@@ -345,23 +345,16 @@
 d%0A %09*/%0A%09
-public 
 RulePara
@@ -536,23 +536,16 @@
 r%0A%09*/%09%0A%09
-public 
 String g
@@ -693,23 +693,16 @@
 d%0A %09*/%0A%09
-public 
 boolean 
@@ -812,23 +812,16 @@
 T_LINE%0A%09
-public 
 static R
@@ -930,39 +930,32 @@
  of rule _JOIN%0A%09
-public 
 static RuleParam
@@ -1054,23 +1054,16 @@
  _JOIN%0A%09
-public 
 static R

Update RuleParam.java