1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.contract.model.impl; |
17 |
|
|
18 |
|
import java.util.List; |
19 |
|
|
20 |
|
import org.kuali.student.contract.model.MessageStructure; |
21 |
|
import org.kuali.student.contract.model.Service; |
22 |
|
import org.kuali.student.contract.model.ServiceContractModel; |
23 |
|
import org.kuali.student.contract.model.ServiceMethod; |
24 |
|
import org.kuali.student.contract.model.XmlType; |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
@author |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 28 (28) |
Complexity: 10 |
Complexity Density: 0.71 |
|
31 |
|
public class ServiceContractModelCache implements ServiceContractModel { |
32 |
|
|
33 |
|
private ServiceContractModel model; |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
35 |
0
|
public ServiceContractModelCache(ServiceContractModel model) {... |
36 |
0
|
this.model = model; |
37 |
|
} |
38 |
|
private List<ServiceMethod> serviceMethods = null; |
39 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
40 |
0
|
@Override... |
41 |
|
public List<ServiceMethod> getServiceMethods() { |
42 |
0
|
if (serviceMethods == null) { |
43 |
0
|
serviceMethods = model.getServiceMethods(); |
44 |
|
} |
45 |
0
|
return serviceMethods; |
46 |
|
} |
47 |
|
private List<XmlType> xmlTypes; |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
49 |
0
|
@Override... |
50 |
|
public List<XmlType> getXmlTypes() { |
51 |
0
|
if (xmlTypes == null) { |
52 |
0
|
xmlTypes = model.getXmlTypes(); |
53 |
|
} |
54 |
0
|
return xmlTypes; |
55 |
|
} |
56 |
|
private List<MessageStructure> messageStructures = null; |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
58 |
0
|
@Override... |
59 |
|
public List<MessageStructure> getMessageStructures() { |
60 |
0
|
if (messageStructures == null) { |
61 |
0
|
messageStructures = model.getMessageStructures(); |
62 |
|
} |
63 |
0
|
return messageStructures; |
64 |
|
} |
65 |
|
private List<Service> services = null; |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
67 |
0
|
@Override... |
68 |
|
public List<Service> getServices() { |
69 |
0
|
if (services == null) { |
70 |
0
|
services = model.getServices(); |
71 |
|
} |
72 |
0
|
return services; |
73 |
|
} |
74 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
0
|
@Override... |
76 |
|
public List<String> getSourceNames() { |
77 |
0
|
return model.getSourceNames(); |
78 |
|
} |
79 |
|
} |