Coverage Report - org.kuali.rice.krms.impl.repository.KrmsAttributeDefinitionBo
 
Classes in this File Line Coverage Branch Coverage Complexity
KrmsAttributeDefinitionBo
84%
11/13
37%
3/8
0
 
 1  
 package org.kuali.rice.krms.impl.repository
 2  
 
 3  
 import org.kuali.rice.krad.bo.MutableInactivatable
 4  
 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase
 5  
 import org.kuali.rice.krms.api.repository.type.KrmsAttributeDefinition
 6  
 import org.kuali.rice.krms.api.repository.type.KrmsAttributeDefinitionContract
 7  
 
 8  
 public class KrmsAttributeDefinitionBo extends PersistableBusinessObjectBase implements KrmsAttributeDefinitionContract, MutableInactivatable{
 9  
 
 10  
         def String id
 11  
         def String name
 12  
         def String namespace
 13  
         def String label
 14  
     def String description
 15  
         def boolean active
 16  
         def String componentName
 17  
                 
 18  
         /**
 19  
         * Converts a mutable bo to it's immutable counterpart
 20  
         * @param bo the mutable business object
 21  
         * @return the immutable object
 22  
         */
 23  
    static KrmsAttributeDefinition to(KrmsAttributeDefinitionBo bo) {
 24  0
            if (bo == null) { return null }
 25  1
            return org.kuali.rice.krms.api.repository.type.KrmsAttributeDefinition.Builder.create(bo).build()
 26  
    }
 27  
 
 28  
    /**
 29  
         * Converts a immutable object to it's mutable bo counterpart
 30  
         * @param im immutable object
 31  
         * @return the mutable bo
 32  
         */
 33  
    static KrmsAttributeDefinitionBo from(KrmsAttributeDefinition im) {
 34  0
            if (im == null) { return null }
 35  
 
 36  1
            KrmsAttributeDefinitionBo bo = new KrmsAttributeDefinitionBo()
 37  1
            bo.id = im.id
 38  1
            bo.name = im.name
 39  1
            bo.namespace = im.namespace
 40  1
            bo.label = im.label
 41  1
        bo.description = im.description
 42  1
            bo.active = im.active
 43  1
            bo.componentName = im.componentName
 44  1
            bo.versionNumber = im.versionNumber
 45  1
            return bo
 46  
    }
 47  
  
 48  
 }