Interface IValueExtractor

All Known Implementing Classes:
HashExtractor, MappingExtensionExtractor, MappingSetExtensionExtractor, MappingSetSlotExtractor, MappingSlotExtractor, MappingValueExtractor, SExpressionExtractor

public interface IValueExtractor
Extracts an arbitrary piece of content from a mapping set object.

This interface is the visible face of the logic behind the “extractor expression” feature.

  • Method Summary

    Modifier and Type
    Method
    Description
    Extracts the desired value from the given mapping set.
    Gets the type of the value that would be returned by extract(MappingSet).
  • Method Details

    • extract

      Object extract(MappingSet ms)
      Extracts the desired value from the given mapping set.
      Parameters:
      ms - The mapping set from which to extract the value.
      Returns:
      The desired value, or null if the set does not contain a value at the specified location.
    • getType

      Class<?> getType()
      Gets the type of the value that would be returned by extract(MappingSet).
      Returns:
      The actual Java class of the object representing the extracted value.