Class DozerFieldMappingMetadata
- java.lang.Object
-
- com.github.dozermapper.core.metadata.DozerFieldMappingMetadata
-
- All Implemented Interfaces:
FieldMappingMetadata
public final class DozerFieldMappingMetadata extends Object implements FieldMappingMetadata
Internal use only.
-
-
Constructor Summary
Constructors Constructor Description DozerFieldMappingMetadata(FieldMap fieldMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCustomConverter()The name of the custom converter class, or an empty string if no custom converter is used.StringgetDateFormat()Gets date format used when mappingStringgetDestinationFieldGetMethod()Gets the destination field get methodStringgetDestinationFieldSetMethod()Gets the destination field set methodStringgetDestinationName()Gets the destination field nameStringgetMapId()Returns the map id of this mapping definition used for contextual mapping selection.MappingDirectiongetMappingDirection()Can be used to check whether a mapping in unidirectional or bidirectional.StringgetSourceFieldGetMethod()Gets the source field get methodStringgetSourceFieldSetMethod()Gets the source field set methodStringgetSourceName()Gets the source field namebooleanisCopyByReference()Gets whether mapping should copy by referencebooleanisDestinationFieldAccessible()booleanisSourceFieldAccessible()
-
-
-
Constructor Detail
-
DozerFieldMappingMetadata
public DozerFieldMappingMetadata(FieldMap fieldMap)
-
-
Method Detail
-
getSourceName
public String getSourceName()
Description copied from interface:FieldMappingMetadataGets the source field name- Specified by:
getSourceNamein interfaceFieldMappingMetadata- Returns:
- The name of the source field.
-
getDestinationName
public String getDestinationName()
Description copied from interface:FieldMappingMetadataGets the destination field name- Specified by:
getDestinationNamein interfaceFieldMappingMetadata- Returns:
- The name of the destination field.
-
getSourceFieldGetMethod
public String getSourceFieldGetMethod()
Description copied from interface:FieldMappingMetadataGets the source field get method- Specified by:
getSourceFieldGetMethodin interfaceFieldMappingMetadata- Returns:
- The name of the getter of the source field.
-
getSourceFieldSetMethod
public String getSourceFieldSetMethod()
Description copied from interface:FieldMappingMetadataGets the source field set method- Specified by:
getSourceFieldSetMethodin interfaceFieldMappingMetadata- Returns:
- The name of the setter of the source field.
-
getDestinationFieldGetMethod
public String getDestinationFieldGetMethod()
Description copied from interface:FieldMappingMetadataGets the destination field get method- Specified by:
getDestinationFieldGetMethodin interfaceFieldMappingMetadata- Returns:
- The name of the getter of the destination field.
-
getDestinationFieldSetMethod
public String getDestinationFieldSetMethod()
Description copied from interface:FieldMappingMetadataGets the destination field set method- Specified by:
getDestinationFieldSetMethodin interfaceFieldMappingMetadata- Returns:
- The name of the setter of the destination field.
-
isCopyByReference
public boolean isCopyByReference()
Description copied from interface:FieldMappingMetadataGets whether mapping should copy by reference- Specified by:
isCopyByReferencein interfaceFieldMappingMetadata- Returns:
- true if nested objects are copied by reference. false if a deep copy is performed.
-
isSourceFieldAccessible
public boolean isSourceFieldAccessible()
- Specified by:
isSourceFieldAccessiblein interfaceFieldMappingMetadata
-
isDestinationFieldAccessible
public boolean isDestinationFieldAccessible()
- Specified by:
isDestinationFieldAccessiblein interfaceFieldMappingMetadata
-
getMappingDirection
public MappingDirection getMappingDirection()
Description copied from interface:FieldMappingMetadataCan be used to check whether a mapping in unidirectional or bidirectional.- Specified by:
getMappingDirectionin interfaceFieldMappingMetadata- Returns:
- An instance of
MappingDirection.
-
getDateFormat
public String getDateFormat()
Description copied from interface:FieldMappingMetadataGets date format used when mapping- Specified by:
getDateFormatin interfaceFieldMappingMetadata- Returns:
- The date format used for conversions as a string.
-
getCustomConverter
public String getCustomConverter()
Description copied from interface:FieldMappingMetadataThe name of the custom converter class, or an empty string if no custom converter is used.- Specified by:
getCustomConverterin interfaceFieldMappingMetadata- Returns:
- The name of the custom converter class as a string.
-
getMapId
public String getMapId()
Description copied from interface:FieldMappingMetadataReturns the map id of this mapping definition used for contextual mapping selection.- Specified by:
getMapIdin interfaceFieldMappingMetadata- Returns:
- The identifier as a string.
-
-