Interface FeatureFormatMapper<T>

Type Parameters:
T - type of the external representation
All Known Implementing Classes:
AbstractFeatureFormatMapper, NTVFeatureFormatMapper, QuinceFeatureFormatMapper

public interface FeatureFormatMapper<T>
A mapper, or translator, that can convert between the standard FeatureValue representation and some other external representation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts a feature value into the external representation
    toFeatureValue(FeatureType featureType, T externalValue)
    Converts a datum in the external representation into the FeatureValue format.
  • Method Details

    • fromFeatureValue

      T fromFeatureValue(FeatureValue featureValue)
      Converts a feature value into the external representation
      Parameters:
      featureValue - the FeatureValue
      Returns:
      the datum in the external representation
    • toFeatureValue

      FeatureValue toFeatureValue(FeatureType featureType, T externalValue)
      Converts a datum in the external representation into the FeatureValue format. The FeatureType of the feature must be known.
      Parameters:
      featureType - type of this feature
      externalValue - datum in the external representation
      Returns:
      datum represented as a FeatureValue