public class SimpleDynamicField extends java.lang.Object implements DynamicField
Modifier and Type | Field and Description |
---|---|
private Formula.AverageMethod |
averageMethod |
private Expression |
expression |
private Formatter<?> |
formatter |
private java.lang.String |
title |
private Type |
type |
Constructor and Description |
---|
SimpleDynamicField()
Create a new object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.lang.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(java.lang.String title)
Set the column header title.
|
void |
setType(Type type)
Set the data type of the exported field.
|
java.lang.String |
toString() |
private Expression expression
private Formula.AverageMethod averageMethod
private Formatter<?> formatter
private java.lang.String title
private Type type
public SimpleDynamicField()
public java.lang.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 valuespublic Type getType()
ExportableField
getType
in interface ExportableField
public Formatter<?> getFormatter()
ExportableField
getFormatter
in interface ExportableField
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Expression getExpression()
public void setExpression(Expression expression)
public void setTitle(java.lang.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)