Package org.modelmapper.spi
Interface MatchingStrategy
public interface MatchingStrategy
Identifies source to destination property matches by comparing source and destination type, property
and property type names.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isExact()
Indicates whether the matching strategy determines exact matches that are guaranteed not to be ambiguous with any other source and destination properties in the object graph.boolean
matches
(PropertyNameInfo propertyNameInfo) Determines whether the data contained in thepropertyNameInfo
represents a source to destination match.
-
Method Details
-
isExact
boolean isExact()Indicates whether the matching strategy determines exact matches that are guaranteed not to be ambiguous with any other source and destination properties in the object graph. If false, ModelMapper will search the object graph for duplicate matches for each destination property hierarchy.- Returns:
- true if the matching strategy determines exact matches else false
-
matches
Determines whether the data contained in thepropertyNameInfo
represents a source to destination match.- Parameters:
propertyNameInfo
- to match against- Returns:
- true if the
propertyNameInfo
represents a match else false
-