Clover Coverage Report - rice-krms-impl 2.0.0-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
13   46   6   6.5
4   0   0.46   2
2     3  
1    
 
  KrmsAttributeDefinitionBo       Line # 8 13 0% 6 19 0% 0.0
 
No Tests
 
1    package org.kuali.rice.krms.impl.repository
2   
3    import org.kuali.rice.kns.bo.Inactivateable
4    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase
5    import org.kuali.rice.krms.api.repository.KrmsAttributeDefinition
6    import org.kuali.rice.krms.api.repository.KrmsAttributeDefinitionContract
7   
 
8    public class KrmsAttributeDefinitionBo extends PersistableBusinessObjectBase implements KrmsAttributeDefinitionContract, Inactivateable{
9   
10    def String id
11    def String name
12    def String namespace
13    def String label
14    def boolean active
15    def String componentName
16   
17    /**
18    * Converts a mutable bo to it's immutable counterpart
19    * @param bo the mutable business object
20    * @return the immutable object
21    */
 
22  0 toggle static KrmsAttributeDefinition to(KrmsAttributeDefinitionBo bo) {
23  0 if (bo == null) { return null }
24  0 return org.kuali.rice.krms.api.repository.KrmsAttributeDefinition.Builder.create(bo).build()
25    }
26   
27    /**
28    * Converts a immutable object to it's mutable bo counterpart
29    * @param im immutable object
30    * @return the mutable bo
31    */
 
32  0 toggle static KrmsAttributeDefinitionBo from(KrmsAttributeDefinition im) {
33  0 if (im == null) { return null }
34   
35  0 KrmsAttributeDefinitionBo bo = new KrmsAttributeDefinitionBo()
36  0 bo.id = im.id
37  0 bo.name = im.name
38  0 bo.namespace = im.namespace
39  0 bo.label = im.label
40  0 bo.active = im.active
41  0 bo.componentName = im.componentName
42   
43  0 return bo
44    }
45   
46    }