|
2.12.0: 2009-05-27 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.export.spotdata.SimpleDynamicField
public class SimpleDynamicField
Represents an exported data field. The object consists of a predefined query expression that can be used in the export query to select the data that is going to be exported, and a title that is exported as part of the table header.
Field Summary | |
---|---|
private Formula.AverageMethod |
averageMethod
|
private Expression |
expression
|
private Formatter<?> |
formatter
|
private String |
title
|
Constructor Summary | |
---|---|
SimpleDynamicField()
Create a new object. |
Method Summary | |
---|---|
Formula.AverageMethod |
getAverageMethod()
Get the average method to use if the exporter is exporting averaged data. |
Expression |
getExpression()
Get the configured express. |
Expression |
getExpression(DbControl dc,
BioAssaySet source,
boolean forAverage)
Returns the configured expression. |
Formatter<?> |
getFormatter()
Get a formatter that converts the values in this field to strings. |
String |
getTitle()
Get the column header. |
void |
setAverageMethod(Formula.AverageMethod averageMethod)
Set the average method to use when exporting averaged data. |
void |
setExpression(Expression expression)
Set the expression used to select data in the query. |
void |
setFormatter(Formatter<?> formatter)
Set a formatter to use for formatting the exported values. |
void |
setTitle(String title)
Set the column header title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Expression expression
private Formula.AverageMethod averageMethod
private Formatter<?> formatter
private String title
Constructor Detail |
---|
public SimpleDynamicField()
Method Detail |
---|
public String getTitle()
ExportableField
getTitle
in interface ExportableField
public Expression getExpression(DbControl dc, BioAssaySet source, boolean forAverage)
Formula.AverageMethod
is allowed to transform
the expression. If no average method has been configured the
average method specified by the IntensityTransform
from
the 'source' bioassay set is used.
getExpression
in interface DynamicField
dc
- The DbControl that is used for database accesssource
- The source bioassay setforAverage
- TRUE if the expression should generate an
average of multiple values
public Formatter<?> getFormatter()
ExportableField
getFormatter
in interface ExportableField
public Expression getExpression()
public void setExpression(Expression expression)
public void setTitle(String title)
public Formula.AverageMethod getAverageMethod()
IntensityTransform
of the source bioassay set is used.
public void setAverageMethod(Formula.AverageMethod averageMethod)
public void setFormatter(Formatter<?> formatter)
|
2.12.0: 2009-05-27 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |