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