5277 |
22 Mar 10 |
nicklas |
1 |
/** |
5277 |
22 Mar 10 |
nicklas |
$Id $ |
5277 |
22 Mar 10 |
nicklas |
3 |
|
5277 |
22 Mar 10 |
nicklas |
Copyright (C) 2010 Nicklas Nordborg |
5277 |
22 Mar 10 |
nicklas |
5 |
|
5277 |
22 Mar 10 |
nicklas |
This file is part of BASE - BioArray Software Environment. |
5277 |
22 Mar 10 |
nicklas |
Available at http://base.thep.lu.se/ |
5277 |
22 Mar 10 |
nicklas |
8 |
|
5277 |
22 Mar 10 |
nicklas |
BASE is free software; you can redistribute it and/or |
5277 |
22 Mar 10 |
nicklas |
modify it under the terms of the GNU General Public License |
5277 |
22 Mar 10 |
nicklas |
as published by the Free Software Foundation; either version 3 |
5277 |
22 Mar 10 |
nicklas |
of the License, or (at your option) any later version. |
5277 |
22 Mar 10 |
nicklas |
13 |
|
5277 |
22 Mar 10 |
nicklas |
BASE is distributed in the hope that it will be useful, |
5277 |
22 Mar 10 |
nicklas |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
5277 |
22 Mar 10 |
nicklas |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
5277 |
22 Mar 10 |
nicklas |
GNU General Public License for more details. |
5277 |
22 Mar 10 |
nicklas |
18 |
|
5277 |
22 Mar 10 |
nicklas |
You should have received a copy of the GNU General Public License |
5277 |
22 Mar 10 |
nicklas |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
5277 |
22 Mar 10 |
nicklas |
21 |
*/ |
5277 |
22 Mar 10 |
nicklas |
22 |
package net.sf.basedb.util.export.spotdata; |
5277 |
22 Mar 10 |
nicklas |
23 |
|
5277 |
22 Mar 10 |
nicklas |
24 |
/** |
5277 |
22 Mar 10 |
nicklas |
Defines method for converting a string representation to |
5277 |
22 Mar 10 |
nicklas |
an exportable assay or dynamic field that can be used with |
5277 |
22 Mar 10 |
nicklas |
{@link AbstractBioAssaySetExporter} implementations. String |
5277 |
22 Mar 10 |
nicklas |
representations are useful for plug-ins that need to store |
5277 |
22 Mar 10 |
nicklas |
multiple fields related to different types of properties. |
5277 |
22 Mar 10 |
nicklas |
For example, a converter may lookup experimental factors, |
5277 |
22 Mar 10 |
nicklas |
formulas or reporter properties based on the name. |
5277 |
22 Mar 10 |
nicklas |
32 |
|
5277 |
22 Mar 10 |
nicklas |
@author nicklas |
5277 |
22 Mar 10 |
nicklas |
@since 2.15 |
5277 |
22 Mar 10 |
nicklas |
35 |
*/ |
5277 |
22 Mar 10 |
nicklas |
36 |
public interface ExportableFieldConverter |
5277 |
22 Mar 10 |
nicklas |
37 |
{ |
5277 |
22 Mar 10 |
nicklas |
38 |
/** |
5277 |
22 Mar 10 |
nicklas |
Create a reporter dynamic field for the given name. The |
5277 |
22 Mar 10 |
nicklas |
interpretation of the name is implementation-specific. |
5277 |
22 Mar 10 |
nicklas |
The returned field is typically added to the exporter with |
5277 |
22 Mar 10 |
nicklas |
{@link AbstractBioAssaySetExporter#addReporterField(DynamicField)}. |
5277 |
22 Mar 10 |
nicklas |
43 |
|
5277 |
22 Mar 10 |
nicklas |
@param name The name to look for |
5277 |
22 Mar 10 |
nicklas |
@param required TRUE if this field is required |
5277 |
22 Mar 10 |
nicklas |
@return A dynamic field or null if no field is found, but |
5277 |
22 Mar 10 |
nicklas |
if required = TRUE an exception is thrown instead |
5277 |
22 Mar 10 |
nicklas |
48 |
*/ |
5277 |
22 Mar 10 |
nicklas |
49 |
public DynamicField getReporterField(String name, boolean required); |
5277 |
22 Mar 10 |
nicklas |
50 |
|
5277 |
22 Mar 10 |
nicklas |
51 |
/** |
5277 |
22 Mar 10 |
nicklas |
Create a spot dynamic field for the given name. The |
5277 |
22 Mar 10 |
nicklas |
interpretation of the name is implementation-specific. |
5277 |
22 Mar 10 |
nicklas |
The returned field is typically added to the exporter with |
5277 |
22 Mar 10 |
nicklas |
{@link AbstractBioAssaySetExporter#addSpotField(DynamicField)}. |
5277 |
22 Mar 10 |
nicklas |
56 |
|
5277 |
22 Mar 10 |
nicklas |
@param name The name to look for |
5277 |
22 Mar 10 |
nicklas |
@param required TRUE if this field is required |
5277 |
22 Mar 10 |
nicklas |
@return A dynamic field or null if no field is found, but |
5277 |
22 Mar 10 |
nicklas |
if required = TRUE an exception is thrown instead |
5277 |
22 Mar 10 |
nicklas |
61 |
*/ |
5277 |
22 Mar 10 |
nicklas |
62 |
public DynamicField getSpotField(String name, boolean required); |
5277 |
22 Mar 10 |
nicklas |
63 |
|
5277 |
22 Mar 10 |
nicklas |
64 |
/** |
5277 |
22 Mar 10 |
nicklas |
Create an assay field for the given name. The |
5277 |
22 Mar 10 |
nicklas |
interpretation of the name is implementation-specific. |
5277 |
22 Mar 10 |
nicklas |
The returned field is typically added to the exporter with |
5277 |
22 Mar 10 |
nicklas |
{@link AbstractBioAssaySetExporter#addAssayField(AssayField)}. |
5277 |
22 Mar 10 |
nicklas |
69 |
|
5277 |
22 Mar 10 |
nicklas |
@param name The name to look for |
5277 |
22 Mar 10 |
nicklas |
@param required TRUE if this field is required |
5277 |
22 Mar 10 |
nicklas |
@return A dynamic field or null if no field is found, but |
5277 |
22 Mar 10 |
nicklas |
if required = TRUE an exception is thrown instead |
5277 |
22 Mar 10 |
nicklas |
74 |
*/ |
5277 |
22 Mar 10 |
nicklas |
75 |
public AssayField getAssayField(String name, boolean required); |
5277 |
22 Mar 10 |
nicklas |
76 |
|
5277 |
22 Mar 10 |
nicklas |
77 |
} |