2.17.2: 2011-06-17

net.sf.basedb.core
Class FileSet.DataFileHandlerWrapper

java.lang.Object
  extended by net.sf.basedb.core.FileSet.DataFileHandlerWrapper
Enclosing class:
FileSet

private static class FileSet.DataFileHandlerWrapper
extends Object

Wraps a DataFileValidator and /or DataFileMetadataReader. as a single item. This class takes care of calling the validator/metadata reader and to set validation status and error messages on the associated file set members.


Field Summary
private  List<FileSetMember> files
           
private  DataFileHandler handler
           
private  boolean isMetadataReader
           
private  boolean isValidator
           
private  FileStoreEnabled item
           
 
Constructor Summary
FileSet.DataFileHandlerWrapper(DataFileHandler handler, FileStoreEnabled item)
           
 
Method Summary
(package private)  void extractMetadata(DbControl dc)
           
(package private)  void resetMetadata(DbControl dc)
           
(package private)  void setFile(FileSetMember member)
           
(package private)  void setValid(Boolean isValid, String errorMessage)
           
(package private)  void validate(DbControl dc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handler

private final DataFileHandler handler

isValidator

private final boolean isValidator

isMetadataReader

private final boolean isMetadataReader

item

private final FileStoreEnabled item

files

private final List<FileSetMember> files
Constructor Detail

FileSet.DataFileHandlerWrapper

FileSet.DataFileHandlerWrapper(DataFileHandler handler,
                               FileStoreEnabled item)
Method Detail

setFile

void setFile(FileSetMember member)

validate

void validate(DbControl dc)

extractMetadata

void extractMetadata(DbControl dc)

resetMetadata

void resetMetadata(DbControl dc)

setValid

void setValid(Boolean isValid,
              String errorMessage)

2.17.2: 2011-06-17