Пример #1
0
  /*set the optionset for a given optionset*/
  protected void setOptionSet(OptionSet optset) {
    int i = 0;

    for (i = 0; i < optset.getOption().size(); i++) {
      this.option.get(i).setOptionName1(optset.getOption(i).getOptionName());
      this.option.get(i).setPrice(optset.getOption(i).getPrice());
    }
  }
 public void setOptionChoice(String setName, String optionName) throws AutoException {
   OptionSet opset = this.findOpset(setName);
   this.choice.add(opset.getOption(optionName));
   opset.setOptionChoice(optionName);
 }