1 package net.sourceforge.jparam.paramset; 2 3 import net.sourceforge.jparam.JParamException; 4 5 /*** 6 * Represents a single output parameter in a ParamSet 7 */ 8 9 public class oParam extends Param { 10 11 /*** 12 * Creates an output parameter with given attributes. Set defaultValue to 13 * null to indicate there's no default value. 14 */ 15 public oParam(String name_description, Object defaultValue, Class typeBound) 16 throws JParamException { 17 super(name_description, false, true, defaultValue, typeBound); 18 } 19 20 public oParam(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 oParam(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 oParam(String name_description) throws JParamException { 38 this(name_description, null, null); 39 } 40 41 } 42