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() |
boolean |
isDestinationMapNull() |
boolean |
isSourceMapEmptyString() |
boolean |
isSourceMapNull() |
boolean |
isStopOnErrors() |
boolean |
isTrimStrings() |
boolean |
isWildcard() |
public DozerClassMappingMetadata(ClassMap classMap)
public String getSourceClassName()
ClassMappingMetadata
getSourceClassName
in interface ClassMappingMetadata
public String getDestinationClassName()
ClassMappingMetadata
getDestinationClassName
in interface ClassMappingMetadata
public Class<?> getSourceClass()
ClassMappingMetadata
getSourceClass
in interface ClassMappingMetadata
public Class<?> getDestinationClass()
ClassMappingMetadata
getDestinationClass
in interface ClassMappingMetadata
public boolean isStopOnErrors()
isStopOnErrors
in interface ClassMappingMetadata
public boolean isTrimStrings()
isTrimStrings
in interface ClassMappingMetadata
public boolean isWildcard()
isWildcard
in interface ClassMappingMetadata
public boolean isSourceMapNull()
isSourceMapNull
in interface ClassMappingMetadata
public boolean isDestinationMapNull()
isDestinationMapNull
in interface ClassMappingMetadata
public boolean isSourceMapEmptyString()
isSourceMapEmptyString
in interface ClassMappingMetadata
public boolean isDestinationMapEmptyString()
isDestinationMapEmptyString
in interface ClassMappingMetadata
public String getDateFormat()
ClassMappingMetadata
getDateFormat
in interface ClassMappingMetadata
public MappingDirection getMappingDirection()
ClassMappingMetadata
getMappingDirection
in interface ClassMappingMetadata
MappingDirection
object that specifies the
direction of the map.public String getMapId()
ClassMappingMetadata
getMapId
in interface ClassMappingMetadata
public List<FieldMappingMetadata> getFieldMappings()
ClassMappingMetadata
getFieldMappings
in interface ClassMappingMetadata
FieldMappingMetadata
objects.public FieldMappingMetadata getFieldMappingBySource(String sourceFieldName)
ClassMappingMetadata
getFieldMappingBySource
in interface ClassMappingMetadata
sourceFieldName
- The name of the source field.FieldMappingMetadata
object.public FieldMappingMetadata getFieldMappingByDestination(String destinationFieldName)
ClassMappingMetadata
getFieldMappingByDestination
in interface ClassMappingMetadata
destinationFieldName
- The name of the destination field.FieldMappingMetadata
object.Copyright © 2005-2014 dozer. All Rights Reserved.