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.

Author:
Jonathan Halterman

Nested Class Summary
static interface MatchingStrategy.PropertyNameInfo
          Encapsulates property name information to be use for determining whether a hierarchy of source and destination properties match.
 
Method Summary
 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.
 boolean matches(MatchingStrategy.PropertyNameInfo propertyNameInfo)
          Determines whether the data contained in the propertyNameInfo represents a source to destination match.
 

Method Detail

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

boolean matches(MatchingStrategy.PropertyNameInfo propertyNameInfo)
Determines whether the data contained in the propertyNameInfo represents a source to destination match.

Parameters:
propertyNameInfo - to match against
Returns:
true if the propertyNameInfo represents a match else false


Copyright © 2011. All Rights Reserved.