Coverage Report - org.kuali.rice.kim.api.type.KimTypeUtils
 
Classes in this File Line Coverage Branch Coverage Complexity
KimTypeUtils
0%
0/5
0%
0/2
2.5
 
 1  
 package org.kuali.rice.kim.api.type;
 2  
 
 3  
 import org.apache.commons.lang.StringUtils;
 4  
 import org.kuali.rice.kim.util.KimConstants;
 5  
 
 6  
 import javax.xml.namespace.QName;
 7  
 
 8  
 public final class KimTypeUtils {
 9  
 
 10  0
     private KimTypeUtils() {
 11  0
         throw new UnsupportedOperationException("do not call");
 12  
     }
 13  
 
 14  
     /**
 15  
      * Resolves the given kim type service name represented as a String to the appropriate QName.
 16  
      * If the value given is empty or null, then it will resolve to a qname representing the
 17  
      * {@link KimConstants#DEFAULT_KIM_TYPE_SERVICE}.
 18  
      *
 19  
      * @param kimTypeServiceName the name to resolve
 20  
      * @return a qname representing a resolved type service
 21  
      */
 22  
     public static QName resolveKimTypeServiceName(String kimTypeServiceName) {
 23  0
         if (StringUtils.isBlank(kimTypeServiceName)) {
 24  0
             return QName.valueOf(KimConstants.DEFAULT_KIM_TYPE_SERVICE);
 25  
         }
 26  0
         return QName.valueOf(kimTypeServiceName);
 27  
     }
 28  
 }