if (type == null) {
continue;
}
switch (type) {
case Integer: {
IntParameterBounds bounds =
(IntParameterBounds) paramBounds.get(parameter);
bounds.setLowerBound(Integer.parseInt(lowerBoundFields.get(parameter)
.getText()));
bounds.setUpperBound(Integer.parseInt(upperBoundFields.get(parameter)
.getText()));
}
break;
case Double: {
DoubleParameterBounds bounds =
(DoubleParameterBounds) paramBounds.get(parameter);
bounds.setLowerBound(Double.parseDouble(lowerBoundFields.get(parameter)
.getText()));
bounds.setUpperBound(Double.parseDouble(upperBoundFields.get(parameter)
.getText()));
}
break;
default:
throw new IllegalArgumentException(