Coverage Report - org.dozer.CustomFieldMapper
 
Classes in this File Line Coverage Branch Coverage Complexity
CustomFieldMapper
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  
 import org.dozer.classmap.ClassMap;
 19  
 import org.dozer.fieldmap.FieldMap;
 20  
 
 21  
 /**
 22  
  * Public custom field mapper interface. A custom field mapper should only be used in very rare and unusual cases
 23  
  * because it is invoked for ALL field mappings. For custom mappings of particular fields, using a CustomConverter is a
 24  
  * much better choice.
 25  
  * 
 26  
  * <p>
 27  
  * If a custom field mapper is specified, Dozer will invoke this class when performing all field mappings. If false is
 28  
  * returned from the call to mapField(), then the field will be subsequently mapped by Dozer as normal.
 29  
  * 
 30  
  * @author Gerard Toonstra
 31  
  */
 32  
 public interface CustomFieldMapper {
 33  
 
 34  
   boolean mapField(Object source, Object destination, Object sourceFieldValue, ClassMap classMap, FieldMap fieldMapping);
 35  
 
 36  
 }