Interface ExifValueFormatter<T>

All Superinterfaces:
Public
All Known Subinterfaces:
ExifValueFormatter.ComplexExifValueFormatter<S,C>

public interface ExifValueFormatter<T> extends Public
Format a given object value of type getValueType() if getSupportedTags() return an array of length 0 or all defined tags returned by getSupportedTags().
Values defined by getSupportedTags() could be mainly taken from ExifTags.
Since:
5.0.100
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A more complex value formatter which could return different types of <S> and <C> where S=simple value and C is the complex one.
  • Method Summary

    Modifier and Type
    Method
    Description
    format(Object value, FormField<?> formField)
    This method formats a object to produce a value of type T.
    @org.jetbrains.annotations.NotNull int[]
    The exif tags hex this formatter is registered for.
    Returns the value type of type <T>
    render(Object value)
    Renders string representations of objects.
  • Method Details

    • format

      @Nullable T format(Object value, FormField<?> formField)
      This method formats a object to produce a value of type T.
      Parameters:
      value - the given value to format
      formField - to set the formatted value
      Returns:
      the formatted object value
      Since:
      5.0.100
      See Also:
    • getValueType

      Class<T> getValueType()
      Returns the value type of type <T>
      Returns:
      Since:
      5.0.100
    • getSupportedTags

      @NotNull @org.jetbrains.annotations.NotNull int[] getSupportedTags()
      The exif tags hex this formatter is registered for. It should return an array of length 0 if this formatter should be responsible for all tags of type getValueType(), e.g. Number.class.
      Returns:
      The exif tags this formatter is registered for or an array of length 0
      Since:
      5.0.100
      See Also:
    • render

      String render(Object value)
      Renders string representations of objects.
      Parameters:
      value - the give value
      Returns:
      the string representation
      Since:
      5.0.100