Coverage Report - org.kuali.rice.krms.impl.repository.TermSpecificationBo
 
Classes in this File Line Coverage Branch Coverage Complexity
TermSpecificationBo
0%
0/10
0%
0/4
0
 
 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.term.TermSpecificationDefinition;
 6  
 import org.kuali.rice.krms.api.repository.term.TermSpecificationDefinitionContract;
 7  
 
 8  
 public class TermSpecificationBo extends PersistableBusinessObjectBase implements TermSpecificationDefinitionContract{
 9  
         
 10  
         private static final long serialVersionUID = 1L;
 11  
 
 12  
         def String id
 13  
         def String contextId
 14  
         def String name
 15  
         def String type
 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 TermSpecificationDefinition to(TermSpecificationBo bo) {
 23  0
            if (bo == null) { return null }
 24  0
            return org.kuali.rice.krms.api.repository.term.TermSpecificationDefinition.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 TermSpecificationBo from(TermSpecificationDefinition im) {
 33  0
            if (im == null) { return null }
 34  
 
 35  0
            TermSpecificationBo bo = new TermSpecificationBo()
 36  0
            bo.id = im.id
 37  0
            bo.contextId = im.contextId
 38  0
            bo.name = im.name
 39  0
            bo.type = im.type
 40  0
            bo.versionNumber = im.versionNumber
 41  
            
 42  0
            return bo
 43  
    }
 44  
  
 45  
 }