Coverage Report - org.dozer.Mapper
 
Classes in this File Line Coverage Branch Coverage Complexity
Mapper
N/A
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;
 17  
 
 18  
 /**
 19  
  * Public root interface for performing Dozer mappings from application code.
 20  
  * 
 21  
  * @author tierney.matt
 22  
  * @author garsombke.franz
 23  
  */
 24  
 public interface Mapper {
 25  
 
 26  
   /**
 27  
    * Constructs new instance of destinationClass and performs mapping between from source
 28  
    *
 29  
    * @param source
 30  
    * @param destinationClass
 31  
    * @param <T>
 32  
    * @return
 33  
    * @throws MappingException
 34  
    */
 35  
   <T> T map(Object source, Class<T> destinationClass) throws MappingException;
 36  
 
 37  
   /**
 38  
    * Performs mapping between source and destination objects
 39  
    *
 40  
    * @param source
 41  
    * @param destination
 42  
    * @throws MappingException
 43  
    */
 44  
   void map(Object source, Object destination) throws MappingException;
 45  
 
 46  
   /**
 47  
    * Constructs new instance of destinationClass and performs mapping between from source
 48  
    *
 49  
    * @param source
 50  
    * @param destinationClass
 51  
    * @param mapId
 52  
    * @param <T>
 53  
    * @return
 54  
    * @throws MappingException
 55  
    */
 56  
   <T> T map(Object source, Class<T> destinationClass, String mapId) throws MappingException;
 57  
 
 58  
   /**
 59  
    * Performs mapping between source and destination objects
 60  
    *
 61  
    * @param source
 62  
    * @param destination
 63  
    * @param mapId
 64  
    * @throws MappingException
 65  
    */
 66  
   void map(Object source, Object destination, String mapId) throws MappingException;
 67  
 
 68  
 }