Class AutoItemExportFormatter
- java.lang.Object
-
- net.sf.basedb.clients.web.formatter.AutoItemExportFormatter
-
public class AutoItemExportFormatter extends Object implements Formatter<BasicItem>
Formatter implementation designed for exporting that generates output with best supported method depending on their type. Files are exported with their path Nameable items are exported with their name Other items are exported with their toString() method- Since:
- 3.17
- Author:
- nicklas
-
-
Constructor Summary
Constructors Constructor Description AutoItemExportFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(BasicItem item)
Format a value by converting it to a string.File
parseString(String value)
Parse a string and return a value of the correct type.
-
-
-
Method Detail
-
format
public String format(BasicItem item)
Description copied from interface:Formatter
Format a value by converting it to a string.
-
parseString
public File parseString(String value)
Description copied from interface:Formatter
Parse a string and return a value of the correct type. A null input string should (unless otherwise documented by a specific formatter implementation) be allowed and may return null or any other "default" value.- Specified by:
parseString
in interfaceFormatter<BasicItem>
- Parameters:
value
- The string to parse- Returns:
- An object
-
-