Interface Mapping

All Known Subinterfaces:
ConstantMapping, PropertyMapping, SourceMapping

public interface Mapping
Mapping to a destination property hierarchy.
  • Method Details

    • 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.