| 1 |
|
package jalview.ws.params.simple; |
| 2 |
|
|
| 3 |
|
import jalview.ws.params.ParameterI; |
| 4 |
|
import jalview.ws.params.ValueConstrainI; |
| 5 |
|
|
| 6 |
|
import java.util.List; |
| 7 |
|
|
| |
|
| 19% |
Uncovered Elements: 17 (21) |
Complexity: 8 |
Complexity Density: 0.62 |
|
| 8 |
|
public class StringParameter extends Option implements ParameterI |
| 9 |
|
{ |
| |
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 1 |
|
| 10 |
|
public static class Builder extends Option.Builder |
| 11 |
|
{ |
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 12 |
2584 |
@Override... |
| 13 |
|
public StringParameter build() |
| 14 |
|
{ |
| 15 |
2584 |
return new StringParameter(this); |
| 16 |
|
} |
| 17 |
|
} |
| 18 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 19 |
0 |
@Override... |
| 20 |
|
public ValueConstrainI getValidValue() |
| 21 |
|
{ |
| 22 |
0 |
return new StringValueConstrain(); |
| 23 |
|
} |
| 24 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 25 |
0 |
@Override... |
| 26 |
|
public ParameterI copy() |
| 27 |
|
{ |
| 28 |
0 |
return new StringParameter(this); |
| 29 |
|
} |
| 30 |
|
|
| |
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 3 |
Complexity Density: 1 |
|
| 31 |
|
private class StringValueConstrain implements ValueConstrainI |
| 32 |
|
{ |
| 33 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 34 |
0 |
@Override... |
| 35 |
|
public ValueType getType() |
| 36 |
|
{ |
| 37 |
0 |
return ValueType.String; |
| 38 |
|
} |
| 39 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 40 |
0 |
@Override... |
| 41 |
|
public Number getMax() |
| 42 |
|
{ |
| 43 |
0 |
return null; |
| 44 |
|
} |
| 45 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 46 |
0 |
@Override... |
| 47 |
|
public Number getMin() |
| 48 |
|
{ |
| 49 |
0 |
return null; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
} |
| 53 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 54 |
2584 |
public static Builder newBuilder()... |
| 55 |
|
{ |
| 56 |
2584 |
return new Builder(); |
| 57 |
|
} |
| 58 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
2584 |
protected StringParameter(Builder builder)... |
| 60 |
|
{ |
| 61 |
2584 |
super(builder); |
| 62 |
|
} |
| 63 |
|
|
| |
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 64 |
0 |
public StringParameter(StringParameter parm)... |
| 65 |
|
{ |
| 66 |
0 |
this.name = parm.name; |
| 67 |
0 |
this.defvalue = parm.defvalue; |
| 68 |
0 |
this.possibleVals = parm.possibleVals; |
| 69 |
0 |
this.displayVals = parm.displayVals; |
| 70 |
|
} |
| 71 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 72 |
0 |
public StringParameter(String name, String description, boolean required,... |
| 73 |
|
String defValue) |
| 74 |
|
{ |
| 75 |
0 |
super(name, description, required, String.valueOf(defValue), null, null, |
| 76 |
|
null); |
| 77 |
0 |
this.defvalue = defValue; |
| 78 |
|
} |
| 79 |
|
|
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 80 |
0 |
public StringParameter(String name, String description, boolean required,... |
| 81 |
|
String defValue, String value) |
| 82 |
|
{ |
| 83 |
0 |
super(name, description, required, String.valueOf(defValue), |
| 84 |
|
String.valueOf(value), null, null); |
| 85 |
0 |
this.defvalue = defValue; |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
|
| 89 |
|
|
| 90 |
|
|
| 91 |
|
|
| 92 |
|
@param |
| 93 |
|
@param |
| 94 |
|
@param |
| 95 |
|
@param |
| 96 |
|
@param |
| 97 |
|
@param |
| 98 |
|
@param |
| 99 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 100 |
0 |
public StringParameter(String name2, String description2,... |
| 101 |
|
boolean isrequired, String defValue, String value, |
| 102 |
|
List<String> possibleVals, List<String> displayNames) |
| 103 |
|
{ |
| 104 |
0 |
super(name2, description2, isrequired, defValue, value, possibleVals, |
| 105 |
|
displayNames, null); |
| 106 |
|
} |
| 107 |
|
} |