Class JSONListFormatter
- java.lang.Object
-
- org.intermine.webservice.server.lists.JSONListFormatter
-
- All Implemented Interfaces:
ListFormatter
public class JSONListFormatter extends java.lang.Object implements ListFormatter
- Author:
- Alex Kalderimis
-
-
Constructor Summary
Constructors Constructor Description JSONListFormatter(InterMineAPI im, Profile profile, boolean jsDates)
Construct a list formatter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
format(InterMineBag list)
Format a list into a list of string values.void
setSize(int size)
set the size of the list.
-
-
-
Constructor Detail
-
JSONListFormatter
public JSONListFormatter(InterMineAPI im, Profile profile, boolean jsDates)
Construct a list formatter.- Parameters:
im
- The InterMine state object.profile
- The current user.jsDates
- Format dates suitable for JavaScript.
-
-
Method Detail
-
format
public java.util.List<java.lang.String> format(InterMineBag list)
Description copied from interface:ListFormatter
Format a list into a list of string values.- Specified by:
format
in interfaceListFormatter
- Parameters:
list
- The list to format- Returns:
- A list of strings.
-
setSize
public void setSize(int size)
Description copied from interface:ListFormatter
set the size of the list.- Specified by:
setSize
in interfaceListFormatter
- Parameters:
size
- The size.
-
-