Package org.modelmapper.spi
Interface Mapping
-
- All Known Subinterfaces:
ConstantMapping
,PropertyMapping
,SourceMapping
public interface Mapping
Mapping to a destination property hierarchy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Condition<?,?>
getCondition()
Gets the condition that to be satisfied before this mapping can be used to perform a mapping.Converter<?,?>
getConverter()
Gets the Converter to be used when performing a mapping.List<? extends PropertyInfo>
getDestinationProperties()
Get the hierarchy of destination property info.PropertyInfo
getLastDestinationProperty()
Gets the last property info in the destination properties hierarchy.String
getPath()
Returns a string key representing the path of the destination property hierarchy.Provider<?>
getProvider()
Gets the Provider to use for providing instances of the first destination type.Class<?>
getSourceType()
Gets the source object type.boolean
isSkipped()
Returns whether the destination should be skipped when performing a mapping.
-
-
-
Method Detail
-
getCondition
Condition<?,?> getCondition()
Gets the condition that to be satisfied before this mapping can be used to perform a mapping.- Returns:
- condition, else null if none was configured
-
getConverter
Converter<?,?> getConverter()
Gets the Converter to be used when performing a mapping.- Returns:
- converter, else null if none was configured
-
getDestinationProperties
List<? extends PropertyInfo> getDestinationProperties()
Get the hierarchy of destination property info.
-
getLastDestinationProperty
PropertyInfo getLastDestinationProperty()
Gets the last property info in the destination properties hierarchy.
-
getProvider
Provider<?> getProvider()
Gets the Provider to use for providing instances of the first destination type.- Returns:
- converter, else null if none was configured
-
getPath
String getPath()
Returns a string key representing the path of the destination property hierarchy.
-
isSkipped
boolean isSkipped()
Returns whether the destination should be skipped when performing a mapping.
-
getSourceType
Class<?> getSourceType()
Gets the source object type.
-
-