Class DataFileFormatter

java.lang.Object
net.sf.basedb.clients.web.formatter.DataFileFormatter
All Implemented Interfaces:
Formatter<FileSet>

public class DataFileFormatter extends Object implements Formatter<FileSet>
Formatter implementation for file sets that lists all member files of a given file type
Since:
3.5
Author:
nicklas
  • Field Details

  • Constructor Details

    • DataFileFormatter

      public DataFileFormatter(DbControl dc, DataFileType fileType, ModeInfo mode)
      Creates a new formatter instance for the given file type and list mode.
    • DataFileFormatter

      public DataFileFormatter(DbControl dc, DataFileType fileType, ModeInfo mode, FileViewerUtil fileViewer)
      Creates a new formatter instance for the given file type and list mode.
      Since:
      3.17
  • Method Details

    • format

      public String format(FileSet value)
      Lists the name of all member files in the file set that are of the configured file type.
      Specified by:
      format in interface Formatter<FileSet>
      Parameters:
      value - The value to format
      Returns:
      A formatted string
    • parseString

      public FileSet parseString(String value)
      Not supported
      Specified by:
      parseString in interface Formatter<FileSet>
      Parameters:
      value - The string to parse
      Returns:
      An object