Coverage Report - org.dozer.metadata.DozerFieldMappingMetadata
 
Classes in this File Line Coverage Branch Coverage Complexity
DozerFieldMappingMetadata
33%
5/15
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.metadata;
 17  
 
 18  
 import org.dozer.classmap.MappingDirection;
 19  
 import org.dozer.fieldmap.FieldMap;
 20  
 
 21  
 /**
 22  
  * Internal use only.
 23  
  * @author  Florian Kunz
 24  
  */
 25  
 public final class DozerFieldMappingMetadata implements FieldMappingMetadata {
 26  
 
 27  
         private final FieldMap fieldMap;
 28  
         
 29  14
         public DozerFieldMappingMetadata(FieldMap fieldMap) {
 30  14
                 this.fieldMap = fieldMap;
 31  14
         }
 32  
 
 33  
         public String getSourceName() {
 34  2
                 return fieldMap.getSrcFieldName();
 35  
         }
 36  
 
 37  
         public String getDestinationName() {
 38  4
                 return fieldMap.getDestFieldName();
 39  
         }
 40  
 
 41  
         public String getSourceFieldGetMethod() {
 42  0
                 return fieldMap.getSrcFieldMapGetMethod();
 43  
         }
 44  
 
 45  
         public String getSourceFieldSetMethod() {
 46  0
                 return fieldMap.getSrcFieldMapSetMethod();
 47  
         }
 48  
 
 49  
         public String getDestinationFieldGetMethod() {
 50  0
                 return fieldMap.getDestFieldMapGetMethod();
 51  
         }
 52  
 
 53  
         public String getDestinationFieldSetMethod() {
 54  0
                 return fieldMap.getDestFieldMapSetMethod();
 55  
         }
 56  
 
 57  
         public boolean isCopyByReference() {
 58  0
                 return fieldMap.isCopyByReference();
 59  
         }
 60  
 
 61  
         public boolean isSourceFieldAccessible() {
 62  0
                 return fieldMap.isSrcFieldAccessible();
 63  
         }
 64  
 
 65  
         public boolean isDestinationFieldAccessible() {
 66  0
                 return fieldMap.isDestFieldAccessible();
 67  
         }
 68  
 
 69  
         public MappingDirection getMappingDirection() {
 70  0
                 return fieldMap.getType();
 71  
         }
 72  
 
 73  
         public String getDateFormat() {
 74  0
                 return fieldMap.getDateFormat();
 75  
         }
 76  
 
 77  
         public String getCustomConverter() {
 78  0
                 return fieldMap.getCustomConverter();
 79  
         }
 80  
 
 81  
 }