|
2.14.2: 2010-02-22 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.export.spotdata.JepDynamicField
public class JepDynamicField
A dynamic field implementation that uses a JEP expression to generate the expression that is needed to select the data.
Field Summary | |
---|---|
private Formula.AverageMethod |
averageMethod
|
private Formatter<?> |
formatter
|
private String |
jep
|
private String |
title
|
Constructor Summary | |
---|---|
JepDynamicField()
Create a new object. |
Method Summary | |
---|---|
Formula.AverageMethod |
getAverageMethod()
Get the average method to use if the exporter is exporting averaged data. |
Expression |
getExpression(DbControl dc,
BioAssaySet source,
boolean forAverage)
Converts the configured JEP expression using the BioAssaySetUtil.createJepExpression(DbControl, BioAssaySet, String, boolean)
method. |
Formatter<?> |
getFormatter()
Get a formatter that converts the values in this field to strings. |
String |
getJep()
Get the configured JEP expression. |
String |
getTitle()
Get the column header. |
void |
setAverageMethod(Formula.AverageMethod averageMethod)
Set the average method to use when exporting averaged data. |
void |
setFormatter(Formatter<?> formatter)
Set a formatter to use for formatting the exported values. |
void |
setJep(String jep)
Set the expression used to select data in the query. |
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 String jep
private String title
private Formula.AverageMethod averageMethod
private Formatter<?> formatter
Constructor Detail |
---|
public JepDynamicField()
Method Detail |
---|
public Expression getExpression(DbControl dc, BioAssaySet source, boolean forAverage)
BioAssaySetUtil.createJepExpression(DbControl, BioAssaySet, String, boolean)
method. If 'forAverage' is TRUE the confgured 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 String getTitle()
ExportableField
getTitle
in interface ExportableField
public Formatter<?> getFormatter()
ExportableField
getFormatter
in interface ExportableField
public String getJep()
public void setJep(String jep)
Expressions
with the BioAssaySetUtil.createJepExpression(DbControl, BioAssaySet, String, boolean)
method.
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.14.2: 2010-02-22 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |