|
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.AssayPropertyField
public class AssayPropertyField
Assay field implementation that exports a named property from a bioassay. The default setting will export the "name" property. One instance of this class is considered to be equal to another if they are configured with the same property and title.
Field Summary | |
---|---|
private Formatter<?> |
formatter
|
private Metadata<BioAssay> |
metadata
|
private String |
property
|
private Metadata.PropertyPath<BioAssay,?> |
propertyPath
|
private String |
title
|
private Type |
type
|
Constructor Summary | |
---|---|
AssayPropertyField()
Create a new annotation field. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
An assay field is equal to another assay field if it uses the same property and has the same title. |
Collection<?> |
getAssayValue(DbControl dc,
BioAssay ba)
Return all values that are given by the specified property. |
Formatter<?> |
getFormatter()
Get a formatter that converts the values in this field to strings. |
String |
getProperty()
Get the configured property. |
String |
getTitle()
Get the column header. |
Type |
getType()
Get the data type of the field. |
int |
hashCode()
|
boolean |
isAnnotation()
A boolean flag indicating if the field is an annotation or not. |
void |
setFormatter(Formatter<?> formatter)
Set a formatter to use for formatting the exported values. |
void |
setProperty(String property)
Set the property that should be exported. |
void |
setTitle(String title)
Set the title of the exported property. |
void |
setType(Type type)
Set the data type of the exported property. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Metadata<BioAssay> metadata
private Metadata.PropertyPath<BioAssay,?> propertyPath
private String property
private String title
private Type type
private Formatter<?> formatter
Constructor Detail |
---|
public AssayPropertyField()
setProperty(String)
and setTitle(String)
to change.
ExportableFieldFactory.assayProperty(String, String, Type, Formatter)
Method Detail |
---|
public String getTitle()
ExportableField
getTitle
in interface ExportableField
public Collection<?> getAssayValue(DbControl dc, BioAssay ba)
getAssayValue
in interface AssayField
dc
- The DbControl that is used for database accessba
- The bioassay to get the value(s) from
public Type getType()
ExportableField
getType
in interface ExportableField
public Formatter<?> getFormatter()
ExportableField
getFormatter
in interface ExportableField
public boolean isAnnotation()
AssayField
isAnnotation
in interface AssayField
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void setProperty(String property)
Metadata.getPropertyPath(String, boolean)
.
Do not forget to also change the title.
public String getProperty()
public void setTitle(String title)
public void setType(Type type)
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 |