Annotation Type DefaultDataTableEntryTransformer


@Retention(RUNTIME) @Target(METHOD) @API(status=STABLE) public @interface DefaultDataTableEntryTransformer
Register default data table entry transformer.

Valid method signatures are:

  • Map<String,String>, Type -> Object
  • Object, Type -> Object
  • Map<String,String>, Type, TableCellByTypeTransformer -> Object
  • Object, Type, TableCellByTypeTransformer -> Object
See Also:
  • TableEntryByTypeTransformer
  • DataTableType
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Converts a data tables header headers to property names.
    Replace these strings in the Datatable with empty strings.
  • Element Details

    • headersToProperties

      boolean headersToProperties
      Converts a data tables header headers to property names.

      E.g. Xml Http request becomes xmlHttpRequest.

      Returns:
      true if conversion should be be applied, true by default.
      Default:
      true
    • replaceWithEmptyString

      String[] replaceWithEmptyString
      Replace these strings in the Datatable with empty strings.

      A data table can only represent absent and non-empty strings. By replacing a known value (for example [empty]) a data table can also represent empty strings.

      It is not recommended to use multiple replacements in the same table.

      Returns:
      strings to be replaced with empty strings.
      Default:
      {}