Coverage Report - org.kuali.rice.kns.service.impl.DataDictionaryServiceImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
DataDictionaryServiceImpl
0%
0/11
0%
0/2
1.25
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kns.service.impl;
 17  
 
 18  
 import org.kuali.rice.kns.datadictionary.exporter.DataDictionaryMap;
 19  
 import org.kuali.rice.kns.rule.PromptBeforeValidation;
 20  
 import org.kuali.rice.kns.service.DataDictionaryService;
 21  
 import org.kuali.rice.kns.datadictionary.DocumentEntry;
 22  
 import org.kuali.rice.krad.datadictionary.DataDictionary;
 23  
 
 24  
 import java.util.Map;
 25  
 
 26  
 /**
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  */
 29  
 public class DataDictionaryServiceImpl extends org.kuali.rice.krad.service.impl.DataDictionaryServiceImpl implements DataDictionaryService {
 30  
 
 31  0
     private DataDictionaryMap dataDictionaryMap = new DataDictionaryMap(this);
 32  
 
 33  
     public DataDictionaryServiceImpl() {
 34  0
         super();
 35  0
     }
 36  
     
 37  
     public DataDictionaryServiceImpl(DataDictionary dataDictionary) {
 38  0
         super(dataDictionary);
 39  0
     }
 40  
     
 41  
     /**
 42  
      * @see org.kuali.rice.krad.service.DataDictionaryService#getPromptBeforeValidationClass(java.lang.String)
 43  
      */
 44  
     public Class<? extends PromptBeforeValidation> getPromptBeforeValidationClass(String docTypeName) {
 45  0
         Class preRulesCheckClass = null;
 46  
 
 47  0
         DocumentEntry documentEntry = (DocumentEntry) getDataDictionary().getDocumentEntry(docTypeName);
 48  0
         if (documentEntry != null) {
 49  0
             preRulesCheckClass = documentEntry.getPromptBeforeValidationClass();
 50  
         }
 51  
 
 52  0
         return preRulesCheckClass;
 53  
     }
 54  
 
 55  
     public Map getDataDictionaryMap() {
 56  0
         return dataDictionaryMap;
 57  
     }
 58  
 }