public final class DozerClassMappingMetadata extends Object implements ClassMappingMetadata
| Constructor and Description |
|---|
DozerClassMappingMetadata(ClassMap classMap) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDateFormat()
Obtains the date format that is used during date conversions.
|
Class<?> |
getDestinationClass()
Obtains the Class object that represents the destination class in the mapping definition.
|
String |
getDestinationClassName()
Obtains the name of the destination class in the mapping definition.
|
FieldMappingMetadata |
getFieldMappingByDestination(String destinationFieldName)
Gets a single field mapping definition by looking up the name of the destination field.
|
FieldMappingMetadata |
getFieldMappingBySource(String sourceFieldName)
Gets a single field mapping definition by looking up the name of the source field.
|
List<FieldMappingMetadata> |
getFieldMappings()
Gets a list of all field mapping definitions that are used for the mapping of the classes.
|
String |
getMapId()
Returns the map id of this mapping definition used for contextual mapping selection.
|
MappingDirection |
getMappingDirection()
Used to check if a mapping is bi- or unidirectional.
|
Class<?> |
getSourceClass()
Obtains the Class object that represents the source class in the mapping definition.
|
String |
getSourceClassName()
Obtains the name of the source class in the mapping definition.
|
boolean |
isDestinationMapEmptyString()
Whether destination should map empty strings
|
boolean |
isDestinationMapNull()
Whether destination should map null
|
boolean |
isSourceMapEmptyString()
Whether source should map empty strings
|
boolean |
isSourceMapNull()
Whether source should map null
|
boolean |
isStopOnErrors()
Whether to stop if an exception occurs while mapping
|
boolean |
isTrimStrings()
Whether strings should be trimmed
|
boolean |
isWildcard()
Whether wildcard policy is enabled
|
public DozerClassMappingMetadata(ClassMap classMap)
public String getSourceClassName()
ClassMappingMetadatagetSourceClassName in interface ClassMappingMetadatapublic String getDestinationClassName()
ClassMappingMetadatagetDestinationClassName in interface ClassMappingMetadatapublic Class<?> getSourceClass()
ClassMappingMetadatagetSourceClass in interface ClassMappingMetadatapublic Class<?> getDestinationClass()
ClassMappingMetadatagetDestinationClass in interface ClassMappingMetadatapublic boolean isStopOnErrors()
ClassMappingMetadataisStopOnErrors in interface ClassMappingMetadatapublic boolean isTrimStrings()
ClassMappingMetadataisTrimStrings in interface ClassMappingMetadatapublic boolean isWildcard()
ClassMappingMetadataisWildcard in interface ClassMappingMetadatapublic boolean isSourceMapNull()
ClassMappingMetadataisSourceMapNull in interface ClassMappingMetadatapublic boolean isDestinationMapNull()
ClassMappingMetadataisDestinationMapNull in interface ClassMappingMetadatapublic boolean isSourceMapEmptyString()
ClassMappingMetadataisSourceMapEmptyString in interface ClassMappingMetadatapublic boolean isDestinationMapEmptyString()
ClassMappingMetadataisDestinationMapEmptyString in interface ClassMappingMetadatapublic String getDateFormat()
ClassMappingMetadatagetDateFormat in interface ClassMappingMetadatapublic MappingDirection getMappingDirection()
ClassMappingMetadatagetMappingDirection in interface ClassMappingMetadataMappingDirection object that specifies the
direction of the map.public String getMapId()
ClassMappingMetadatagetMapId in interface ClassMappingMetadatapublic List<FieldMappingMetadata> getFieldMappings()
ClassMappingMetadatagetFieldMappings in interface ClassMappingMetadataFieldMappingMetadata objects.public FieldMappingMetadata getFieldMappingBySource(String sourceFieldName)
ClassMappingMetadatagetFieldMappingBySource in interface ClassMappingMetadatasourceFieldName - The name of the source field.FieldMappingMetadata object.public FieldMappingMetadata getFieldMappingByDestination(String destinationFieldName)
ClassMappingMetadatagetFieldMappingByDestination in interface ClassMappingMetadatadestinationFieldName - The name of the destination field.FieldMappingMetadata object.Copyright © 2005–2021 dozer. All rights reserved.