|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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. One instance of this class is considered to be equal to another if they are configured with the same expression and title.
Field Summary | |
---|---|
private Formula.AverageMethod |
averageMethod
|
private Expression |
expression
|
private Formatter<?> |
formatter
|
private String |
title
|
private Type |
type
|
Constructor Summary | |
---|---|
SimpleDynamicField()
Create a new object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
A dynamic field is equal to another field if it uses the same expression and has the same title. |
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,
DynamicQuery query,
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. |
Type |
getType()
Get the data type of the field. |
int |
hashCode()
|
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. |
void |
setType(Type type)
Set the data type of the exported field. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Expression expression
private Formula.AverageMethod averageMethod
private Formatter<?> formatter
private String title
private Type type
Constructor Detail |
---|
public SimpleDynamicField()
Method Detail |
---|
public String getTitle()
ExportableField
getTitle
in interface ExportableField
public Expression getExpression(DbControl dc, DynamicQuery query, 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 accessquery
- The query the expression will be used withsource
- The source bioassay setforAverage
- TRUE if the expression should generate an
average of multiple values
public Type getType()
ExportableField
getType
in interface ExportableField
public Formatter<?> getFormatter()
ExportableField
getFormatter
in interface ExportableField
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Expression getExpression()
public void setExpression(Expression expression)
public void setTitle(String title)
public void setType(Type type)
public Formula.AverageMethod getAverageMethod()
IntensityTransform
of the source bioassay set is used.
public void setAverageMethod(Formula.AverageMethod averageMethod)
public void setFormatter(Formatter<?> formatter)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |