2.17.2: 2011-06-17

net.sf.basedb.core.filehandler
Class AbstractDataFileHandler

java.lang.Object
  extended by net.sf.basedb.core.filehandler.AbstractDataFileHandler
All Implemented Interfaces:
DataFileHandler
Direct Known Subclasses:
AffymetrixFileHandler

public abstract class AbstractDataFileHandler
extends Object
implements DataFileHandler

This abstract class should, if possible, be used as a super-class for all classes implementing the DataFileValidator interface. We consider this interface to be part of the public API only on the client side, not on the implementor side. This means that we may add additional methods (but not change existing ones) to the interface at any time. All new methods will get default implementations in this abstract class to not break existing implementions.

Version:
2.5
Author:
Nicklas
Last modified
$Date:2007-10-12 12:03:18 +0200 (Fri, 12 Oct 2007) $

Field Summary
private  FileStoreEnabled item
           
private  Map<String,FileSetMember> members
           
 
Constructor Summary
protected AbstractDataFileHandler()
           
 
Method Summary
protected  FileStoreEnabled getItem()
          Get the itemt that was set by setItem(FileStoreEnabled)
protected  FileSetMember getMember(String dataFileType)
          Get the file set member of a specific DataFileType.
 void setFile(FileSetMember member)
          Set the file that is part of the file set with a DataFileType that is using this file handler.
 void setItem(FileStoreEnabled item)
          Sets the item that we are currently working with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

private FileStoreEnabled item

members

private Map<String,FileSetMember> members
Constructor Detail

AbstractDataFileHandler

protected AbstractDataFileHandler()
Method Detail

setItem

public void setItem(FileStoreEnabled item)
Description copied from interface: DataFileHandler
Sets the item that we are currently working with.

Specified by:
setItem in interface DataFileHandler
Parameters:
item - The item

setFile

public void setFile(FileSetMember member)
Description copied from interface: DataFileHandler
Set the file that is part of the file set with a DataFileType that is using this file handler. If the file set contains more than one file with the same data handler this method is called one time for each member.

Specified by:
setFile in interface DataFileHandler
Parameters:
member - The member of the file set

getItem

protected FileStoreEnabled getItem()
Get the itemt that was set by setItem(FileStoreEnabled)


getMember

protected FileSetMember getMember(String dataFileType)
Get the file set member of a specific DataFileType.

Parameters:
dataFileType - The external ID of the data file type
Returns:
The file set member or null if no member of that type is found

2.17.2: 2011-06-17