Class TemplateLoader
java.lang.Object
de.ipk_gatersleben.ag_pbi.datahandling.TemplateLoader
- All Implemented Interfaces:
DragAndDropHandler
,ExperimentDataDragAndDropHandler
public abstract class TemplateLoader extends Object implements ExperimentDataDragAndDropHandler
-
Constructor Summary
Constructors Constructor Description TemplateLoader()
-
Method Summary
Modifier and Type Method Description boolean
canProcess(File f)
boolean
hasPriority()
boolean
process(List<File> files)
void
registerLoader()
void
setExperimentDataReceiver(ExperimentDataPresenter receiver)
abstract String
toString()
-
Constructor Details
-
TemplateLoader
public TemplateLoader()
-
-
Method Details
-
registerLoader
public void registerLoader() -
hasPriority
public boolean hasPriority()- Specified by:
hasPriority
in interfaceDragAndDropHandler
- Returns:
- True, if the handler should be called before other handlers are executed, which return False.
-
canProcess
- Specified by:
canProcess
in interfaceDragAndDropHandler
- Parameters:
f
- Input file to be analyzed for compatibility.- Returns:
- True, if this handler might handle the input file. E.g. based on the file extension.
-
toString
-
process
- Specified by:
process
in interfaceDragAndDropHandler
-
setExperimentDataReceiver
- Specified by:
setExperimentDataReceiver
in interfaceExperimentDataDragAndDropHandler
-