|
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.AbstractFieldConverter net.sf.basedb.util.export.spotdata.StandardFieldConverter net.sf.basedb.util.export.spotdata.AdvancedFieldConverter
public class AdvancedFieldConverter
Field converter implementation that gives more detailed control how
fields are converted and used in the export. The implementation
builds on the StandardFieldConverter
which is used as
a fallback. The advanced options can be accessed by using formula-like
field "names" as shown below. In most cases the "title" parameter
is optional. If not given, the name is used as the title.
getAssayField(String, boolean)
.
getAssayField(String, boolean)
.
getReporterField(String, boolean)
and getSpotField(String, boolean)
.
getReporterField(String, boolean)
and
getSpotField(String, boolean)
.
getReporterField(String, boolean)
and getSpotField(String, boolean)
.
The "title" is required. The "datatype" is optional. If not given "string" will
be used. Valid values are constants from the Type
enumeration
(case-insensitive).
StandardFieldConverter
.
Field Summary | |
---|---|
private Map<String,Pattern> |
patterns
|
Constructor Summary | |
---|---|
AdvancedFieldConverter(DbControl dc,
BioAssaySet source)
Create a new advanced field converter. |
Method Summary | |
---|---|
protected AssayField |
getAdvancedAssayField(String expression,
boolean required)
Convert an expression to an assay field. |
protected DynamicField |
getAdvancedReporterField(String expression,
boolean required)
Convert an expression to a reporter field. |
protected DynamicField |
getAdvancedSpotField(String expression,
boolean required)
Convert an expression to a spot field. |
AssayField |
getAssayField(String name,
boolean required)
Find an assay field. |
private Pattern |
getPattern(String function,
int requiredParameters,
int optionalParameters)
|
DynamicField |
getReporterField(String name,
boolean required)
Find a reporter dynamic field. |
DynamicField |
getSpotField(String name,
boolean required)
Find a spot dynamic field. |
Methods inherited from class net.sf.basedb.util.export.spotdata.AbstractFieldConverter |
---|
getAssayAnnotationField, getAssayPropertyField, getDbControl, getExperimentalFactorField, getExtraValueField, getFormulaField, getIntensityField, getRawDataProperty, getReporterProperty, getSnapshotManager, getSource, setSnapshotManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Map<String,Pattern> patterns
Constructor Detail |
---|
public AdvancedFieldConverter(DbControl dc, BioAssaySet source)
dc
- A DbControl to use for database accesssource
- The source bioassay setMethod Detail |
---|
public AssayField getAssayField(String name, boolean required)
StandardFieldConverter
getAssayField
in interface ExportableFieldConverter
getAssayField
in class StandardFieldConverter
name
- The name to findrequired
- If TRUE and no field is found this method will
throw an ItemNotFoundException
public DynamicField getReporterField(String name, boolean required)
StandardFieldConverter
getReporterField
in interface ExportableFieldConverter
getReporterField
in class StandardFieldConverter
name
- The name to findrequired
- If TRUE and no field is found this method will
throw an ItemNotFoundException
public DynamicField getSpotField(String name, boolean required)
StandardFieldConverter
getSpotField
in interface ExportableFieldConverter
getSpotField
in class StandardFieldConverter
name
- The name to findrequired
- If TRUE and no field is found this method will
throw an ItemNotFoundException
protected AssayField getAdvancedAssayField(String expression, boolean required)
protected DynamicField getAdvancedReporterField(String expression, boolean required)
Type
enumeration.
protected DynamicField getAdvancedSpotField(String expression, boolean required)
Type
enumeration.
private Pattern getPattern(String function, int requiredParameters, int optionalParameters)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |