package jalview.ws.slivkaws;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
import jalview.ws.params.ArgumentI;
import jalview.ws.params.WsParamSetI;
import jalview.ws.params.simple.BooleanOption;
import jalview.ws.params.simple.DoubleParameter;
import jalview.ws.params.simple.IntegerParameter;
import jalview.ws.params.simple.StringParameter;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
import uk.ac.dundee.compbio.slivkaclient.Parameter;
import uk.ac.dundee.compbio.slivkaclient.SlivkaService;
this.service = service;
for (Parameter param : service.getParameters())
{
- Object defaultValue = param.getDefault() instanceof List ? ((List<?>) param.getDefault()).get(0)
+ Object defaultValue = param.getDefault() instanceof List
+ ? ((List<?>) param.getDefault()).get(0)
: param.getDefault();
if (param instanceof Parameter.FlagParameter)
{
{
Integer min = ((Parameter.IntegerParameter) param).getMin();
Integer max = ((Parameter.IntegerParameter) param).getMax();
- Integer defVal = defaultValue != null ? ((Number) defaultValue).intValue() : null;
+ Integer defVal = defaultValue != null
+ ? ((Number) defaultValue).intValue()
+ : null;
args.add(new IntegerParameter(param.getId(), param.getDescription(),
param.isRequired(), defVal, (min == null) ? Integer.MIN_VALUE : min,
(max == null) ? Integer.MAX_VALUE : max));
{
Double min = ((Parameter.DecimalParameter) param).getMin();
Double max = ((Parameter.DecimalParameter) param).getMax();
- Double defVal = defaultValue != null ? ((Number) defaultValue).doubleValue() : null;
+ Double defVal = defaultValue != null
+ ? ((Number) defaultValue).doubleValue()
+ : null;
args.add(new DoubleParameter(param.getId(), param.getDescription(),
param.isRequired(), defVal, (min == null) ? -Double.MAX_VALUE : min,
(max == null) ? Double.MAX_VALUE : max));
@Override
public String getDescription()
{
- return "";
+ return service.getDescription();
}
@Override