Class DataFileFormatter
- java.lang.Object
-
- net.sf.basedb.clients.web.formatter.DataFileFormatter
-
-
Field Summary
Fields Modifier and Type Field Description private DbControl
dc
private DataFileType
fileType
private FileViewerUtil
fileViewer
private ItemQuery<FileSetMember>
memberQuery
private ModeInfo
mode
-
Constructor Summary
Constructors Constructor Description DataFileFormatter(DbControl dc, DataFileType fileType, ModeInfo mode)
Creates a new formatter instance for the given file type and list mode.DataFileFormatter(DbControl dc, DataFileType fileType, ModeInfo mode, FileViewerUtil fileViewer)
Creates a new formatter instance for the given file type and list mode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(FileSet value)
Lists the name of all member files in the file set that are of the configured file type.FileSet
parseString(String value)
Not supported
-
-
-
Field Detail
-
dc
private final DbControl dc
-
fileType
private final DataFileType fileType
-
mode
private final ModeInfo mode
-
fileViewer
private final FileViewerUtil fileViewer
-
memberQuery
private ItemQuery<FileSetMember> memberQuery
-
-
Constructor Detail
-
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 Detail
-
format
public String format(FileSet value)
Lists the name of all member files in the file set that are of the configured file type.
-
parseString
public FileSet parseString(String value)
Not supported- Specified by:
parseString
in interfaceFormatter<FileSet>
- Parameters:
value
- The string to parse- Returns:
- An object
-
-