|
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.ExportableFieldFactory
public class ExportableFieldFactory
Utility class with factory methods that helps with the creation of exportable fields.
Constructor Summary | |
---|---|
ExportableFieldFactory()
|
Method Summary | |
---|---|
static AnnotationAssayField |
annotation(AnnotationType at,
Formatter<?> formatter)
Create an annotation assay field. |
static AnnotationAssayField |
annotation(AnnotationType at,
String title,
Formatter<?> formatter)
Create an annotation assay field, overriding the title of the annotation type. |
static AssayPropertyField |
assayProperty(String property,
String title,
Type type,
Formatter<?> formatter)
Create a property assay field. |
static SimpleDynamicField |
channel(int channel,
String title,
Formatter<?> formatter)
Create a simple dynamic field that exports the channel intensity of the given channel. |
static JepDynamicField |
extraValue(ExtraValueType extra,
String title,
Formatter<?> formatter)
Create a JEP dynamic field that exports an extra value. |
static JepDynamicField |
formula(Formula f,
String title,
Formatter<?> formatter)
Create a JEP dynamic field that exports the result of the JEP expression in a formula. |
static JepDynamicField |
jep(String jep,
String title,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Deprecated. In 2.15, use jep(String, String, Type, net.sf.basedb.core.Formula.AverageMethod, Formatter)
instead |
static JepDynamicField |
jep(String jep,
String title,
Type type,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Create a JEP dynamic field. |
static SimpleDynamicField |
rawData(RawDataProperty property,
String title,
Formatter<?> formatter)
Create a simple dynamic field that exports a raw data value. |
static SimpleDynamicField |
rawData(String property,
String title,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Deprecated. In 2.15, use rawData(String, String, Type, net.sf.basedb.core.Formula.AverageMethod, Formatter)
instead |
static SimpleDynamicField |
rawData(String property,
String title,
Type type,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Create a simple dynamic field that exports a raw data value. |
static SimpleDynamicField |
reporter(ExtendedProperty property,
String title,
Formatter<?> formatter)
Create a simple dynamic field that exports reporter annotation values. |
static DynamicField |
reporter(String property,
String title,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Deprecated. In 2.15, use reporter(String, String, Type, net.sf.basedb.core.Formula.AverageMethod, Formatter)
instead |
static DynamicField |
reporter(String property,
String title,
Type type,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Create a simple dynamic field that exports reporter annotation values. |
static SimpleDynamicField |
simple(Expression e,
String title,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Deprecated. In 2.15, use simple(Expression, String, Type, net.sf.basedb.core.Formula.AverageMethod, Formatter)
instead |
static SimpleDynamicField |
simple(Expression e,
String title,
Type type,
Formula.AverageMethod averageMethod,
Formatter<?> formatter)
Create a simple dynamic field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExportableFieldFactory()
Method Detail |
---|
public static AnnotationAssayField annotation(AnnotationType at, Formatter<?> formatter)
at
- The annotation typeformatter
- A formatter or nullAnnotationAssayField
public static AnnotationAssayField annotation(AnnotationType at, String title, Formatter<?> formatter)
at
- The annotation typetitle
- A custom title for the assay field, or null to use the
name of the annotation typeformatter
- A formatter or nullAnnotationAssayField
public static AssayPropertyField assayProperty(String property, String title, Type type, Formatter<?> formatter)
property
- The property to export, see
Metadata.getPropertyValue(net.sf.basedb.core.DbControl, Object, String)
for more information about the syntax of this parameter.title
- The column titleformatter
- A formatter or null
AssayPropertyField
object@Deprecated public static SimpleDynamicField simple(Expression e, String title, Formula.AverageMethod averageMethod, Formatter<?> formatter)
simple(Expression, String, Type, net.sf.basedb.core.Formula.AverageMethod, Formatter)
instead
public static SimpleDynamicField simple(Expression e, String title, Type type, Formula.AverageMethod averageMethod, Formatter<?> formatter)
e
- The expression to exporttitle
- The column titleaverageMethod
- Average method to use or null to use the
average method specified by the bioassay setformatter
- A formatter or nullSimpleDynamicField
@Deprecated public static JepDynamicField jep(String jep, String title, Formula.AverageMethod averageMethod, Formatter<?> formatter)
jep(String, String, Type, net.sf.basedb.core.Formula.AverageMethod, Formatter)
instead
public static JepDynamicField jep(String jep, String title, Type type, Formula.AverageMethod averageMethod, Formatter<?> formatter)
jep
- The JEP expressiontitle
- The column titletype
- The data type of the expressionaverageMethod
- Average method to use or null to use the
average method specified by the bioassay setformatter
- A formatter or nullpublic static SimpleDynamicField channel(int channel, String title, Formatter<?> formatter)
Dynamic.column(VirtualColumn)
and VirtualColumn.channelRaw(int)
to generate the expression. It
uses the average method specified by the bioassay set.
channel
- The channel numbertitle
- The column title. If null, the title is generated as 'intensity' + channelformatter
- A formatter for numeric data or nullpublic static SimpleDynamicField rawData(RawDataProperty property, String title, Formatter<?> formatter)
Dynamic.rawData(String)
to generate the
expression and uses the average method specified by the raw data
property.
property
- The raw data propertytitle
- The column title, or null to use the title of
the propertyformatter
- A formatter or null@Deprecated public static SimpleDynamicField rawData(String property, String title, Formula.AverageMethod averageMethod, Formatter<?> formatter)
rawData(String, String, Type, net.sf.basedb.core.Formula.AverageMethod, Formatter)
instead
public static SimpleDynamicField rawData(String property, String title, Type type, Formula.AverageMethod averageMethod, Formatter<?> formatter)
Dynamic.rawData(String)
to generate the
expression.
property
- The raw data propertytitle
- The column title, or null to use the property
as titleaverageMethod
- Average method to use or null to use
Formula.AverageMethod.NONE
formatter
- A formatter or nullpublic static SimpleDynamicField reporter(ExtendedProperty property, String title, Formatter<?> formatter)
Dynamic.reporter(String)
to generate the
expression and uses the average method specified by the reporter
property.
property
- The reporter propertytitle
- The column title, or null to use the title of
the propertyformatter
- A formatter or nullpublic static DynamicField reporter(String property, String title, Formula.AverageMethod averageMethod, Formatter<?> formatter)
reporter(String, String, Type, net.sf.basedb.core.Formula.AverageMethod, Formatter)
instead
public static DynamicField reporter(String property, String title, Type type, Formula.AverageMethod averageMethod, Formatter<?> formatter)
Dynamic.reporter(String)
to generate the
expression.
property
- The reporter propertytitle
- The column title, or null to use the property
as titleaverageMethod
- Average method to use or null to use
Formula.AverageMethod.NONE
formatter
- A formatter or nullpublic static JepDynamicField formula(Formula f, String title, Formatter<?> formatter)
f
- The formulatitle
- The column title, or null to use the
name of the formula as the titleformatter
- A formatter or nullpublic static JepDynamicField extraValue(ExtraValueType extra, String title, Formatter<?> formatter)
extra
- The extra value typetitle
- The column title, or null to use the
name of the formula as the titleformatter
- A formatter or null
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |