org.modelmapper.spi
Interface Mapping

All Known Subinterfaces:
ConstantMapping, PropertyMapping, SourceMapping

public interface Mapping

Mapping to a destination property hierarchy.

Author:
Jonathan Halterman

Method Summary
 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.
 Provider<?> getProvider()
          Gets the Provider to use for providing instances of the first destination 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

isSkipped

boolean isSkipped()
Returns whether the destination should be skipped when performing a mapping.



Copyright © 2011. All Rights Reserved.