Coverage Report - org.kuali.rice.krms.impl.repository.ActionAttributeBo
 
Classes in this File Line Coverage Branch Coverage Complexity
ActionAttributeBo
0%
0/11
0%
0/4
0
 
 1  
 package org.kuali.rice.krms.impl.repository
 2  
 
 3  
 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase
 4  
 
 5  
 import org.kuali.rice.krms.api.repository.ActionAttribute
 6  
 import org.kuali.rice.krms.api.repository.ActionAttributeContract
 7  
 import org.kuali.rice.krms.api.repository.KrmsAttributeDefinition
 8  
 
 9  
 public class ActionAttributeBo extends PersistableBusinessObjectBase implements ActionAttributeContract{
 10  
 
 11  
         def String id
 12  
         def String actionId
 13  
         def String attributeDefinitionId
 14  
         def String value
 15  
         def KrmsAttributeDefinition attributeDefinition
 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 ActionAttribute to(ActionAttributeBo bo) {
 23  0
            if (bo == null) { return null }
 24  0
            return org.kuali.rice.krms.api.repository.ActionAttribute.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 ActionAttributeBo from(ActionAttribute im) {
 33  0
            if (im == null) { return null }
 34  
 
 35  0
            ActionAttributeBo bo = new ActionAttributeBo()
 36  0
            bo.id = im.id
 37  0
            bo.actionId = im.actionId
 38  0
            bo.attributeDefinitionId = im.attributeDefinitionId
 39  0
            bo.value = im.value
 40  0
            bo.attributeDefinition = KrmsAttributeDefinitionBo.from(im.attributeDefinition)
 41  0
            return bo
 42  
    }
 43  
  
 44  
         @Override
 45  
         KrmsAttributeDefinitionBo getAttributeDefinition() {
 46  0
                 return attributeDefinition
 47  
         }
 48  
         
 49  
 }