|
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.core.filehandler.AbstractDataFileHandler
public abstract class AbstractDataFileHandler
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.
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 |
---|
private FileStoreEnabled item
private Map<String,FileSetMember> members
Constructor Detail |
---|
protected AbstractDataFileHandler()
Method Detail |
---|
public void setItem(FileStoreEnabled item)
DataFileHandler
setItem
in interface DataFileHandler
item
- The itempublic void setFile(FileSetMember member)
DataFileHandler
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.
setFile
in interface DataFileHandler
member
- The member of the file setprotected FileStoreEnabled getItem()
setItem(FileStoreEnabled)
protected FileSetMember getMember(String dataFileType)
DataFileType
.
dataFileType
- The external ID of the data file type
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |