Coverage Report - org.dozer.classmap.MappingFileData
 
Classes in this File Line Coverage Branch Coverage Complexity
MappingFileData
100%
8/8
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2013 Dozer Project
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
 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.dozer.classmap;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.List;
 20  
 
 21  
 /**
 22  
  * Internal class that contains all of the custom mapping definitions, along with the global configuration instance.
 23  
  * Only intended for internal use.
 24  
  * 
 25  
  * @author garsombke.franz
 26  
  * @author sullins.ben
 27  
  * @author tierney.matt
 28  
  * 
 29  
  */
 30  633
 public class MappingFileData {
 31  633
   private List<ClassMap> classMaps = new ArrayList<ClassMap>();
 32  
   private Configuration configuration;
 33  
 
 34  
   public List<ClassMap> getClassMaps() {
 35  6109
     return classMaps;
 36  
   }
 37  
   
 38  
   public void addClassMap(ClassMap classMap) {
 39  2
     this.classMaps.add(classMap);
 40  2
   }
 41  
 
 42  
   public void setConfiguration(Configuration config) {
 43  235
     this.configuration = config;
 44  235
   }
 45  
 
 46  
   public Configuration getConfiguration() {
 47  6335
     return this.configuration;
 48  
   }
 49  
 }