Package net.sf.basedb.plugins
Class BaseFileExporterPlugin.ExtendedDynamicField
java.lang.Object
net.sf.basedb.plugins.BaseFileExporterPlugin.ExtendedDynamicField
- All Implemented Interfaces:
DynamicField
,ExportableField
- Enclosing class:
- BaseFileExporterPlugin
public static class BaseFileExporterPlugin.ExtendedDynamicField
extends Object
implements DynamicField
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final String
private final DynamicField
private final boolean
-
Constructor Summary
ConstructorDescriptionExtendedDynamicField
(String id, boolean reporterField, DynamicField parent) ExtendedDynamicField
(String id, String guiTitle, boolean reporterField, DynamicField parent) -
Method Summary
Modifier and TypeMethodDescriptionboolean
An extended dynamic field is equal to another field if their parent fields equal.getExpression
(DbControl dc, DynamicQuery query, BioAssaySet source, boolean forAverage) Get an expression that selects the data that should be exported.Formatter<?>
Get a formatter that converts the values in this field to strings.getId()
getTitle()
Get the column header.getType()
Get the data type of the field.int
hashCode()
boolean
-
Field Details
-
id
-
parent
-
guiTitle
-
reporterField
private final boolean reporterField
-
-
Constructor Details
-
ExtendedDynamicField
-
ExtendedDynamicField
-
-
Method Details
-
getExpression
public Expression getExpression(DbControl dc, DynamicQuery query, BioAssaySet source, boolean forAverage) Description copied from interface:DynamicField
Get an expression that selects the data that should be exported.- Specified by:
getExpression
in interfaceDynamicField
- Parameters:
dc
- The DbControl that is used for database accessquery
- The query the expression will be used withsource
- The source bioassay setforAverage
- TRUE if the expression should generate an average of multiple values- Returns:
- An expression, or null if it is not possible to create an expression in the given case (this will normally be replaced with an empty column in the output)
-
getFormatter
Description copied from interface:ExportableField
Get a formatter that converts the values in this field to strings.- Specified by:
getFormatter
in interfaceExportableField
- Returns:
- A formatter or null to use default formatting (normally this means calling the toString() method).
-
getTitle
Description copied from interface:ExportableField
Get the column header.- Specified by:
getTitle
in interfaceExportableField
-
getType
Description copied from interface:ExportableField
Get the data type of the field.- Specified by:
getType
in interfaceExportableField
- Returns:
- A type object or null if not known
-
equals
An extended dynamic field is equal to another field if their parent fields equal. -
hashCode
public int hashCode() -
getId
-
getGuiTitle
-
isReporterField
public boolean isReporterField()
-