1 |
|
package org.kuali.rice.krms.impl.repository |
2 |
|
|
3 |
|
|
4 |
|
import org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
5 |
|
|
6 |
|
import org.kuali.rice.krms.api.repository.Proposition |
7 |
|
import org.kuali.rice.krms.api.repository.PropositionContract |
8 |
|
|
9 |
|
|
|
|
| 0% |
Uncovered Elements: 24 (24) |
Complexity: 6 |
Complexity Density: 0.33 |
|
10 |
|
public class PropositionBo extends PersistableBusinessObjectBase implements PropositionContract { |
11 |
|
|
12 |
|
def String propId |
13 |
|
def String description |
14 |
|
def String typeId |
15 |
|
def String propositionTypeCode |
16 |
|
|
17 |
|
def List<PropositionParameterBo> parameters |
18 |
|
|
19 |
|
|
20 |
|
def String compoundOpCode |
21 |
|
def List<PropositionBo> compoundComponents |
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
@param |
26 |
|
@return |
27 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
28 |
0
|
static Proposition to(PropositionBo bo) {... |
29 |
0
|
if (bo == null) { return null } |
30 |
0
|
return org.kuali.rice.krms.api.repository.Proposition.Builder.create(bo).build() |
31 |
|
} |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
@param |
36 |
|
@return |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 3 |
Complexity Density: 0.2 |
|
38 |
0
|
static PropositionBo from(Proposition im) {... |
39 |
0
|
if (im == null) { return null } |
40 |
|
|
41 |
0
|
PropositionBo bo = new PropositionBo() |
42 |
0
|
bo.propId = im.propId |
43 |
0
|
bo.description = im.description |
44 |
0
|
bo.typeId = im.typeId |
45 |
0
|
bo.propositionTypeCode = im.propositionTypeCode |
46 |
0
|
bo.parameters = new ArrayList<PropositionParameterBo>() |
47 |
0
|
for ( parm in im.parameters){ |
48 |
0
|
bo.parameters.add (PropositionParameterBo.from(parm)) |
49 |
|
} |
50 |
0
|
bo.compoundOpCode = im.compoundOpCode |
51 |
0
|
bo.compoundComponents = new ArrayList<PropositionBo>() |
52 |
0
|
for (prop in im.compoundComponents){ |
53 |
0
|
bo.compoundComponents.add (PropositionBo.from(prop)) |
54 |
|
} |
55 |
|
|
56 |
0
|
return bo |
57 |
|
} |
58 |
|
|
59 |
|
} |