| 1 |
|
package jalview.ws.api; |
| 2 |
|
|
| 3 |
|
import java.util.Date; |
| 4 |
|
|
| |
|
| 0% |
Uncovered Elements: 20 (20) |
Complexity: 8 |
Complexity Density: 0.73 |
|
| 5 |
|
public class JobId |
| 6 |
|
{ |
| 7 |
|
|
| 8 |
|
|
| 9 |
|
private String serviceType; |
| 10 |
|
|
| 11 |
|
private String serviceImpl; |
| 12 |
|
|
| 13 |
|
private String jobId; |
| 14 |
|
|
| 15 |
|
private String creationTime=null; |
| 16 |
|
|
| |
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
| 17 |
0 |
public JobId(String serviceType, String serviceImpl, String id)... |
| 18 |
|
{ |
| 19 |
0 |
this.serviceType = serviceType; |
| 20 |
0 |
this.serviceImpl = serviceImpl; |
| 21 |
0 |
jobId = id; |
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
{ |
| 26 |
|
|
| 27 |
|
} |
| 28 |
0 |
if (creationTime==null) |
| 29 |
|
{ |
| 30 |
0 |
creationTime = new Date().toString(); |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 34 |
0 |
@Override... |
| 35 |
|
public String toString() |
| 36 |
|
{ |
| 37 |
0 |
return "" + serviceType + ":" + serviceImpl + ":" + jobId + "\nCreated " |
| 38 |
|
+ creationTime; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 43 |
0 |
public String getURI()... |
| 44 |
|
{ |
| 45 |
0 |
return jobId; |
| 46 |
|
} |
| 47 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 48 |
0 |
public String getServiceType()... |
| 49 |
|
{ |
| 50 |
0 |
return serviceType; |
| 51 |
|
} |
| 52 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
0 |
public String getServiceImpl()... |
| 54 |
|
{ |
| 55 |
0 |
return serviceImpl; |
| 56 |
|
} |
| 57 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 58 |
0 |
public String getJobId()... |
| 59 |
|
{ |
| 60 |
0 |
return jobId; |
| 61 |
|
} |
| 62 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 63 |
0 |
public String getCreationTime()... |
| 64 |
|
{ |
| 65 |
0 |
return creationTime; |
| 66 |
|
} |
| 67 |
|
} |