lInput.setValue("Mascot generic");
} else if (lInput.getName().equals("REPORT")) {
// set REPORT to AUTO (the first entry)
lInput.setValue(((SelectInput) lInput).getElements()[0]);
} else {
SelectInput input = (SelectInput) lInput;
String[] elements = ((SelectInput) lInput).getElements();
if (input.getMultiple()) {
UserParameter p = new MultiChoiceParameter<String>(
lInput.getComment(), lInput.getName(), elements);
para.add(p);
} else {
UserParameter p = new ComboParameter<String>(
lInput.getComment(), lInput.getName(), elements);
para.add(p);
}
}
}
// Checkbox
if (lInput.getType() == InputInterface.CHECKBOX) {
if (lInput.getName().equals("OVERVIEW")) {
lInput.setValue("0");
} else
para.add(new BooleanParameter(lInput.getComment(), lInput
.getName()));
}
// Radio
if (lInput.getType() == InputInterface.RADIOINPUT) {
RadioInput input = (RadioInput) lInput;
String[] elements = input.getChoices();
para.add(new ComboParameter<String>(lInput.getComment(), lInput
.getName(), elements));
}