/** The copy constructor */ public OptionDef(OptionDef optionDef) { setText(optionDef.getText()); setBinding(optionDef.getBinding()); setItextId(optionDef.getItextId()); setDefaultValue(optionDef.getDefaultValue()); }
/** The copy constructor */ public OptionDef(OptionDef optionDef, QuestionDef parent) { this(parent); setText(optionDef.getText()); setBinding(optionDef.getBinding()); setItextId(optionDef.getItextId()); setDefaultValue(optionDef.getDefaultValue()); // setParent(parent /*optionDef.getParent()*/); }
/** * Constructs a new option answer definition object from the following parameters. * * @param id * @param text * @param variableName */ public OptionDef(String text, String variableName, String val, QuestionDef parent) { this(parent); setText(text); setBinding(variableName); setDefaultValue(val); }