View Javadoc

1   package net.sourceforge.jparam.paramset;
2   
3   import net.sourceforge.jparam.JParamException;
4   
5   /***
6    * Represents a single input/output parameter in a ParamSet
7    */
8   
9   public class ioParam extends Param {
10  
11  	/***
12  	 * Creates an input/output parameter with given attributes. Set defaultValue
13  	 * to null to indicate there's no default value.
14  	 */
15  	public ioParam(String name_description, Object defaultValue, Class typeBound)
16  			throws JParamException {
17  		super(name_description, true, true, defaultValue, typeBound);
18  	}
19  
20  	public ioParam(String name_description, Class typeBound)
21  			throws JParamException {
22  		this(name_description, null, typeBound);
23  	}
24  
25  	/***
26  	 * Same as other constructor, but has no staticBound (bounded by Object).
27  	 */
28  	public ioParam(String name_description, Object defaultValue)
29  			throws JParamException {
30  		this(name_description, defaultValue, null);
31  	}
32  
33  	/***
34  	 * Same as other constructors, but has default, or staticBound (bounded by
35  	 * Object).
36  	 */
37  	public ioParam(String name_description) throws JParamException {
38  		this(name_description, null, null);
39  	}
40  }
41