Coverage Report - org.kuali.rice.krms.impl.repository.KrmsAttributeDefinitionBo
 
Classes in this File Line Coverage Branch Coverage Complexity
KrmsAttributeDefinitionBo
8%
1/12
25%
1/4
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 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  
    static KrmsAttributeDefinition to(KrmsAttributeDefinitionBo bo) {
 23  0
            if (bo == null) { return null }
 24  0
            return org.kuali.rice.krms.api.repository.type.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  
    static KrmsAttributeDefinitionBo from(KrmsAttributeDefinition im) {
 33  6
            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  0
            bo.versionNumber = im.versionNumber
 43  0
            return bo
 44  
    }
 45  
  
 46  
 }