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
Fields Modifier and Type Field Description private String
guiTitle
private String
id
private DynamicField
parent
private boolean
reporterField
-
Constructor Summary
Constructors Constructor Description ExtendedDynamicField(String id, boolean reporterField, DynamicField parent)
ExtendedDynamicField(String id, String guiTitle, boolean reporterField, DynamicField parent)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
An extended dynamic field is equal to another field if their parent fields equal.Expression
getExpression(DbControl dc, DynamicQuery query, BioAssaySet source, boolean forAverage)
Get an expression that selects the data that should be exported.Formatter<?>
getFormatter()
Get a formatter that converts the values in this field to strings.String
getGuiTitle()
String
getId()
String
getTitle()
Get the column header.Type
getType()
Get the data type of the field.int
hashCode()
boolean
isReporterField()
-
Field Details
-
id
-
parent
-
guiTitle
-
reporterField
private final boolean reporterField
-
-
Constructor Details
-
ExtendedDynamicField
-
ExtendedDynamicField
public ExtendedDynamicField(String id, String guiTitle, boolean reporterField, DynamicField parent)
-
-
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()
-